3 ms·
http://bellard.org/tcc http://bellard.org/tcc supports executing C programs "directly". By piping things through clang, for example (a number of C++ compilers c
by waps 13y ago
http://bellard.org/tcc http://bellard.org/tcc supports executing C programs "directly". By piping things through clang, for example (a number of C++ compilers can still translate to C), it can be made to execute C++ programs directly in memory, "just like" python or perl or ...
A spectacular use of this ability is in using tcc as a linux bootloader. Instead of loading vmlinuz, it loads the C source for the kernel, compiles it, and boots the result. It doesn't even need an operating system (try that with python).