21Fermer23
PpHdLe 20/04/2010 à 19:56
christop (./17) :
Yes, this is the kind of change I'm interested in. Thanks.
Are static variables (both local to a function and local to a source file (or "compilation unit")) also stored in the BSS section? From what I understand about C, they should be.


Provided that they are not initialised to a value, yes.

The only problem is that if you write:
int x = 2;
as a global, x will be mapped to the ROM code, making it impossible to change.