tenbaht/sduino

SDCC wrapper can be simplified

Opened this issue · 2 comments

The upcoming 4.1.0 release of SDCC will allow some simplifications to the wrapper script sdcc.sh.
Firstly, the compiler can be told to treat files of unknown type as C using -x c, which makes the temporary copies of the source files unnecessary.
Secondly, the dummy pointer to main can then be introduced via pre-inclusion: -Wp -include,auxheader.h.

Update: SDCC 4.2.0 will simplify pre-inclusion to --include auxheader.h.

@roybaer
Thanks the -x c does work with 13407 version. But the option seems not documented?