This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: possible to have some C variables uninitiialized?


Good eyes, Robert.  I should have just said:

int IAmANonVolatileInt;


On Tue, 18 Jan 2000 22:57:55 -0600 (CST) "Robert J. Brown"
<rj@eli.elilabs.com> writes:
> If you do not want them initialized, then why specify an initial
> value (the =3 in your example)?  


Scott> I'm using gcc on a 68000-based embedded system that has
Scott> some normal RAM and some battery-backed RAM.  I'd like to
Scott> know if there is a way to have the gcc compiler/linker not
Scott> initialize certain C variables that will be located in the
Scott> battery-backed RAM area.

Scott> I'd like these global variables to be declared normally,
Scott> for example,

Scott> int IAmANonVolatileInt = 3;
 

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]