• 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...
  • 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");...
  • How to make a pointer point to a constant string in RAM
    I'm using Keil3 for arm. 1\I wanna change the string's content,eg from "2007" to "2008" 2\I wanna a pointer ,not a array,to point to the string. But when I do as follows: char *ptr = "2007"; ptr...
  • How to get a string from a constant array which located in BANKn?
    Help me:How to get a string from a constant array which located in BANKn? //Located at BANK0 code char *pStrArray[] = { "1", "2", "34", }; //Located at BANK0 void LoadString(char *strbuf, const...
  • STRINGS
    iam working with cygnal microcontrollers c8051f124,we are generating our own protocol using pwm . i have actually implemented my project in 2 phases,1in c and another in assembly. in the c file iam...