diff options
| author | grischka <grischka> | 2017-02-18 09:55:34 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2017-02-18 09:55:34 +0100 |
| commit | 2d3b9559bf569f137cefb7f8386a0dc58e33c81f (patch) | |
| tree | 4da5267d5dd1bf907bdf82d7065c751a05757e6e /win32/tcc-win32.txt | |
| parent | f34b1feaca557cd9da198610b67d4328fb0c7a84 (diff) | |
| download | tinycc-2d3b9559bf569f137cefb7f8386a0dc58e33c81f.tar.gz tinycc-2d3b9559bf569f137cefb7f8386a0dc58e33c81f.tar.bz2 | |
tcctools.c: integrate tiny_libmaker/_impdef
usage:
tcc -ar [rcsv] lib files...
tcc -impdef lib.dll [-v] [-o lib.def]
also:
- support more files with -c: tcc -c f1.c f2.c ...
- fix a bug which caused tcc f1.c f2.S to produce no asm
- allow tcc -ar @listfile too
- change prototype: _void_ tcc_set_options(...)
- apply -Wl,-whole-archive when a librariy is given
as libxxx.a also (not just for -lxxx)
Diffstat (limited to 'win32/tcc-win32.txt')
| -rw-r--r-- | win32/tcc-win32.txt | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/win32/tcc-win32.txt b/win32/tcc-win32.txt index dfcfb1b..3609684 100644 --- a/win32/tcc-win32.txt +++ b/win32/tcc-win32.txt @@ -39,7 +39,7 @@ For the 'Hello DLL' example type tcc -shared dll.c - tiny_impdef dll.dll (optional) + tcc -impdef dll.dll (optional) tcc hello_dll.c dll.def @@ -66,10 +66,10 @@ To link with Windows system DLLs, TCC uses import definition files (.def) instead of libraries. - The included 'tiny_impdef' program may be used to make additional - .def files for any DLL. For example: + The now built-in 'tiny_impdef' program may be used to make + additional .def files for any DLL. For example - tiny_impdef.exe opengl32.dll + tcc -impdef [-v] opengl32.dll [-o opengl32.def] Put opengl32.def into the tcc/lib directory. Specify -lopengl32 at the TCC commandline to link a program that uses opengl32.dll. @@ -98,10 +98,10 @@ Tiny Libmaker: -------------- - The included tiny_libmaker tool by Timovj Lahde can be used as + The now built-in tiny_libmaker tool by Timovj Lahde can be used as 'ar' replacement to make a library from several object files: - tiny_libmaker [rcs] library objectfiles ... + tcc -ar [rcsv] library objectfiles ... Compilation from source: @@ -143,14 +143,12 @@ ------------ - On the object file level, currently TCC supports only the ELF format, not COFF as used by MinGW and MSVC. It is not possible to exchange - object files or libraries between TCC and these compilers. However - libraries for TCC from objects by TCC can be made using tiny_libmaker - or MinGW's ar. + object files or libraries between TCC and these compilers. - - No leading underscore is generated in the ELF symbols. - - - Bounds checking (option -b) is not supported on 64-bit OS. + However libraries for TCC from objects by TCC can be made using + tcc -ar lib.a files.o ,,, + - No leading underscore is generated in the ELF symbols. Documentation and License: -------------------------- |
