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 @@
11 version 0.9.24:
22
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)
37 - Just warn about unknown directives, ignore quotes in #error/#warning
48 - Define __STDC_VERSION__=199901L (477)
5−
69 - Switch to newer tccpe.c (includes support for resources)
710 - Handle backslashes within #include/#error/#warning
811 - 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
6666 @if diff -u test.ref test.out ; then echo "Auto Test OK"; fi
6767
6868 tcctest.ref: tcctest.c
69− $(CC) $(CFLAGS) -I. -o $@ $<
69+ $(CC) $(CFLAGS) -w -I. -o $@ $<
7070
7171 test.ref: tcctest.ref
7272 ./tcctest.ref > $@
tcc-doc.texi+19−12
@@ -414,13 +414,6 @@ is the same as writing · 413 unmodified lines
414414 @end itemize
415415
416416 @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
424417
425418 TCC implements some GNU C extensions:
426419
@@ -454,13 +447,22 @@ instead of · 27 unmodified lines
454447 @}
455448 @end example
456449
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+
457459 @item The keyword @code{__attribute__} is handled to specify variable or
458460 function attributes. The following attributes are supported:
459461 @itemize
460462
461463 @item @code{aligned(n)}: align a variable or a structure field to n bytes
462464 (must be a power of two).
463−
465+
464466 @item @code{packed}: force alignment of a variable or a structure field to
465467 1.
466468
@@ -478,6 +480,8 @@ section. · 11 unmodified lines
478480 between 1 and 3. The first @var{n} function parameters are respectively put in
479481 registers @code{%eax}, @code{%edx} and @code{%ecx}.
480482
483+ @item @code{dllexport}: export function from dll/executable (win32 only)
484+
481485 @end itemize
482486
483487 Here are some examples:
@@ -733,10 +737,13 @@ TCC for Windows supports the native Win32 executable file format (PE-i386). It · 249 unmodified lines
733737 generates both EXE and DLL files. DLL symbols can be imported thru DEF files
734738 generated with the @code{tiny_impdef} tool.
735739
736−Currently TCC for Windows cannot generate nor read PE object files, so ELF
737−object files are used for that purpose. It can be a problem if
738−interoperability with MSVC is needed. Moreover, no leading underscore is
739−currently generated in the ELF symbols.
740+On the object file level, currently TCC supports only the ELF format, not COFF
741+as used by MINGW and MSVC. It is not possible to exchange object files or
742+libraries between TCC and these compilers. However libraries for TCC from objects
743+by TCC can be made using the @code{tiny_libmaker} tool or MINGW's @code{ar}.
744+
745+No leading underscore is generated in the ELF symbols. Only functions (no
746+data) can be exported. Bounds checking (@option{-b}) is not supported currently.
740747
741748 @section GNU Linker Scripts
742749 @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
10351035 return buf;
10361036 }
10371037
1038+#ifndef LIBTCC
10381039 static int strstart(const char *str, const char *val, const char **ptr)
10391040 {
10401041 const char *p, *q;
@@ -1050,6 +1051,7 @@ static int strstart(const char *str, const char *val, const char **ptr) · 9 unmodified lines
10501051 *ptr = p;
10511052 return 1;
10521053 }
1054+#endif
10531055
10541056 /* extract the basename of a file */
10551057 static char *tcc_basename(const char *name)
tcctest.c+1−1
@@ -223,7 +223,7 @@ void macro_test(void) · 222 unmodified lines
223223 #line 203 "test"
224224 printf("__LINE__=%d __FILE__=%s\n",
225225 __LINE__, __FILE__);
226−#line 220 "tcctest.c"
226+#line 227 "tcctest.c"
227227
228228 /* not strictly preprocessor, but we test it there */
229229 #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