Search code examples
cwindowscompiler-constructionexe

Ccreate an .exe from a .C file on Windows


I would like to know if it is possible to create a .EXE from a .C file without using any compiler on Windows ?


Solution

  • You can cross-compile from another platform, e.g. using MinGW on another OS such as Linux or Mac OS X, but ultimately you need a compiler somewhere.

    If you don't actually need a .EXE per se, but just want to compile and run some C code without having to install a compiler, e.g. for educational/experimental purposes, then there are very useful sites such as codepad.org and ideone.com which provide this capability for C and a number of other languages.