rlang 0 Posted January 11, 2005 Report Share Posted January 11, 2005 Bug description: BOOSTC 1.92 array data not recoverable Steps to reproduce: 1.) I create a 50 byte array with the following lst file 1A78 0E05 MOVLW 0x05 1A7A 6E3A MOVWF gbl_ReportDescriptor1 1A7C 0E01 MOVLW 0x01 1A7E 6E3B MOVWF gbl_ReportDescriptor1+D'1' 1A80 0E09 MOVLW 0x09 1A82 6E3C MOVWF gbl_ReportDescriptor1+D'2' … 1B00 0E30 MOVLW 0x30 1B02 6E5D MOVWF gbl_ReportDescriptor1+D'35' 1B04 0E09 MOVLW 0x09 1B06 6E5E MOVWF gbl_ReportDescriptor1+D'36' 1B08 0E31 MOVLW 0x31 1B0A 6F5F MOVWF gbl_ReportDescriptor1+D'37', 1 1B0C 0E15 MOVLW 0x15 1B0E 6F60 MOVWF gbl_ReportDescriptor1+D'38', 1 … 1B2C 0E81 MOVLW 0x81 1B2E 6F68 MOVWF gbl_ReportDescriptor1+D'46', 1 1B30 0E06 MOVLW 0x06 1B32 6F69 MOVWF gbl_ReportDescriptor1+D'47', 1 1B34 0EC0 MOVLW 0xC0 1B36 6F6A MOVWF gbl_ReportDescriptor1+D'48', 1 1B38 0EC0 MOVLW 0xC0 1B3A 6F6B MOVWF gbl_ReportDescriptor1+D'49', 1 2.) Attempt to recover data past element 36 results in garbage. Expected behavior: Data initialized would be same as data retrieved. Is the problem 100% reproducible: Yes SourceBoost version: 5.8 Compiler: BoostC Compiler version: Compiler Version 1.92 Alpha (for PIC18 architecture) OS: Windows 98 Comments: Seems like I saw some traffic about exceeding 256 byte boundaries. If that is the problem how can I prevent and is there any way to know this is happening without looking at the list file. It took a week to figure this out. Quote Link to post Share on other sites
Pavel 0 Posted January 11, 2005 Report Share Posted January 11, 2005 Can you supply C code for this problem? Regards, Pavel PS: I just finished changing the compiler code that deals with array initialization and getting values from arrays. A lot of problems were solved in this area. Now compiler does much better job. These changes will be available in the next BoostC release (or update). Quote Link to post Share on other sites
rlang 0 Posted January 11, 2005 Author Report Share Posted January 11, 2005 It is about 24 pages of code but I can send it to you at the support email address if you wish. Rob Quote Link to post Share on other sites
Pavel 0 Posted January 11, 2005 Report Share Posted January 11, 2005 It is about 24 pages of code but I can send it to you at the support email address if you wish. Rob <{POST_SNAPBACK}> I need code where I can reproduce the problem. Yous code looks too big and I assume it includes ather stuff as well. Will I be able to see the problem running it under simulator? Regards, Pavel Quote Link to post Share on other sites
rlang 0 Posted January 12, 2005 Author Report Share Posted January 12, 2005 It is about 24 pages of code but I can send it to you at the support email address if you wish. Rob <{POST_SNAPBACK}> I need code where I can reproduce the problem. Yous code looks too big and I assume it includes ather stuff as well. Will I be able to see the problem running it under simulator? Regards, Pavel <{POST_SNAPBACK}> I sent a short version of the project files called bug6 to the support email address as a zip file. Rob Quote Link to post Share on other sites
rlang 0 Posted January 17, 2005 Author Report Share Posted January 17, 2005 I sent a short version of the project files called bug6 to the support email address as a zip file.Rob The fix implemented by Pavel in BOOSTC 19.3 for the array bug worked like a charm. Thank you for your quick response. The PIC18F2455 USB mouse example now works with BOOSTC. I can send if to you to use as an example if you wish. Rob Quote Link to post Share on other sites
Pavel 0 Posted January 17, 2005 Report Share Posted January 17, 2005 I sent a short version of the project files called bug6 to the support email address as a zip file.Rob The fix implemented by Pavel in BOOSTC 19.3 for the array bug worked like a charm. Thank you for your quick response. The PIC18F2455 USB mouse example now works with BOOSTC. I can send if to you to use as an example if you wish. Such sample will be a great addition to the compiler samples web page. Please send it to support@picant.com Regards, Pavel Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.