hi,
i am using an IAR embedded c compiler. some times when i run out of
the overall data segment
capacity, i found i can reduce the data segment usage by simply
removing some kind of statements such as below,
printf( "hello, %d\n", 100 )
it seems tell me that "hello, %d\n" was allocated in data segment.
but for the compiler, read only data should be put in code segment
rather than data segment. so, i thing my question should be: is the
"hello, %d\n" really a kind of READ ONLY data?
thanks.
-
woody