Small C Compiler Version 2.2
The Small C compiler translates a subset of the C language into
assembly language. It runs under PC/MS-DOS 2.1 and later. Small
C is compatible with both Small Assembler and the Microsoft
assembler MASM. Small C supports a small memory model with one
code and one data/stack segment.
Small C supports arrays of one dimension. Functions always
return integer values. External functions are automatically
declared. Initialization of global variables is supported. The
preprocessor supports #include, #define, #ifdef, #ifndef, #else,
#endif, #asm, #endasm commands . The following control
statements are supported: if, switch, case, default, break,
continue, while, for, and do/while. All expression operators are
supported. Only signed and unsigned integer and character data
types are supported. The following standard C features are not
supported: structures, fields, unions, arrays of pointers, and
casts.
Small C supports UNIX-like I/O redirection and command-line
argument passing. The Small C library includes over 80 functions
-- a nearly complete set of the standard UNIX/C repertoire.
Binary as well as character stream I/O is supported. The
formatted I/O functions printf() and scanf() are included.
Random access to files is provided. Programs can request
additional file buffering.
The compiler itself is written in Small C and is distributed
with both object and source code. As a self compiler, Small C
can be modified to work in other environments and to meet
special needs. Since everything is revealed and fully
documented, Small C has tremendous value as an educational
device. Small C uses a single pass, recursive descent parsing
algorithm. It generates p-codes for internal use, and optimizes
its output.
The Small C language and compiler are fully described in "A
Small C Compiler: Language, Usage, Theory, and Design" by James
E. Hendrix. Copies are available from:
M&T Publishing, Inc.
501 Galveston Dr.
Redwood City, CA 94063
Phone: 1 (800) 533-4372
J. E. Hendrix
P.O. Box 1435
Oxford, MS 38655
没有合适的资源?快使用搜索试试~ 我知道了~
a small c compiler DOS下小的C编译器
共22个文件
c:5个
exe:3个
h:3个
5星 · 超过95%的资源 需积分: 12 52 下载量 51 浏览量
2008-09-26
11:57:01
上传
评论 1
收藏 403KB ZIP 举报
温馨提示
可运行在16位dos下的小的经裁剪的经典C编译器。 不含结构,联合,浮点计算,枚举等特性。 适合于编译器研究人员使用。包含源代码及可执行程序。
资源推荐
资源详情
资源评论
收起资源包目录
smallc22.zip (22个子文件)
CLIB.ARC 52KB
masm5.zip 189KB
REGISTER 2KB
small c.zip 98KB
CLIB.LIB 36KB
CLIBARC.LST 659B
STDIO.H 879B
READ.ME 22KB
CC.H 9KB
C.TXT 3KB
smallc22.txt 259B
CC.EXE 40KB
AR.EXE 14KB
AR.C 9KB
CC1.C 22KB
ASM.EXE 71KB
CC2.C 10KB
CC4.C 24KB
CCC.BAT 452B
CC3.C 21KB
NOTICE.H 179B
HISTORY 7KB
共 22 条
- 1
资源评论
- changY祺2013-11-25it seems to be too complex for me
- 薄荷记账2014-07-29不错,可以看看
- sharonstoll2013-12-23你好,搜索到你提供了a small c compiler的源代码,请问你有这本书吗?
- PG_07292014-02-08很好的资料。代码功能比较全面可读性也比较强
- 卡卡Gemini2013-10-21很不错的小编译器,适合学习
ljhhh0123
- 粉丝: 84
- 资源: 73
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功