there is no simple way to do that. Try to consider the following: 1. if you're not eager to put your var at 0x200 then you can either put this to '.noinit' section or on a stack top -- "int main RESERVE_RAM(2) () {...}" 2. If you're really want to have this at 0x200 then:
declare i as: int i asm("0x200"); Then pass -Wa,-Tbss -Wa,0x202 to gcc on a link stage. In both cases i will not be initialized (cleared) during system start-up. ~d On Tuesday 08 April 2003 18:02, mark...@xs4all.nl wrote: > Hello, > > I would like to reserve a RAM location (e.g. address 0x200) for a variable. > So if I declare: int i, it should be at address 0x200 (&i == 0x0200). How > should this be done? > > Thanks in advance, > > Mark Six > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users -- /******************************************************************** ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ `6_ 6 ) `-. ( ).`-.__.`) Enterprise Information Sys (_Y_.)' ._ ) `._ `. ``-..-' Nevsky prospekt, 20 / 44 _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia (il),-'' (li),' ((!.-' +7 (812) 3468202, 5585314 ********************************************************************/