sdcc

ANSI C compiler for Intel 8051, Maxim 80DS390, and Zilog Z80

brewmacoslinux
Try with needOr install directly
Source

About

ANSI C compiler for Intel 8051, Maxim 80DS390, and Zilog Z80

Commands

sdccsdcppsdas8051sdas390sdasgbsdld

Examples

Compile a C file for Intel 8051 microcontroller$ sdcc -mmcs51 program.c
Compile with optimization and generate Intel HEX output$ sdcc -mmcs51 --opt-code-size --out-fmt-ihx main.c
Compile for Z80 processor with debugging symbols$ sdcc -mz80 --debug main.c