Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lind026/simulate-jit-c
https://github.com/lind026/simulate-jit-c
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lind026/simulate-jit-c
- Owner: linD026
- Created: 2022-09-25T17:51:48.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-21T03:52:50.000Z (about 2 years ago)
- Last Synced: 2023-03-04T00:43:50.269Z (almost 2 years ago)
- Language: C
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```