Am 28.03.23 um 21:55 schrieb Adrian Chadd:
If I were doing this with gcc/gnu linker, I'd just define a symbol at the end of the generated segments in RAM. but the segment/area list here is .. not defined the same way. And it seems that the linker logic is a little different per target platform because, well, embedded microprocessor/controllers can have funky addressing/banking requirements. :)
The linker does give you the start and length for each segment (see the beginning of the map file for examples, e.g. for a segment ADATA, the linker creates symbols s_ADATA and l_ADATA). Then you can calculate the end from them.
Philipp _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user