aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorgrischka <grischka>2007-12-19 17:36:42 +0000
committergrischka <grischka>2007-12-19 17:36:42 +0000
commit5342b32eef56a73dfc9c932bf4c77963de2f6f8e (patch)
treee6a02625cc67e1af9a94c875db4a3626e8a3003f /win32
parentadb14564724f9afdae98678a2b237413d0e42bcf (diff)
downloadtinycc-5342b32eef56a73dfc9c932bf4c77963de2f6f8e.tar.gz
tinycc-5342b32eef56a73dfc9c932bf4c77963de2f6f8e.tar.bz2
Switch to newer tccpe.c (includes support for resources)
Diffstat (limited to 'win32')
-rw-r--r--win32/readme.txt145
1 files changed, 78 insertions, 67 deletions
diff --git a/win32/readme.txt b/win32/readme.txt
index 1ad30f3..c453a69 100644
--- a/win32/readme.txt
+++ b/win32/readme.txt
@@ -1,115 +1,126 @@
- TinyCC-PE
- ---------
+ TinyCC-PE
+ ---------
- TinyCC (aka TCC) is a small but hyperfast C compiler,
- written by Fabrice Bellard,
+ TinyCC (aka TCC) is a small but hyperfast C compiler,
+ written by Fabrice Bellard,
- TinyCC-PE is the TinyCC compiler with an extension to
- write PE executables for MS-Windows.
+ TinyCC-PE is the TinyCC compiler with an extension to
+ write PE executables for MS-Windows.
- Features:
- ---------
+ Features:
+ ---------
- TinyCC-PE can produce console applications, native windows
- GUI programs and DLL's.
+ TinyCC-PE can produce console applications, native windows
+ GUI programs and DLL's.
- Most of the features pointed out by Fabrice Bellard for the
- original version are still valid, i.e:
+ Most of the features pointed out by Fabrice Bellard for the
+ original version are still valid, i.e:
- - SMALL! The package with ~400kb includes a complete C-compiler
- with header files for console and GUI applications.
+ - SMALL! The package with ~400kb includes a complete C-compiler
+ with header files for console and GUI applications.
- - With the -run switch you can run C-sources without any
- linking directly from the command line.
+ - With the -run switch you can run C-sources without any
+ linking directly from the command line.
- - TCC can of course compile itself.
+ - TCC can of course compile itself.
- Compilation: (omit that if you use the binary ZIP package)
- ------------
-
- You must use the MinGW and MSYS tools available at
- http://www.mingw.org to compile TCC for Windows. Untar the TCC
- archive and type in the MSYS shell:
-
- ./configure
- make
- make install
+ Compilation: (omit that if you use the binary ZIP package)
+ ------------
+
+ You must use the MinGW and MSYS tools available at
+ http://www.mingw.org to compile TCC for Windows. Untar the TCC
+ archive and type in the MSYS shell:
+
+ ./configure
+ make
+ make install
- TCC is installed in c:\Program Files\tcc
+ TCC is installed in c:\Program Files\tcc
- Installation: (from the binary ZIP package)
- -------------
+ Alternatively you can use win32\build-tcc.bat to compile TCC
+ with just gcc and ar from MINGW. To install, copy the entire
+ contents of the win32 directory to where you want.
- Just unzip the package to a directory anywhere on your computer.
+ Installation: (from the binary ZIP package)
+ -------------
- Examples:
- ---------
+ Just unzip the package to a directory anywhere on your computer.
- For the 'Fibonacci' console example type from the command line:
- tcc examples\fib.c
+ Examples:
+ ---------
+ For the 'Fibonacci' console example type from the command line:
- For the 'Hello Windows' GUI example:
+ tcc examples\fib.c
- tcc examples\hello_win.c
+ For the 'Hello Windows' GUI example:
+ tcc examples\hello_win.c
- For the 'Hello DLL' example:
+ For the 'Hello DLL' example:
- tcc -shared examples\dll.c
- tcc examples\hello_dll.c examples\dll.def
+ tcc -shared examples\dll.c
+ tcc examples\hello_dll.c examples\dll.def
- Import Definitions:
- -------------------
+ Import Definitions:
+ -------------------
- TinyCC-PE searches and reads import definition files similar
- to libraries.
+ TinyCC-PE searches and reads import definition files similar
+ to libraries.
- The included 'tiny_impdef' program may be used to make .def files
- for any DLL, e.g for an 'opengl32.def':
+ The included 'tiny_impdef' program may be used to make .def files
+ for any DLL, e.g for an 'opengl32.def':
- tiny_impdef.exe opengl32.dll
+ tiny_impdef.exe opengl32.dll
- or to the same effect:
+ or to the same effect:
- tcc -lkernel32 -run tiny_impdef.c opengl32.dll
+ tcc -run tiny_impdef.c opengl32.dll
- Header Files:
- -------------
+ Resource Files:
+ ---------------
- The system header files, except '_mingw.h', are from the
- 2.0 mingw distribution. See also: http://www.mingw.org/
+ TinyCC-PE can now link windows resources in coff format as generated
+ by MINGW's windres.exe. For example:
+ windres -O coff app.rc -o appres.o
+ tcc app.c appres.o -o app.exe
- Compile TCC:
- ------------
- With TCC itself just say:
+ Header Files:
+ -------------
- tcc src\tcc.c -lkernel32 -o tcc.new.exe
+ The system header files, except '_mingw.h', are from the
+ 3.7 mingw distribution. See also: http://www.mingw.org/
- Other compilers like mingw-gcc or msvc work as well.
- To make libtcc1.a, you need 'ar' from the mingw binutils.
+ Compile TCC:
+ ------------
- Documentation and License:
- --------------------------
+ With TCC itself just say:
- TCC is distributed under the GNU Lesser General Public License
- (see COPYING file).
+ tcc src\tcc.c -o tcc.new.exe
- Please read the original tcc-doc.html to have all the features
- of TCC. Also visit: http://fabrice.bellard.free.fr/tcc/
+ Other compilers like mingw-gcc or msvc work as well.
+ To make libtcc1.a, you need 'ar' from the mingw binutils.
- --------------------------------------------
- 09.Apr.2005 - grischka@users.sourceforge.net
+ Documentation and License:
+ --------------------------
+ TCC is distributed under the GNU Lesser General Public License
+ (see COPYING file).
+
+ Please read the original tcc-doc.html to have all the features
+ of TCC. Also visit: http://fabrice.bellard.free.fr/tcc/
+
+ --
+ grischka@users.sourceforge.net