Changeset 331 for EcnlProtoTool/trunk/tcc-0.9.27/tcc-doc.texi
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- Location:
- EcnlProtoTool/trunk/tcc-0.9.27
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/tcc-0.9.27/tcc-doc.texi
r279 r331 177 177 @end example 178 178 179 @item -dumpversion180 Print only the compiler version and nothing else.181 182 179 @item -v 183 180 Display TCC version. 184 181 185 182 @item -vv 186 Show included files. As sole argument, print search dirs (as below).183 Show included files. As sole argument, print search dirs. -vvv shows tries too. 187 184 188 185 @item -bench 189 186 Display compilation statistics. 190 191 @item -print-search-dirs192 Print the configured installation directory and a list of library193 and include directories tcc will search.194 187 195 188 @end table … … 214 207 @item -Usym 215 208 Undefine preprocessor symbol @samp{sym}. 209 210 @item -E 211 Preprocess only, to stdout or file (with -o). 212 216 213 @end table 217 214 218 215 Compilation flags: 219 216 220 Note: each of the following warningoptions has a negative form beginning with217 Note: each of the following options has a negative form beginning with 221 218 @option{-fno-}. 222 219 … … 233 230 @item -fleading-underscore 234 231 Add a leading underscore at the beginning of each C symbol. 232 233 @item -fms-extensions 234 Allow a MS C compiler extensions to the language. Currently this 235 assumes a nested named structure declaration without an identifier 236 behaves like an unnamed one. 237 238 @item -fdollars-in-identifiers 239 Allow dollar signs in identifiers 235 240 236 241 @end table … … 277 282 Link your program with dynamic library libxxx.so or static library 278 283 libxxx.a. The library is searched in the paths specified by the 279 @option{-L} option .284 @option{-L} option and @env{LIBRARY_PATH} variable. 280 285 281 286 @item -Bdir … … 301 306 302 307 @item -Wl,-rpath=path 303 Put custom seatch path for dynamic libraries into executable. 308 Put custom search path for dynamic libraries into executable. 309 310 @item -Wl,--enable-new-dtags 311 When putting a custom search path for dynamic libraries into the executable, 312 create the new ELF dynamic tag DT_RUNPATH instead of the old legacy DT_RPATH. 304 313 305 314 @item -Wl,--oformat=fmt … … 323 332 Set DT_SYMBOLIC tag. 324 333 334 @item -Wl,-(no-)whole-archive 335 Turn on/off linking of all objects in archives. 336 325 337 @end table 326 338 … … 339 351 that the generated code is slower and bigger in this case. 340 352 341 Note: @option{-b} is only available on i386 for the moment.353 Note: @option{-b} is only available on i386 when using libtcc for the moment. 342 354 343 355 @item -bt N … … 356 368 Use @file{depfile} as output for -MD. 357 369 370 @item -print-search-dirs 371 Print the configured installation directory and a list of library 372 and include directories tcc will search. 373 374 @item -dumpversion 375 Print version. 376 377 @end table 378 379 Target specific options: 380 381 @table @option 382 @item -mms-bitfields 383 Use an algorithm for bitfield alignment consistent with MSVC. Default is 384 gcc's algorithm. 385 386 @item -mfloat-abi (ARM only) 387 Select the float ABI. Possible values: @code{softfp} and @code{hard} 388 389 @item -mno-sse 390 Do not use sse registers on x86_64 391 392 @item -m32, -m64 393 Pass command line to the i386/x86_64 cross compiler. 394 358 395 @end table 359 396 … … 362 399 @c man end 363 400 401 @c man begin ENVIRONMENT 402 Environment variables that affect how tcc operates. 403 404 @table @option 405 406 @item CPATH 407 @item C_INCLUDE_PATH 408 A colon-separated list of directories searched for include files, 409 directories given with @option{-I} are searched first. 410 411 @item LIBRARY_PATH 412 A colon-separated list of directories searched for libraries for the 413 @option{-l} option, directories given with @option{-L} are searched first. 414 415 @end table 416 417 @c man end 418 364 419 @ignore 365 420 … … 368 423 369 424 @c man begin SEEALSO 425 cpp(1), 370 426 gcc(1) 371 427 @c man end … … 389 445 390 446 TCC implements many features of the new C standard: ISO C99. Currently 391 missing items are: complex and imaginary numbers and variable length 392 arrays. 447 missing items are: complex and imaginary numbers. 393 448 394 449 Currently implemented ISOC99 features: 395 450 396 451 @itemize 452 453 @item variable length arrays. 397 454 398 455 @item 64 bit @code{long long} types are fully supported. … … 597 654 @itemize 598 655 599 @item @code{__TINYC__} is a predefined macro to @code{1} to 600 indicate that you use TCC. 656 @item @code{__TINYC__} is a predefined macro to indicate that you use TCC. 601 657 602 658 @item @code{#!} at the start of a line is ignored to allow scripting. … … 614 670 Since version 0.9.16, TinyCC integrates its own assembler. TinyCC 615 671 assembler supports a gas-like syntax (GNU assembler). You can 616 de sactivate assembler support if you want a smaller TinyCC executable672 deactivate assembler support if you want a smaller TinyCC executable 617 673 (the C compiler does not rely on the assembler). 618 674 … … 703 759 @cindex ascii directive 704 760 705 All directives are prece eded by a '.'. The following directives are761 All directives are preceded by a '.'. The following directives are 706 762 supported: 707 763 … … 922 978 @section Types 923 979 924 The types are stored in a single 'int' variable. It was cho osen in the980 The types are stored in a single 'int' variable. It was chosen in the 925 981 first stages of development when tcc was much simpler. Now, it may not 926 982 be the best solution. … … 949 1005 #define VT_CONSTANT 0x0800 /* const modifier */ 950 1006 #define VT_VOLATILE 0x1000 /* volatile modifier */ 951 #define VT_ SIGNED0x2000 /* signed type */1007 #define VT_DEFSIGN 0x2000 /* signed type */ 952 1008 953 1009 #define VT_STRUCT_SHIFT 18 /* structure/enum name shift (14 bits left) */ … … 991 1047 992 1048 @code{Sym.v} contains the symbol name (remember 993 an iden fier is also a token, so a string is never necessary to store1049 an identifier is also a token, so a string is never necessary to store 994 1050 it). @code{Sym.t} gives the type of the symbol. @code{Sym.r} is usually 995 1051 the register in which the corresponding variable is stored. @code{Sym.c} is … … 1034 1090 @section Sections 1035 1091 1036 The generated code and data sare written in sections. The structure1092 The generated code and data are written in sections. The structure 1037 1093 @code{Section} contains all the necessary information for a given 1038 1094 section. @code{new_section()} creates a new section. ELF file semantics … … 1059 1115 @item stab_section 1060 1116 @itemx stabstr_section 1061 are used when debugging is active dto store debug information1117 are used when debugging is active to store debug information 1062 1118 1063 1119 @item symtab_section … … 1159 1215 1160 1216 @item VT_LLOCAL 1161 is a saved lvalue on the stack. @code{VT_LLOCAL} should be eliminated 1162 ASAP because its semantics are rather complicated. 1217 is a saved lvalue on the stack. @code{VT_LVAL} must also be set with 1218 @code{VT_LLOCAL}. @code{VT_LLOCAL} can arise when a @code{VT_LVAL} in 1219 a register has to be saved to the stack, or it can come from an 1220 architecture-specific calling convention. 1163 1221 1164 1222 @item VT_MUSTCAST … … 1219 1277 @item gen_opi(op) 1220 1278 must generate the binary integer operation @var{op} on the two top 1221 entries of the stack which are guarante d to contain integer types.1279 entries of the stack which are guaranteed to contain integer types. 1222 1280 1223 1281 The result value should be put on the stack. … … 1225 1283 @item gen_opf(op) 1226 1284 same as @code{gen_opi()} for floating point operations. The two top 1227 entries of the stack are guarante d to contain floating point values of1285 entries of the stack are guaranteed to contain floating point values of 1228 1286 same types. 1229 1287
Note:
See TracChangeset
for help on using the changeset viewer.