-
I am trying to smoke test the c api in my toy compiler and wanted to know what is the smallest MIR program I can generate which I can test against.
I just want to know the I have integrated MIR properly. |
Beta Was this translation helpful? Give feedback.
Answered by
vnmakarov
May 25, 2023
Replies: 1 comment
-
You can use
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rishavs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
int main () {return 0;}
and compile it byc2m
with option-S
. It will produce.mir
file you can use for your purposes: