From: Borja F. <bor...@gm...> - 2010-11-09 20:35:49
|
If i remember correctly, when i worked with CodeWarrior for the HC08s, placing a const qualifier directly meant placing the data in ROM, John's idea. If we do what Eric says, i would place everything in RAM if it's not explictly stated with a space qualifier, ignoring constness. However how should we treate inline strings like printf("hello")? place them in ROM by default? because declaring a ptr for each string similar to what gcc does is a bit insane. I'm going to ask about this to a friend who is a compiler expert, and i'll reply about his thoughts, probably during this weekend, im very busy these days. |