tenbaht / sduino

An Arduino-like programming API for the STM8
http://tenbaht.github.io/sduino/
GNU Lesser General Public License v2.1
351 stars 217 forks source link

SDCC wrapper can be simplified #120

Open roybaer opened 3 years ago

roybaer commented 3 years ago

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 commented 2 years ago

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

DeqingSun commented 2 years ago

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