?ASlink-Warning-Couldn't find library 'mcs51'
?ASlink-Warning-Couldn't find library 'libsdcc'
?ASlink-Warning-Couldn't find library 'libint'
?ASlink-Warning-Couldn't find library 'liblong'
?ASlink-Warning-Couldn't find library 'libfloat'
?ASlink-Warning-Undefined Global '__mcs51_genRAMCLEAR' referenced by module 'led01'
?ASlink-Warning-Undefined Global '__mcs51_genXINIT' referenced by module 'led01'
?ASlink-Warning-Undefined Global '__mcs51_genXRAMCLEAR' referenced by module 'led01'
?ASlink-Warning-Undefined Global '__sdcc_gsinit_startup' referenced by module 'led01'
----------------------------------
SDCC的版本7102到8719存在问题,最新可用的版本为8737(截止2014年4月)
--------------------------------
1. 修改 /opt/sdcc/device/lib/incl.mk
将最后一行
MODELS = small medium large
替换为
MODELS = small large huge
2. 修改 /opt/sdcc/device/lib/incl.mk
将某行
TARGETS += models small-mcs51-stack-auto
替换为
TARGETS += models model-mcs51-stack-auto
3. 仅支持8051,禁止对其他MCU的支持
./configure --disable-gbz80-port --disable-z80-port --disable-ds390-port \
--disable-ds400-port --disable-pic14-port --disable-pic16-port \
--disable-hc08-port --disable-r2k-port --disable-z180-port \
--disable-sdcdb --disable-ucsim
-----------------------------------------------------
以上操作没有验证。
参考: