GCC compiler command example

Source: Internet
Author: User
GCC stands for "GNU Compiler Collection", support C, C ++, objective-C, objective-C ++, Java, Fortran, and Ada. supported ages standards supported by gcc1.c language:. c89 (or Ocasionally as C90), to select this standard in GCC, use one of the options '-ANSI', '-STD = c90', or'-STD = iso9899: 1990 ', to obtian all the diagnostic required by the standard, you shoshould also specify'-pedantic ', if you want them to be errors rather than warnings. b. c99: '-STD = c99' 2. GCC supports the Iso c ++ standard (1998) and contains experimental support for the upcoming Iso c ++ standard (200x ). option summaryhere is a summary of all the options, grouped by type. explanations are in the followingsections. overall optionssee section 3.2 [Options controlling the kind of output], page 22. -C-s-e-o file-combine-no-canonical-prefixes-pipe-pass-exit-codes-x language-v-### -- Help [= Class [,...] -- target-help -- version-wrapper @ file-fplugin = file-fplugin-Arg-name = argc language optionssee section 3.4 [Options controlling C dialect], page 28. -ANSI-STD = standard-fgnu89-inline-aux-info filename-fno-ASM-fno-builtin-function-fhosted-ffreestanding-fopenmp-FMS-extensions-trigraphs-no-integrated- CPP-traditional-CPP-fallow-single-precision-fcond-mismatch-flax-vector-conversions-fsigned-bitfields-fsigned-Char-funsigned-bitfields-funsigned-charc + + language optionssee section 3.5 [Options controlling C ++ dialect], page 33. -fabi-version = N-fno-access-control-fcheck-New-fconserve-space-ffriend-injection-fno-Elide-constructors-fno-enforce-eh-specs-Ffor -Scope-fno-for-scope-fno-GNU-keywords-fno-implicit-templates-fno-implicit-inline-templates-fno-implement-inlines-FMS-extensions-fno -nonansi-builtins-fno-operator-names-fno-optional-diags-fpermissive-fno-pretty-templates-frepo-fno-rtti-fstats-ftemplate-depth = N-fno -threadsafe-statics-fuse-cxa-atexit-fno-weak-nostdinc ++-fno-default-inline-fvisibility-inlines-hidden-fvisibility-MS-compat-wabi-wconversion -Null-wctor-dtor-privacy-wnon-Virtual-dtor-wreorder-weffc ++-wstrict-Null-Sentinel-wno-non-template-friend-Wold-style-cast -woverloaded-Virtual-wno-PMF-conversions-wsign-promocompilation can involve up to four stages: preprocessing, compilation proper, assembly and linking, always in that order. example: G ++ hello. CPP-O hello2.exegcc hello. c-O hello

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.