Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I force the compiler to not initialize some RAM variables during startup?

0
Posted

How can I force the compiler to not initialize some RAM variables during startup?

0

You can suppress the initialization of variables using either the compiler command line option “+norom1” or the pragma: #pragma +norom1 The pragma is better if you are using the IDE, because it does not allow you to set a specific option for a specific file. This pragma should always appear at the beginning of any source file in which it is used and its operation essentially extends through to the end of the file. Therefore I recommend that you put those variables which you do NOT want initialized in a separate file and put the above pragma at the beginning of that file.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123