cs420
cs420 copied to clipboard
[Homework 2] IR Generation (due: 4/27)
Implement IR generation.
- goal: understanding the IR provided by KECC
-
instruction
- https://www.youtube.com/watch?v=HjARCUoK08s&list=PL5aMzERQ_OZ8RWqn-XiZLXm1IJuaQbXp0&index=12
- https://www.youtube.com/watch?v=Rszt9x0Xu_0&list=PL5aMzERQ_OZ8RWqn-XiZLXm1IJuaQbXp0&index=13
-
skeleton: https://github.com/kaist-cp/kecc-public/blob/main/src/irgen/mod.rs
- fill out
todo!()
. - don't fork this repository. It'll be public!
- fill out
-
self grader
- https://github.com/kaist-cp/kecc-public/blob/main/scripts/grade-irgen-small.sh (small)
- https://github.com/kaist-cp/kecc-public/blob/main/scripts/grade-irgen.sh (full)
-
submission: run
./scripts/make-submissions.sh
and then submitirgen.zip.
- Your
write_c.rs
andirgen/mod.rs
will be submitted. - https://gg.kaist.ac.kr/assignment/150/ (small)
- https://gg.kaist.ac.kr/assignment/151/ (full)
- Your
- due: 4/27 23:59:59 (KST = UTC+9)
-
tips
- https://github.com/kaist-cp/cs420/issues/78
- https://github.com/kaist-cp/cs420/issues/106
- https://github.com/kaist-cp/cs420/issues/256
- https://github.com/kaist-cp/cs420/issues/384
- begin with the small and then move on to the full. Each one of small and full have the same weight as the other assignments.
- model solution: https://gg.kaist.ac.kr/assignment/158/. It will show the generated KECC IR given a C file.