Using the --out-fmt-s19 option with SDCC no longer generates a output file with the extension ".s19". It instead ends up with the extension ".s37".
Looking at the linker source, it appears that it is attempting to use an s-record format appropriate to the address size of the target and it has somehow selected the wrong size, at least at the point the file is created. S19 is used with 16-bit addresses, S28 is used with 24-bit addresses, and S37 is used with 32-bit addresses. Although the file generate has an ".s37" extension, it actually is a correctly formatted S19 format file. It would be a quick fix for me to simply change the text of the string used for the extension, but I'm hoping someone more familiar with the assembler/linker sources knows a more proper fix.
Log in to post a comment.