5 TinyCC (aka TCC) is a small but hyperfast C compiler,
6 written by Fabrice Bellard,
9 TinyCC-PE is the TinyCC compiler with an extension to
10 write PE executables for MS-Windows.
16 TinyCC-PE can produce console applications, native windows
17 GUI programs and DLL's.
19 Most of the features pointed out by Fabrice Bellard for the
20 original version are still valid, i.e:
22 - SMALL! The package with ~400kb includes a complete C-compiler
23 with header files for console and GUI applications.
25 - With the -run switch you can run C-sources without any
26 linking directly from the command line.
28 - TCC can of course compile itself.
31 Compilation: (omit that if you use the binary ZIP package)
34 You must use the MinGW and MSYS tools available at
35 http://www.mingw.org to compile TCC for Windows. Untar the TCC
36 archive and type in the MSYS shell:
42 TCC is installed in c:\Program Files\tcc
44 Installation: (from the binary ZIP package)
47 Just unzip the package to a directory anywhere on your computer.
53 For the 'Fibonacci' console example type from the command line:
58 For the 'Hello Windows' GUI example:
60 tcc examples\hello_win.c
63 For the 'Hello DLL' example:
65 tcc -shared examples\dll.c
66 tcc examples\hello_dll.c examples\dll.def
72 TinyCC-PE searches and reads import definition files similar
75 The included 'tiny_impdef' program may be used to make .def files
76 for any DLL, e.g for an 'opengl32.def':
78 tiny_impdef.exe opengl32.dll
80 or to the same effect:
82 tcc -lkernel32 -run tiny_impdef.c opengl32.dll
88 The system header files, except '_mingw.h', are from the
89 2.0 mingw distribution. See also: http://www.mingw.org/
95 With TCC itself just say:
97 tcc src\tcc.c -lkernel32 -o tcc.new.exe
99 Other compilers like mingw-gcc or msvc work as well.
100 To make libtcc1.a, you need 'ar' from the mingw binutils.
103 Documentation and License:
104 --------------------------
106 TCC is distributed under the GNU Lesser General Public License
109 Please read the original tcc-doc.html to have all the features
110 of TCC. Also visit: http://fabrice.bellard.free.fr/tcc/
113 --------------------------------------------
114 09.Apr.2005 - grischka@users.sourceforge.net