|Access||Adobe photoshop||Algoritmi||Autocad||Baze de date||C||C sharp|
|Calculatoare||Corel draw||Dot net||Excel||Fox pro||Frontpage||Hardware|
|Php||Power point||Retele calculatoare||Sql||Tutorials||Webdesign||Windows|
|Asp||Autocad||C||Dot net||Excel||Fox pro||Html||Java|
gcc [options] files
Compile one or more C source files (file.c), assembler source files (file.s), or preprocessed C source files (file.i). If the file suffix is not recognizable, assume that the file is an object file or library. gcc automatically invokes the link editor ld (unless -c, -S, or -E is supplied). In some cases, gcc generates an object file having a .o suffix and a corresponding root name. By default, output is placed in a.out. gcc accepts many system-specific options not covered here.
Note: gcc is the GNU form of cc; on most Linux systems, the command cc will invoke gcc. The command g++ will invoke gcc with the appropriate options for interpreting C++.
Provide profile information for basic blocks.
Enforce full ANSI conformance.
Compile for use on machine type.
Create linkable object file for each source file, but do not call linker.
Suppress normal output. Print series of #defines that are in effect at the end of preprocessing.
Print #defines with macro names only, not arguments or values.
Do not recognize asm, inline, or typeof as keywords. Implied by -ansi.
Do not recognize built-in functions unless they begin with two underscores.
Do not recognize classof, headof, signature, sigof, or typeof as keywords.
Do not respond to #ident commands.
Set default control of bitfields to signed or unsigned if not explicitly declared.
Cause the type char to be signed.
Check for syntax errors. Do not attempt to actually compile.
Cause the type char to be unsigned.
Include debugging information for use with gdb.
Provide level amount of debugging information. level must be 1, 2, or 3, with 1 providing the least amount of information. The default is 2.
Include dir in the list of directories to search when an include file is not found in the normal include path.
Process file before proceeding to the normal input file.
Process the macros in file before proceeding to the normal input file.
When adding directories with -iwithprefix, prepend prefix to the directory's name.
Add dir to the list of directories to be searched when a system file cannot be found in the main include path.
Append dir to the list of directories to be searched when a header file cannot be found in the main include path. If -iprefix has been set, prepend that prefix to the directory's name.
Link to lib.
Force linker to ignore standard system startup files.
Search only specified, not standard, directories for header files.
Suppress searching of directories believed to contain C++-specific header files.
Suppress linking to standard library files.
Specify output file as file. Default is a.out.
Provide profile information for use with prof.
Err in every case in which -pedantic would have produced a warning.
Provide profile information for use with gprof.
Transfer information between stages of compiler by pipes instead of temporary files.
Remove all symbol table and relocation information from the executable.
Save temporary files in the current directory when compiling.
Suppress linking to shared libraries.
Attempt to behave like a traditional C compiler.
Cause the preprocessor to attempt to behave like a traditional C preprocessor.
Include trigraph support.
Force the linker to search libraries for a definition of symbol and to link to them, if found.
Define only those constants required by the language standard, not system-specific constants like unix.
Verbose mode. Display commands as they are executed, gcc version number, and preprocessor version number.
Expect input file to be written in language, which may be c, objective-c, c-header, c++, cpp-output, assembler, or assembler-with-cpp. If none is specified as language, guess the language by filename extension.
If the preprocessor encounters a conditional such as #if question, assert answer in response. To turn off standard assertions, use -A-.
Specify the path directory in which the compiler files are located.
Retain comments during preprocessing. Meaningful only with -E.
Define name with value def as if by a #define. If no =def is given, name is defined with value 1. -D has lower precedence than -U.
Preprocess the source files, but do not compile. Print result to standard output.
Include dir in list of directories to search for include files. If dir is -, search those directories that were specified by -I before the -I- only when #include 'file' is specified, not #include <file>.
Search dir in addition to standard directories.
Instead of compiling, print a rule suitable for inclusion in a makefile that describes dependencies of the source file based on its #include directives. Implies -E.
Similar to -M, but sends dependency information to files ending in .d in addition to ordinary compilation.
Used with -M or -MM. Suppress error messages if an included file does not exist; useful if the included file is automatically generated by a build.
Similar to -MD, but record only user header file information, not system header file information.
Similar to -M, but limit the rule to non-standard #include files; that is, only files declared through #include 'file' and not those declared through #include <file>.
Print pathnames of included files, one per line, on standard error.
Optimize. level should be 1, 2, 3, or 0. The default is 1. 0 turns off optimization; 3 optimizes the most.
Preprocess input without producing line-control information used by next pass of C compiler. Meaningful only with -E.
Compile source files into assembler code, but do not assemble.
Remove any initial definition of name, where name is a reserved symbol predefined by the preprocessor or a name defined on a -D option. Names predefined by cpp are unix and i386.
Attempt to run gcc version version.
Warn more verbosely than normal.
Invoke linker with option, which may be a comma-separated list.
Call assembler with option, which may be a comma-separated list.
Warn if any functions return structures or unions are defined or called.
Enable -W, -Wchar-subscripts, -Wcomment, -Wformat, -Wimplicit, -Wparentheses, -Wreturn-type, -Wswitch, -Wtemplate-debugging, -Wtrigraphs, -Wuninitialized, and -Wunused.
Warn when encountering instances in which pointers are cast to types that increase the required alignment of the target from its original definition.
Warn when encountering instances in which pointers are cast to types that lack the type qualifier with which the pointer was originally defined.
Warn when encountering arrays with subscripts of type char.
Warn when encountering the beginning of a nested comment.
Warn in particular cases of type conversions.
Exit at the first error.
Warn about inappropriately formatted printfs and scanfs.
Warn when encountering implicit function or parameter declarations.
Warn about illegal inline functions.
Warn if a global function is defined without a previous declaration.
Warn when encountering global function definitions without previous prototype declarations.
Warn if an extern declaration is encountered within a function.
Don't warn about use of #import.
Pass options to the preprocessor. Multiple options are separated by commas. Not a warning parameter.
Enable more verbose warnings about omitted parentheses.
Warn when encountering code that attempts to determine the size of a function or void.
Warn if anything is declared more than once in the same scope.
Warn about functions defined without return types or with improper return types.
Warn when a local variable shadows another local variable.
Insist that argument types be specified in function declarations and definitions.
Warn about switches that skip the index for one of their enumerated types.
Warn if debugging is not available for C++ templates.
Warn when encountering code that produces different results in ANSI C and traditional C.
Warn when encountering trigraphs.
Warn when encountering uninitialized automatic variables.
Warn about unused variables and functions.
Pass an option to the linker. A linker option with an argument requires two -Xs, the first specifying the option and the second specifying the argument.
#pragma interface [header-file]
Used in header files to force object files to provide definition information via references, instead of including it locally in each file. C++-specific.
#pragma implementation [header-file]
Used in main input files to force generation of full output from header-file (or, if it is not specified, from the header file with the same base name as the file containing the pragma directive). This information will be globally visible. Normally the specified header file contains a #pragma interface directive.
Politica de confidentialitate|
Adauga cod HTML in site