|
|
How do I instruct the compiler NOT to initialize some of my char variables at startup? |
| there are two parts (we will try to make it easier later):
- Put the vars in your own area. In C, do #pragma data:uninit_vars char a, b, c; #pragma data:data You can refer to them as normal extern in other files.
.area data
__data_start::
.area bss
__bss_start::
somewhere in the middle of the file. Change it to: .area data
__data_start::
.area uninit_vars
__uninit_vars_start::
.area bss
__bss_start::
| |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||