First, I found the linker options -I and -C and added this in Makefile: OVFL = "-Wl -I0x0800,-C0x4000"
Where did you find such options for the linker? As far as I know, there are no -I and -C options for sdldstm8 (or, indeed, ASlink in general). It seems sdldstm8 ignores these options when it is run with them (SDCC will place them in the generated .lk command file when using -Wl).
Okay, I find the options --iram-size and --code-size and change my Makefile: OVFL = --iram-size 1024 --code-size 0x0a00
Those options are MCS51-specific. It would be nice if there were such features for the STM8 platform, but there are not.
When I had a need to check that code size didn't exceed certain limits, I used a script to parse the .map file and generate a warning. I did this on the open-source ROM bootloader erase/write routines that I and Georg Icking-Konert developed - see https://github.com/basilhussain/stm8-bootloader-erase-write/blob/main/src/check-seg-size.awk.
I know I am missing something, but what is it?
You're missing that the options you tried don't exist or don't have any effect on the target platform. :-)
Regards, Basil Hussain _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user