Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedroediaz/xc
A toy self-compiling C compiler.
https://github.com/pedroediaz/xc
bsd-3-clause c89 c99 compiler embedded non-recursive parser shunting-yard unix
Last synced: 27 days ago
JSON representation
A toy self-compiling C compiler.
- Host: GitHub
- URL: https://github.com/pedroediaz/xc
- Owner: PedroEdiaz
- License: bsd-3-clause
- Created: 2023-12-17T06:16:49.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-09T04:23:15.000Z (9 months ago)
- Last Synced: 2024-09-30T01:20:11.167Z (about 1 month ago)
- Topics: bsd-3-clause, c89, c99, compiler, embedded, non-recursive, parser, shunting-yard, unix
- Language: C
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
XC
==
A toy self-compiling C compiler.Bugs
----
_ Can not use more than one token for defines
_ Check syntax rules for gotos and labels
_ Clean code for labels in ps.c
_ Warn for unused labels
_ Warn when there is no labels to gotoRodemap
-------
_ Backpatching
_ Deadcode eliminationx Optimization
* Constant folding
* Deadcode elimination
_ Constant Propagation
x Preprocesor
* Warning
* Error
* Define
_ Ifdef
_ Include
x Integers
* Operators
* Constants
_ Variables
_ Floats
_ Operators
_ Constants
_ Variables
* Comments
* Return
* Gotos
_ If
_ While
_ FunctionsCompile and test
----------------
make; ./cc TEST.c