From: SourceForge.net <no...@so...> - 2011-08-17 10:49:30
|
Bugs item #3392958, was opened at 2011-08-17 12:49 Message generated for change (Tracker Item Submitted) made by bugsht You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3392958&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pic16 target Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: M.Hoehle (bugsht) Assigned to: Nobody/Anonymous (nobody) Summary: incorrect code pointer generation Initial Comment: SDCC version: 3.0.4 #6622 Command line: sdcc -c -mpic16 -p18f2685 --denable-peeps test.c source: { __code const unsigned char * hexfa; hexfa=(__code unsigned char *)0x12000L; } will result in: CLRF r0x01 MOVLW 0x20 MOVWF r0x02 CLRF r0x03 wehre the upper byte is lost! NO error Message is generated!!! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3392958&group_id=599 |