aboutsummaryrefslogtreecommitdiff
path: root/win32/tcc-win32.txt
diff options
context:
space:
mode:
authorgrischka <grischka>2013-02-12 19:13:28 +0100
committergrischka <grischka>2013-02-12 19:13:28 +0100
commit05108a3b0a8eff70739b253b8995999b1861f9f2 (patch)
tree690c17ebe3cd0479e278bc3b65e00eba7ec674fd /win32/tcc-win32.txt
parent829655949b7964c66e1f7da9d44c19655dba88aa (diff)
downloadtinycc-05108a3b0a8eff70739b253b8995999b1861f9f2.tar.gz
tinycc-05108a3b0a8eff70739b253b8995999b1861f9f2.tar.bz2
libtcc: new LIBTCCAPI tcc_set_options(TCCState*, const char*str)
This replaces -> use instead: ----------------------------------- - tcc_set_linker -> tcc_set_options(s, "-Wl,..."); - tcc_set_warning -> tcc_set_options(s, "-W..."); - tcc_enable_debug -> tcc_set_options(s, "-g"); parse_args is moved to libtcc.c (now tcc_parse_args). Also some cleanups: - reorder TCCState members - add some comments here and there - do not use argv's directly, make string copies - use const char* in tcc_set_linker - tccpe: use fd instead of fp tested with -D MEM_DEBUG: 0 bytes left
Diffstat (limited to 'win32/tcc-win32.txt')
-rw-r--r--win32/tcc-win32.txt44
1 files changed, 23 insertions, 21 deletions
diff --git a/win32/tcc-win32.txt b/win32/tcc-win32.txt
index 12f6ae7..dc06b8f 100644
--- a/win32/tcc-win32.txt
+++ b/win32/tcc-win32.txt
@@ -6,13 +6,11 @@
under MS-Windows. See tcc-doc.html to have all the features.
-
Installation from the binary ZIP package:
-----------------------------------------
Unzip the package to a directory of your choice.
-
Set the system PATH:
--------------------
To be able to invoke the compiler from everywhere on your computer by
@@ -20,7 +18,6 @@
system PATH.
-
Examples:
---------
Open a console window (DOS box) and 'cd' to the examples directory.
@@ -39,9 +36,23 @@
tiny_impdef dll.dll (optional)
tcc hello_dll.c dll.def
- For the 'libtcc_test' example type
- tcc examples/libtcc_test.c -I libtcc -L libtcc -ltcc
+ Using libtcc as JIT compiler in your program
+ --------------------------------------------
+ Check out the 'libtcc_test' example:
+
+ - Running it from source:
+ tcc -I libtcc libtcc/libtcc.def -run examples/libtcc_test.c
+
+ - Compiling with TCC:
+ tcc examples/libtcc_test.c -I libtcc libtcc/libtcc.def
+
+ - Compiling with MinGW:
+ gcc examples/libtcc_test.c -I libtcc libtcc.dll
+
+ - Compiling with MSVC:
+ lib /def:libtcc\libtcc.def /out:libtcc.lib
+ cl /MD examples/libtcc_test.c -I libtcc libtcc.lib
Import Definition Files:
@@ -58,7 +69,6 @@
the TCC commandline to link a program that uses opengl32.dll.
-
Header Files:
-------------
The system header files (except _mingw.h) are from the MinGW
@@ -71,7 +81,6 @@
into your "tcc/include/winapi" directory.
-
Resource Files:
---------------
TCC can link windows resources in coff format as generated by MinGW's
@@ -81,7 +90,6 @@
tcc app.c appres.o -o app.exe
-
Tiny Libmaker:
--------------
The included tiny_libmaker tool by Timovj Lahde can be used as
@@ -90,29 +98,26 @@
tiny_libmaker [rcs] library objectfiles ...
-
Compilation from source:
------------------------
* You can use the MinGW and MSYS tools available at
http://www.mingw.org
- Untar the TCC archive and type in the MSYS shell:
+ Untar the TCC archive and type in the MSYS shell:
- ./configure
- make
- make install
+ ./configure [--prefix installpath]
+ make
+ make install
The default install location is c:\Program Files\tcc
-
* Alternatively you can compile TCC with just GCC from MinGW using
- win32\build-tcc.bat
-
- To install, copy the entire contents of the win32 directory to
- where you want.
+ build-tcc.bat (from the win32 directory)
+ To install, copy the entire contents of the win32 directory to
+ where you want.
Limitations:
@@ -128,7 +133,6 @@
- Bounds checking (option -b) is not supported on 64-bit OS.
-
Documentation and License:
--------------------------
TCC is distributed under the GNU Lesser General Public License. (See
@@ -139,7 +143,6 @@
http://fabrice.bellard.free.fr/tcc/
-
WinAPI Help and 3rd-party tools:
--------------------------------
The Windows API documentation (Win95) in a single .hlp file is
@@ -150,5 +153,4 @@
"ResEd", available at the RadASM website.
-
--- grischka