#12832 - Rasputin77 - Fri Nov 28, 2003 4:30 pm
Hello ! (it s my 1st topic here ;) )
I ve a question about the initialization of variable and functions declared for example as :
unsigned char toto __attribute__ ((section (".ewram"))) = 1;
void fast_function(void) __attribute__ ((section (".iwram"), long_call)) {
...
}
the question is : When and how these volatile function/variable are initialized in RAM ? is it a piece of code inserted in (or before) main() exection ? or this variable/function are initialized at their first use ? or else ;) ?
Tkx !!!
I ve a question about the initialization of variable and functions declared for example as :
unsigned char toto __attribute__ ((section (".ewram"))) = 1;
void fast_function(void) __attribute__ ((section (".iwram"), long_call)) {
...
}
the question is : When and how these volatile function/variable are initialized in RAM ? is it a piece of code inserted in (or before) main() exection ? or this variable/function are initialized at their first use ? or else ;) ?
Tkx !!!