Emulate how a C code runs on CPU
Version: Beta 1.2.0
CtoCPUEmulation is a project that emulates the execution of C code. It emulates the conversion of how a C code converts into assembly code then into machine code and then runs on a CPU & what instructions does CPU executes
- Show the assembly code of the C code
- Show the machine code of the assembly code
- Clone the repository:
git clone https://github.com/fardinkamal62/CtoCPUEmulation.git
- Navigate to the project directory:
cd CtoCPUEmulation
- Put your C code in
io/input.c
file. Checkio/input.c
for example. - Run
gcc main.c -o build/main && build/main
to compile and run the program.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the GNU General Public License v3.0.
- Load binary instructions into memory
- Emulate executing binary instructions on CPU
- Show the output of the execution
Able to convert C code to assembly code and machine code and show the output.