Skip to content

YawningCheese99/c2bat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

c2bat

Compile c code to windows batch files.

To use, extract c2bat.zip. Modify test.c, run build.sh, and then run final.bat with windows command prompt.

For test.c, you must include "std.h" at the top of the file. No standard libraries are included. Use puti(int) to print an integer. The main function must begin with ENTRY (defined in std.h). See the provided test.c for an example.

It works by compiling the c to riscv with gcc, and then translating the riscv assembly into batch. You will need the necessary dependencies for working with riscv in gcc. You need: riscv64-unknown-elf-gcc, riscv64-linux-gnu-objdump, riscv64-unknown-elf-objdump

About

Compile c code to windows batch files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors