Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lind026/simulate-jit-c


https://github.com/lind026/simulate-jit-c

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Simulate JIT C

## How to build?

```
make
```

## How to use?

Execute the program.

```
./jit-c
```

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

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

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

```c
> #include
>
> 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
```