https://github.com/fardinkamal62/ctocpuemulation
Emulate how a C code runs on CPU
https://github.com/fardinkamal62/ctocpuemulation
c emulation
Last synced: 10 months ago
JSON representation
Emulate how a C code runs on CPU
- Host: GitHub
- URL: https://github.com/fardinkamal62/ctocpuemulation
- Owner: fardinkamal62
- License: gpl-3.0
- Created: 2024-02-09T10:27:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-08T14:53:40.000Z (over 2 years ago)
- Last Synced: 2025-08-02T21:07:42.126Z (11 months ago)
- Topics: c, emulation
- Language: C
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CtoCPUEmulation
Emulate how a C code runs on CPU
Version: Beta 1.2.0
## Description
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
## Features
- Show the assembly code of the C code
- Show the machine code of the assembly code
## Usage
1. Clone the repository: `git clone https://github.com/fardinkamal62/CtoCPUEmulation.git`
2. Navigate to the project directory: `cd CtoCPUEmulation`
3. Put your C code in `io/input.c` file. Check `io/input.c` for example.
3. Run `gcc main.c -o build/main && build/main` to compile and run the program.
## Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
## License
This project is licensed under the [GNU General Public License v3.0](LICENSE).
## Changelog
### Beta 1.2.0
- Load binary instructions into memory
- Emulate executing binary instructions on CPU
- Show the output of the execution
### Beta 1.0.0
Able to convert C code to assembly code and machine code and show the output.