5 This file contains some additional information for usage of TinyCC
11 TinyCC (aka TCC) is a small but hyperfast C compiler, written by
14 TinyCC for MS-Windows can produce console applications, native
15 windows GUI programs and DLL's.
17 The package with under 300kb includes a complete C-compiler with
18 header files and basic system library support.
20 With the -run switch you can run C-sources without any linking
21 directly from the command line.
23 TinyCC can be used as dynamic code generator library in your own
26 TinyCC can of course compile itself.
29 Compilation: (omit that if you use the binary ZIP package)
31 You can use the MinGW and MSYS tools available at
32 http://www.mingw.org to compile TCC for Windows. Untar the TCC
33 archive and type in the MSYS shell:
39 TCC is installed in c:\Program Files\tcc
41 Alternatively you can use win32\build-tcc.bat to compile TCC
42 with just gcc and ar from MINGW. To install, copy the entire
43 contents of the win32 directory to where you want.
46 Installation: (from the binary ZIP package)
48 Just unzip the package to a directory anywhere on your computer.
50 The binary package does not include libtcc. If you want tcc as
51 dynamic code generator, please use the source code distribution.
56 For the 'Fibonacci' console example type from the command line:
60 For the 'Hello Windows' GUI example:
62 tcc examples\hello_win.c
64 For the 'Hello DLL' example:
66 tcc -shared examples\dll.c
67 tcc examples\hello_dll.c examples\dll.def
70 Import Definition Files:
71 ------------------------
72 To link with Windows system DLLs, TinyCC uses import definition
73 files (.def) instead of libraries.
75 The included 'tiny_impdef' program may be used to make additional
76 .def files for any DLL. For example:
78 tiny_impdef.exe opengl32.dll
80 To use it, put the opengl32.def file into the tcc/lib directory,
81 and specify -lopengl32 at the tcc commandline.
86 TinyCC-PE can now link windows resources in coff format as generated
87 by MINGW's windres.exe. For example:
89 windres -O coff app.rc -o appres.o
90 tcc app.c appres.o -o app.exe
95 The included tiny_libmaker tool by Timovj Lahde can be used as
96 'ar' replacement to make a library from several object files.
101 The system header files (except _mingw.h) are from the mingw
102 distribution (http://www.mingw.org/).
105 Documentation and License:
106 --------------------------
107 TCC is distributed under the GNU Lesser General Public License
110 Please read tcc-doc.html to have all the features of TCC. Also
111 visit: http://fabrice.bellard.free.fr/tcc/
114 -- grischka@users.sourceforge.net