simple-c-compiler

所属分类:聚类算法
开发工具:C++
文件大小:133KB
下载次数:0
上传日期:2019-06-12 04:49:59
上 传 者sh-1993
说明:  C编程语言Simple C的自定义子集的编译器。我最初将六个阶段中的每一个都写成...
(A compiler for a custom subset of the C programming language, Simple C. I originally wrote each of the six phases as part of my Formal Language Theory & Compiler Construction (COEN 175) lab at Santa Clara University in Spring 2019.)

文件列表:
.clang-format (144, 2019-06-12)
phase1 (0, 2019-06-12)
phase1\checksub.sh (910, 2019-06-12)
phase1\examples (0, 2019-06-12)
phase1\examples\fib.c (250, 2019-06-12)
phase1\examples\fib.out (863, 2019-06-12)
phase1\examples\hello.c (75, 2019-06-12)
phase1\examples\hello.out (222, 2019-06-12)
phase1\examples\list.c (409, 2019-06-12)
phase1\examples\list.out (1502, 2019-06-12)
phase1\examples\malloc.c (162, 2019-06-12)
phase1\examples\malloc.out (600, 2019-06-12)
phase1\examples\sum.c (207, 2019-06-12)
phase1\examples\sum.out (802, 2019-06-12)
phase1\examples\tricky.c (263, 2019-06-12)
phase1\examples\tricky.out (294, 2019-06-12)
phase1\phase1 (0, 2019-06-12)
phase1\phase1\Makefile (163, 2019-06-12)
phase1\phase1\scc.cpp (7511, 2019-06-12)
phase2 (0, 2019-06-12)
phase2\checksub.sh (910, 2019-06-12)
phase2\examples (0, 2019-06-12)
phase2\examples\array.c (212, 2019-06-12)
phase2\examples\array.out (103, 2019-06-12)
phase2\examples\fib.c (253, 2019-06-12)
phase2\examples\fib.out (28, 2019-06-12)
phase2\examples\hello.c (78, 2019-06-12)
phase2\examples\hello.out (0, 2019-06-12)
phase2\examples\list.c (327, 2019-06-12)
phase2\examples\list.out (51, 2019-06-12)
phase2\examples\malloc.c (125, 2019-06-12)
phase2\examples\malloc.out (22, 2019-06-12)
phase2\examples\params.c (91, 2019-06-12)
phase2\examples\params.out (20, 2019-06-12)
phase2\examples\sum.c (208, 2019-06-12)
phase2\examples\sum.out (24, 2019-06-12)
phase2\phase2 (0, 2019-06-12)
... ...

# simple-c-compiler ## Overview Simple C is a subset of the C programming language. That is, all Simple C programs are valid C programs. Simple C uses a recursive descent parser that moves from left-to-right, and performs the leftmost derivation. In other words, the Simple C parser is an LL(k) parser. The Simple C compiler generates valid assembly code exclusively for ***-bit Intel machines running the Linux operating system. ## Phase 1 Lexical analyzer ## Phase 2 Recursive descent parser for entire Simple C language ## Phase 3 Scope and symbol table with rudimentary type checking ## Phase 4 Type checking for entire Simple C language ## Phase 5 Storage allocation for functions and rudimentary code generation ## Phase 6 Code generation for entire Simple C language

近期下载者

相关文件


收藏者