Skip to content

fardinkamal62/CtoCPUEmulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
  4. 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.

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.

About

Emulate how a C code runs on CPU

Topics

Resources

License

Stars

Watchers

Forks