rswier / c4

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

How to compile executable files with c4 #79

Open MaDinnerbone opened 4 months ago

MaDinnerbone commented 4 months ago

i want to compile an executable file by c4 itself

rswier commented 4 months 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 4 months ago

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