sduino icon indicating copy to clipboard operation
sduino copied to clipboard

SDCC wrapper can be simplified

Open roybaer opened this issue 4 years ago • 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.

roybaer avatar Feb 18 '21 11:02 roybaer

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

roybaer avatar Feb 21 '22 16:02 roybaer

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

DeqingSun avatar May 01 '22 23:05 DeqingSun