Hello Adrian, Wednesday, March 29, 2023, 3:16:47 PM, you wrote:
AC> That bits easy, yup! But the trick is actually /knowing/ which area is the AC> last one. two variants: 1. area order is actually defined in the crt0.s. you know which area is the last one, being the author of crt0.s by default the last one is HEAP_END, and the previous one is HEAP. 2. sort by the base address, filtering out ABS sections. that is not at runtime, though. -- Best regards, Tony mailto:unt...@mail.ru _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user