Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#123 automatic --no-xinit-opt

open
nobody
None
5
2006-04-11
2006-04-11
Maarten Brock
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