I am running Embedded C on some ARM Cortex-M4 target which facilitates with both ROM and RAM support. I have a character pointer in my code:
char *temp = "";
Later in code I am modifying the variable as:
itoa(some_integer, temp, 10);
When I compile the code, compiler puts *temp in ROM section which cause exception to raise when trying to perform itoa(,,) operation as constant variable can not be modified. My question is that why compiler is putting char *temp into ROM section?