Hello Philipp,
> I haven't been using the keyword __at much. > But now I have a case where I want code to be placed in the 0x0000 to 0x9fff range. > > However, at the specific location 0x1ff0 I want 16 specific header bytes. The linker should just put the code around the header (which might require leaving a few bytes unused), but it doesn't work for me so far. > > I tried > > const struct header __at(0x1ff0) header = ...; > > but the linker creates an overlap: The header gets put into the > binary at the correct location with the correct data. But that > means the data ends up in the middle of a function. > > Philipp > I'm afraid the Z80 backend is still broken in this area. Look at the generated .area line and check for the property CON. If there is none make the backend generate it. Maarten ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user