ansi c是c语言编译器,SmallerC: SmallerC 是一个简单而小型的单程 C 编译器,目前支持 C89 / ANSI C 之间大部分 C 语言通用,和C99(除去一些 C89 和加上一...

Smaller C is a simple and small single-pass C compiler,

currently supporting most of the C language common between C89/ANSI C

and C99 (minus some C89 and plus some C99 features).

Currently it generates 16-bit and 32-bit 80386+ assembly code for NASM

that can then be assembled and linked into DOS, Windows, Linux and Mac OS X

programs.

(You may use YASM or FASM instead of NASM)

Code generation for MIPS CPUs is also supported (primarily for RetroBSD).

The compiler is capable of compiling itself.

The core compiler comes with a preprocessor (ucpp), a linker and a compiler

driver (the driver invokes the preprocessor, the core compiler, the assembler,

and the linker and supports options similar to those of gcc).

The standard C library is work-in-progress and it's close to completion.

See the project documentation for more up-to-date details:

https://github.com/alexfru/SmallerC/tree/master/v0100/doc

For the lack of a better place, you can discuss Smaller C here:

https://hackaday.io/project/5569-smaller-c

Links:

NASM: http://nasm.us/

YASM: http://yasm.tortall.net/

FASM: http://flatassembler.net/

CWSDPMI: https://sandmann.dotster.com/cwsdpmi/

HX DOS Extender: https://web.archive.org/web/20141003032346/http://www.japheth.de/

RetroBSD: http://retrobsd.org/

Other projects based on/using Smaller C:

"ROM C" (like ROM Basic but C): https://hackaday.io/project/29198-native-c-pic32-color-video-on-tv

FYS OS: http://www.fysnet.net/fysos.htm

NewBasic Compiler: http://fysnet.net/nbc.htm

Sweet32 CPU and toolchain: https://github.com/Basman74/Sweet32-CPU

Normative and other useful documents on C:

C99 + TC1 + TC2 + TC3, WG14 N1256:

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf

Dave Prosser's C preprocessing algorithm annotated by Diomidis D. Spinellis:

http://www.spinellis.gr/blog/20060626/index.html

Rationale for C99:

http://www.open-std.org/jtc1/sc22/wg14/www/docs/C99RationaleV5.10.pdf

The New C Standard: An Economic and Cultural Commentary:

http://www.knosof.co.uk/cbook/cbook.html

The Development of the C Language by Dennis M. Ritchie:

https://www.bell-labs.com/usr/dmr/www/chist.html

The Standard C Library by P.J. Plauger

https://www.amazon.com/dp/0131315099

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值