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
README.md removed untrue statement 6 months ago
buildexe.c init 6 months ago

README.md

self

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

Setup

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

Usage

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: 
yolo
Building output.exe...
Done.
  • Run output.exe
$ output.exe
yolo