• Constant Strings
    I have several constant strings that I defined as follows: const u8 *Stringname = "StringContent"; At some stage if I add one more string, the uC stops working. I have more than enough code memory...
  • string constant in macro
    Hello, In my C code, I have: #define message message("Start\n"); When I look at the SRC file, I see: RSEG ?CO?MAIN ?SC_0: DB 'S' ,'t' ,'a' ,'r' ,'t' ,00AH,000H ; message("Start\n");...
  • string constants in XDATA
    Hi, In an attempt to free some code space, I'm looking at a couple of options; a) preventing the compiler from automatically placing all string constants in the common code area (regardless of in...
  • Initialize constant pointer to pointer
    const int an_object = 0; const int * const MC_buf = &an_object; const int * buffer = MC_buf; This code was original using structs, but it is simplified in this example. It doesn't matter where...
  • ERROR in compiler (with floating point constants) ???
    Hi my dear friends! I'm needed your help! Please compile this little program below in the IDE and look at the asm output window. This program is only for demonstrate my problem... The result...