rswier / c4

C in four functions
GNU General Public License v2.0
9.62k stars 1.42k forks source link

How to compile executable files with c4 #79

Open MaDinnerbone opened 2 months ago

MaDinnerbone commented 2 months ago

i want to compile an executable file by c4 itself

rswier commented 1 month ago

Take a look at this fork of c4 by Dmytro Sirenko that includes a version that targets x86 execution. Hopefully that helps! https://github.com/EarlGray/c4

EarlGray commented 1 month ago

Yes, taking the generated machine code and dumping it into a simple ELF file should be straightforward.