History

update manual, changelog

grischka committed 18 years ago

Commit f22e9611 parent a327c7a5 files · +27 −15Browse files

Unified · Split

5 files
  1. Changelog +4 −1
  2. Makefile +1 −1
  3. tcc-doc.texi +19 −12
  4. tcc.c +2 −0
  5. tcctest.c +1 −1
Changelog+4−1
@@ -1,8 +1,11 @@
1version 0.9.24:1version 0.9.24:
2 2
3- added verbosity levels -v, -vv, -vvv
4- Accept standard input as an inputstream (Hanzac Chen)
5- Support c89 compilers other than gcc (Hanzac Chen)
6- -soname linker option (Marc Andre Tanner)
3- Just warn about unknown directives, ignore quotes in #error/#warning7- Just warn about unknown directives, ignore quotes in #error/#warning
4- Define __STDC_VERSION__=199901L (477)8- Define __STDC_VERSION__=199901L (477)
5
6- Switch to newer tccpe.c (includes support for resources)9- Switch to newer tccpe.c (includes support for resources)
7- Handle backslashes within #include/#error/#warning10- Handle backslashes within #include/#error/#warning
8- Import changesets (part 4) 428,457,460,467: defines for openbsd etc.11- Import changesets (part 4) 428,457,460,467: defines for openbsd etc.
Makefile+1−1
@@ -66,7 +66,7 @@ test: test.ref test.out · 65 unmodified lines
66 @if diff -u test.ref test.out ; then echo "Auto Test OK"; fi66 @if diff -u test.ref test.out ; then echo "Auto Test OK"; fi
67 67
68tcctest.ref: tcctest.c 68tcctest.ref: tcctest.c
69 $(CC) $(CFLAGS) -I. -o $@ $<69 $(CC) $(CFLAGS) -w -I. -o $@ $<
70 70
71test.ref: tcctest.ref71test.ref: tcctest.ref
72 ./tcctest.ref > $@72 ./tcctest.ref > $@
tcc-doc.texi+19−12
@@ -414,13 +414,6 @@ is the same as writing · 413 unmodified lines
414@end itemize414@end itemize
415 415
416@section GNU C extensions416@section GNU C extensions
417@cindex aligned attribute
418@cindex packed attribute
419@cindex section attribute
420@cindex unused attribute
421@cindex cdecl attribute
422@cindex stdcall attribute
423@cindex regparm attribute
424 417
425TCC implements some GNU C extensions:418TCC implements some GNU C extensions:
426 419
@@ -454,13 +447,22 @@ instead of · 27 unmodified lines
454 @}447 @}
455@end example448@end example
456 449
450@cindex aligned attribute
451@cindex packed attribute
452@cindex section attribute
453@cindex unused attribute
454@cindex cdecl attribute
455@cindex stdcall attribute
456@cindex regparm attribute
457@cindex dllexport attribute
458
457@item The keyword @code{__attribute__} is handled to specify variable or459@item The keyword @code{__attribute__} is handled to specify variable or
458function attributes. The following attributes are supported:460function attributes. The following attributes are supported:
459 @itemize461 @itemize
460 462
461 @item @code{aligned(n)}: align a variable or a structure field to n bytes463 @item @code{aligned(n)}: align a variable or a structure field to n bytes
462(must be a power of two).464(must be a power of two).
463 465
464 @item @code{packed}: force alignment of a variable or a structure field to466 @item @code{packed}: force alignment of a variable or a structure field to
465 1.467 1.
466 468
@@ -478,6 +480,8 @@ section. · 11 unmodified lines
478between 1 and 3. The first @var{n} function parameters are respectively put in480between 1 and 3. The first @var{n} function parameters are respectively put in
479registers @code{%eax}, @code{%edx} and @code{%ecx}.481registers @code{%eax}, @code{%edx} and @code{%ecx}.
480 482
483 @item @code{dllexport}: export function from dll/executable (win32 only)
484
481 @end itemize485 @end itemize
482 486
483Here are some examples:487Here are some examples:
@@ -733,10 +737,13 @@ TCC for Windows supports the native Win32 executable file format (PE-i386). It · 249 unmodified lines
733generates both EXE and DLL files. DLL symbols can be imported thru DEF files737generates both EXE and DLL files. DLL symbols can be imported thru DEF files
734generated with the @code{tiny_impdef} tool.738generated with the @code{tiny_impdef} tool.
735 739
736Currently TCC for Windows cannot generate nor read PE object files, so ELF740On the object file level, currently TCC supports only the ELF format, not COFF
737object files are used for that purpose. It can be a problem if741as used by MINGW and MSVC. It is not possible to exchange object files or
738interoperability with MSVC is needed. Moreover, no leading underscore is742libraries between TCC and these compilers. However libraries for TCC from objects
739currently generated in the ELF symbols.743by TCC can be made using the @code{tiny_libmaker} tool or MINGW's @code{ar}.
744
745No leading underscore is generated in the ELF symbols. Only functions (no
746data) can be exported. Bounds checking (@option{-b}) is not supported currently.
740 747
741@section GNU Linker Scripts748@section GNU Linker Scripts
742@cindex scripts, linker749@cindex scripts, linker
tcc.c+2−0
@@ -1035,6 +1035,7 @@ static char *pstrcat(char *buf, int buf_size, const char *s) · 1034 unmodified lines
1035 return buf;1035 return buf;
1036}1036}
1037 1037
1038#ifndef LIBTCC
1038static int strstart(const char *str, const char *val, const char **ptr)1039static int strstart(const char *str, const char *val, const char **ptr)
1039{1040{
1040 const char *p, *q;1041 const char *p, *q;
@@ -1050,6 +1051,7 @@ static int strstart(const char *str, const char *val, const char **ptr) · 9 unmodified lines
1050 *ptr = p;1051 *ptr = p;
1051 return 1;1052 return 1;
1052}1053}
1054#endif
1053 1055
1054/* extract the basename of a file */1056/* extract the basename of a file */
1055static char *tcc_basename(const char *name)1057static char *tcc_basename(const char *name)
tcctest.c+1−1
@@ -223,7 +223,7 @@ void macro_test(void) · 222 unmodified lines
223#line 203 "test" 223#line 203 "test"
224 printf("__LINE__=%d __FILE__=%s\n",224 printf("__LINE__=%d __FILE__=%s\n",
225 __LINE__, __FILE__);225 __LINE__, __FILE__);
226#line 220 "tcctest.c"226#line 227 "tcctest.c"
227 227
228 /* not strictly preprocessor, but we test it there */228 /* not strictly preprocessor, but we test it there */
229#ifdef C99_MACROS229#ifdef C99_MACROS

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t