×

GCC编译器使用手册(Using the GNU Compiler Collection for gcc ver)

消耗积分:0 | 格式:rar | 大小:3.09 MB | 2017-10-27

分享资料个

  When you invoke GCC, it normally does preprocessing, compilation, assembly and linkingThe “overall options” allow you to stop this process at an intermediate stage. For example,the ‘-c’ option says not to run the linker. Then the output consists of object files outputby the assembler.Other options are passed on to one stage of processing. Some options control the preprocessor and others the compiler itself. Yet other options control the assembler and linker;most of these are not documented here, since you rarely need to use any of them.Most of the command-line options that you can use with GCC are useful for C programs;when an option is only useful with another language (usually C++), the explanation saysso explicitly. If the description for a particular option does not mention a source language,you can use that option with all supported languages.See Section 3.3 [Compiling C++ Programs], page 29, for a summary of special options forcompiling C++ programs.The gcc program accepts options and file names as operands. Many options have multiletter names; therefore multiple single-letter options may not be grouped: ‘-dv’ is verydifferent from ‘-d -v’.You can mix options and other arguments. For the most part, the order you use doesn’tmatter. Order does matter when you use several options of the same kind; for example, if

  you specify ‘-L’ more than once, the directories are searched in the order specified. Also,the placement of the ‘-l’ option is significant.Many options have long names starting with ‘-f’ or with ‘-W’—for example,‘-fmove-loop-invariants’, ‘-Wformat’ and so on. Most of these have both positive andnegative forms; the negative form of ‘-ffoo’ is ‘-fno-foo’。 This manual documents onlyone of these two forms, whichever one is not the default.See [Option Index], page 747, for an index to GCC’s option

Using the GNU Compiler Collection for gcc ver

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !