Skip to content
This repository has been archived by the owner. It is now read-only.
Simple C compiler developed by @ShinyaKato in Security Camp 2018
Branch: master
Clone or download
Latest commit c98e89e Aug 21, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
tests Add floating constant Aug 17, 2018
.gitignore Update Makefile and .gitignore Aug 16, 2018
LICENSE
Makefile Update Makefile and .gitignore Aug 16, 2018
README.md
analyze.c Fix address oeprator Aug 17, 2018
cc.h
cpp.c Add #define directive and macro expansion Aug 16, 2018
error.c
gen.c Add floating constant Aug 17, 2018
lex.c Add floating constant Aug 17, 2018
main.c Add empty preprocessor Aug 16, 2018
map.c Replace malloc with calloc Aug 6, 2018
parse.c
scan.c Read source code from file Aug 16, 2018
string.c Replace malloc with calloc Aug 6, 2018
type.c
vector.c Replace malloc with calloc Aug 6, 2018

README.md

seccamp2018

Simple C compiler developed by @ShinyaKato in Security Camp 2018

このリポジトリは純粋にセキュリティ・キャンプ2018の成果物を残しておくためのものです。
機能追加は sk2cc で続けています。

build

Run make command, then cc is generated.

$ make cc

compilation

Compiler cc recieves source file name and generates assembly to stdout. To generate executable, use gcc with -no-pie option.

$ ./cc examples/queen.c > queen.s
$ gcc -no-pie queen.s

example

See example programs that can be compiled with cc in examples.

You can’t perform that action at this time.