161.2. sdcc-4.6.0
A C compiler for the 8-bit families AVR does not cover — 8051, STM8, Z80, PIC
4.6.0-1 · GPL-2.0-or-later AND GPL-3.0-or-later · 12.7 SBU · 320.0 MiB, 11097 files · 41_system, 428 of 1047 · ports/core/embedded/sdcc
Homepage: https://sdcc.sourceforge.net/
Why it is in KDOS. The comment above sdcc and srecord in script/phases/41_system/packages.d/embedded.txt:
The 8-bit families gcc has no back end for at all: 8051, STM8, Z80 and PDK.
Depends on: boost, bison, flex, zlib, ncurses, readline, gputils.
Required by (1): sigrok-firmware-fx2lafw.
Sources: sdcc-4.6.0.tar.bz2 (25.3 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install sdcc'
build.sh:
./configure --prefix=/usr \
--enable-pic14-port --enable-pic16-port \
--disable-doc
make
make DESTDIR=$PKG install
rm -f "$PKG"/usr/bin/c++filt "$PKG"/usr/share/info/ctf-spec.info "$PKG"/usr/share/info/sframe-spec.info "$PKG"/usr/share/info/dir \
"$PKG"/usr/include/ctf-api.h "$PKG"/usr/include/ctf.h "$PKG"/usr/include/dis-asm.h \
"$PKG"/usr/include/sframe-api.h "$PKG"/usr/include/sframe.h \
"$PKG"/usr/lib/libctf.a "$PKG"/usr/lib/libctf-nobfd.a "$PKG"/usr/lib/libopcodes.a "$PKG"/usr/lib/libsframe.a
rmdir --ignore-fail-on-non-empty "$PKG"/usr/share/info "$PKG"/usr/include
test -d "$PKG"/usr/share/sdcc/lib/pic14
test -d "$PKG"/usr/share/sdcc/lib/pic16
Programs: as2gbmap, makebin, packihx, s51, sdar, sdas390, sdas6500, sdas6808, sdas8051, sdasf8, sdasgb, sdaspdk13, sdaspdk14, sdaspdk15, sdasrab, sdasstm8, sdastlcs90, sdasz80, sdcc, sdcdb, sdcdb.el, sdcdbsrc.el, sdcpp, sdld, sdld6808, sdldf8, sdldgb, sdldpdk, sdldstm8, sdldz80, sdnm, sdobjcopy, sdranlib, ucsim_51, ucsim_f8, ucsim_i8051, ucsim_m6800, ucsim_m68hc08, ucsim_mos6502, ucsim_pdk, ucsim_rxk, ucsim_stm8, ucsim_tlcs, ucsim_xa, ucsim_z80.
Directories: /usr/libexec/sdcc, /usr/share/doc/sdcc, /usr/share/doc/ucsim, /usr/share/licenses/sdcc, /usr/share/sdcc, /usr/x86_64-pc-linux-musl.