linD026 / Simulate-JIT-C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simulate JIT C

How to build?

make

How to use?

Execute the program.

./jit-c

Write an code block with end of "//0".

> int ret_int(void)
> {
>     return 0;
> }
> //0

When you write the main function, it will auto execute the program.

> #include <stdio.h>
>
> int main(void) {
>     printf("get: %d\n", ret_int());
>     return 0;
> }
> //0
----------
get: 0
----------

After finishing your program, enter "quit" to exit.

Debugging

Add "debug=1" to the make command then it will print out all the system command during executing the program.

make debug=1

About


Languages

Language:C 95.5%Language:Makefile 4.5%