It is translated from tcc-win32.txt, which is the first release version of tiny C compiler (tinycc or TCC) 0.9.25 windows2.
Tinycc
======
This document contains specific information used in MS-Windows. Tcc-doc.html understand all the features.
Compile from source code:
------------------------
* You can use mingw and msys tools to obtain them at this address.
Http://www.mingw.org
Decompress the TCC package and input the following in msys shell:
./Configure
Make
Make install
The default installation path is c: \ Program Files \ TCC.
* You can also use GCC in mingw to compile TCC.
Win32 build-tcc.bat
Copy all the content in the Win32 Directory to the desired location for installation.
Install from a binary zip package:
-----------------------------------------
Decompress the package to the desired directory.
(Note: The compressed package does not contain libtcc. If you want to use TCC as a dynamic code generator, use the source code release .)
Set the system variable path:
--------------------
To use tcc.exe as needed (for example, to input tcc.exe in the command line, add the directory where tcc.exe is located to path.
Example:
---------
Open the command line and 'cd' to the directory where the example is located.
For the "Fibonacci" example, enter:
TCC fib. c
For the "Hello windows" Gui example, enter:
TCC hello_win.c
For the "Hello DLL" example, enter:
TCC-shared DLL. c
Tiny_impdef DLL. dll (optional)
TCC hello_dll.c DLL. Def
Import definition file:
------------------------
TCC uses the import definition file (. Def) instead of the library file to connect to the Windows system DLL.
The tiny_impdef program can generate a. Def file for any DLL, for example:
Tiny_impdef.exe opengl32.dll
Put opengl32.def In the TCC/lib directory. When the program is connected to opengl32.dll, add-lopengl32 to the TCC command line.
Header file:
-------------
The system header file (except _ mingw. h) comes from the mingw program:
Http://www.mingw.org/
The Windows header file contains only a small part. If you need more files, you can obtain them from mingw "w32api.
Resource file:
---------------
Tcccan link to Windows resources in coff format like windres.exe in mingw. For example:
Windres-O coff app. RC-O appres. o
TCC app. c appres. O-o app.exe
Tiny libmaker:
--------------
Tiny_libmaker tool (Author: timovj Lahde) can generate libraries from some target files instead of AR, such
Tiny_libmaker [RCS] library objectfiles...
Restrictions:
------------
-For the target file, TCC currently only supports the ELF format and does not support coff formats used by mingw and msvc.
It is not feasible to exchange the target file and library file between TCC and these compilers.
However, you can use tiny_libmaker or mingw ar to generate available library files for TCC from the target file compiled by TCC.
-The elf tag starts with no underline.
-Only DLL functions can be imported or exported. Data is not supported yet;
-Currently, border check (parameter-B) is not supported );
-64-bit systems are not supported.
Documents and licenses:
--------------------------
TCC is issued in accordance with the GNU lgpl protocol (view copying files or http://www.gnu.org/licenses/lgpl-2.1.html)
TCC home page is: http://fabrice.bellard.free.fr/tcc/
Winapi help and third-party tools:
--------------------------------
Windows API documentation (A. HLP File) can be obtained at the lcc-win32 site in the "win32hlp.exe" file,
You can also use the "win32hlp_big.zip" file elsewhere.
Resed is an excellent rad tool that can be used to create windows resource files such as dialog boxes. This tool can be obtained in redasm.
--- Grischka