From: Maarten B. <sou...@ds...> - 2009-03-10 20:24:30
|
Peter, Please include SDCC version and target for which you compile. For mcs51 this should work I think. Maarten > Hi, > > Is it possible to make linker skip a part of code memory? > > I'd like to use a segment of flash in the middle the whole flash for data. > > Ex. flash segments are 2k. I'd like to prevent linker putting code in a > segment after 0x8000. > > I tried this: > > __code __at (0x8000) uint8_t flash_reserved1[2048]={ 0xAA,0x55 ... } > > but is doesn't initialize the variable at that location. > > Cheers, > Peter > > ------------------------------------------------------------------------------ > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > |