终于找到一个uC编译器。

C、C++和Java语言
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

终于找到一个uC编译器。

#1

帖子 eexpress » 2006-05-14 0:13

http://sdcc.sourceforge.net/

SDCC is a Freeware, retargettable, optimizing ANSI - C compiler that targets the Intel 8051, Maxim 80DS390 and the Zilog Z80 based MCUs. Work is in progress on supporting the Motorola 68HC08 as well as Microchip PIC16 and PIC18 series. The entire source code for the compiler is distributed under GPL.

源里面有。
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

pdf里面的参数,支持的uC

#2

帖子 eexpress » 2006-05-14 0:15

3.2.1 Processor Selection Options
-mmcs51 Generate code for the Intel MCS51 family of processors. This is the default processor target.
-mds390 Generate code for the Dallas DS80C390 processor.
-mds400 Generate code for the Dallas DS80C400 processor.
-mhc08 Generate code for the Freescale/Motorola HC08 family of processors.
-mz80 Generate code for the Zilog Z80 family of processors.
-mgbz80 Generate code for the GameBoy Z80 processor (Not actively maintained).
-mavr Generate code for the Atmel AVR processor (In development, not complete). AVR users should probably have a look at winavr http://sourceforge.net/projects/winavr or http://www. avrfreaks.net/index.php?name=PNphpBB2&file=index.
-mpic14 Generate code for the Microchip PIC 14-bit processors (p16f84 and variants. In development, not complete).
-mpic16 Generate code for the Microchip PIC 16-bit processors (p18f452 and variants. In development, not complete).
-mtlcs900h Generate code for the Toshiba TLCS-900H processor (Not maintained, not complete).
-mxa51 Generate code for the Phillips XA51 processor (Not maintained, not complete).
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#3

帖子 eexpress » 2006-05-14 22:40

产生的文件比较齐全的。

main.asm main.ihx main.lst main.mem main.rst main.sym
main.c main.lnk main.map main.rel main.S19

非常规矩啊。

下次仔细比较代码生成水平。和商业软件的比较lst文件。 :lol:
● 鸣学
回复

回到 “C/C++/Java”