gcc編繹器命令樣本

來源:互聯網
上載者:User
GCC stands for "GNU Compiler Collection", support C,C++,Objective-C,Objective-C++,Java,Fortran, and Ada.Languages Standards Supported by GCC1.C language: a.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 should 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 -fno-builtin-function-fhosted -ffreestanding -fopenmp -fms-extensions-trigraphs -no-integrated-cpp -traditional -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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.