Message Edited by Alban on 2007-03-23 12:46 PM
Solved! Go to Solution.
// before your code to be relocated #pragma MESSAGE ERROR C3605 /* C3605: Runtime object '_SEXT16_32' is used at PC 0xa*/
#pragma CODE_SEG WHATEVER void fun(void) { // no long divisions here :smileywink: } ....... #pragma CODE_SEG DEFAULT // disarm #pragma MESSAGE DISABLE C3605 /* C3605: Runtime object '_SEXT16_32' is used at PC 0xa*/
ROM_IMAGE = READ_ONLY 0xF000 TO 0xF2FF RELOCATE_TO 0x0200; ... PLACEMENT ... WHATEVER INTO ROM_IMAGE;
Message Edited by ajn on 2007-03-2307:04 PM
Message Edited by ajn on 2007-03-2307:05 PM
// before your code to be relocated #pragma MESSAGE ERROR C3605 /* C3605: Runtime object '_SEXT16_32' is used at PC 0xa*/
#pragma CODE_SEG WHATEVER void fun(void) { // no long divisions here :smileywink: } ....... #pragma CODE_SEG DEFAULT // disarm #pragma MESSAGE DISABLE C3605 /* C3605: Runtime object '_SEXT16_32' is used at PC 0xa*/
ROM_IMAGE = READ_ONLY 0xF000 TO 0xF2FF RELOCATE_TO 0x0200; ... PLACEMENT ... WHATEVER INTO ROM_IMAGE;
C code should not be about writing ASM in C, but is a different level of abstraction which does not require the programmer to know all the details of the hardware implementation. This is the job of the compiler to translate it in machine understandable language.Alban.