#123 automatic --no-xinit-opt

open
nobody
None
5
2006-04-11
2006-04-11
No

Wouldn't it be nice if SDCC and it's linker could
determine by itself that xdata initialization code is
not necessary when there is nothing to initialize?

The solution I think is to output ".globl
__mcs51_genXINIT" only when a non-empty XINIT is
written to the asm file.

Something similar is possible when both PSEG and XSEG
are empty, then don't write ".globl
__mcs51_genXRAMCLEAR".

Or even no ".globl __mcs51_genRAMCLEAR" when DSEG,
OSEG, ISEG and BSEG are all empty.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks