Skip to content

senko/calcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

			Calculator Compiler

A tiny compiler for C-like language. Features:
	- 32bit signed integer and 32bit floating point support
	- string constants support via 'print' keyword
	- support for C-style for(;;), while() and if()
	- recursion support
	- C-style function call implementation - can be linked with C libraries
	- (g)libc independance

Requirements:
	- Linux 2.{2,4} / x86 platform
	- NASM (Netwide Assembler)
	- binutils (for linking)

To compile CALCC type `make'. This will build the
compiler (src/calcc), the libraries (lib/libcalc.a)
and test programs under test/ directory.

See test/*.calc files to get a hang of the syntax,
and examine the compiler code for details - also, when
running, the compiler is very verbose, so don't be
alarmed :-)


Author:
	Senko Rasic <senko@senko.net>

Linux I/O library routines by:
	Matija Cizmek <mcizmek@fly.srk.fer.hr> 

About

A tiny compiler for a toy C-like language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published