You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Felix Soederhuyzen 617471bbf4 removed untrue statement 6 months ago
.gitignore init 6 months ago removed untrue statement 6 months ago
buildexe.c init 6 months ago


Builds an executable with minimal toolchain
that then takes an input and dynamically creates another executable (without toolchain)
which finally prints the input


  • Download suitable tcc binaries
  • Extract archive into <tcc> (where <tcc> is any directory in PATH)


WARNING: This has been tested on windows x64 only, thus commands are intended for use in windows x64 only.

  • Build buildexe.exe
$ tcc -I"<tcc>\libtcc" -L"<tcc>" -ltcc buildexe.c
  • “Build” output.exe
$ buildexe.exe
Enter a word: 
Building output.exe...
  • Run output.exe
$ output.exe