You could define a struct to hold all your variables; then the compiler should always allocate it as a whole.
HTH, Michiel From: [email protected] [mailto:[email protected]] On Behalf Of Oldrine Lewis Sent: maandag 14 mei 2012 3:41 To: [email protected] Subject: [Tinyos-help] force compilation of unused variables Hi, I am writing a small component to simplify reading from EEPROM. I have all the variables in a header file, which I would like to read as a block from the EEPROM. The problem I have is that if some variable is defined in the header file, but not used, the compiler detects this and does not allocate memory for that variable. Is there a way I can tell the compiler to always allocate memory for a variable Thanks, Lewis
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
