How can I force the compiler to not initialize some RAM variables during startup?
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.