GCC(1) GNU GCC(1)
NAME
gcc - GNU project C and C++ compiler
SYNOPSIS
gcc [-c|-S|-E] [-std=standard]
[-g] [-pg] [-Olevel]
[-Wwarn...] [-pedantic]
[-Idir...] [-Ldir...]
[-Dmacro[=defn]...] [-Umacro]
[-foption...] [-mmachine-option...]
[-o outfile] [@file] infile...
Only the most useful options are listed here; see below for the
remainder. g++ accepts mostly the same options as gcc.
DESCRIPTION
When you invoke GCC, it normally does preprocessing, compilation,
assembly and linking. The "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 output by
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 says so explicitly. If the description
for a particular option does not mention a source language, you can use
that option with all supported languages.
The gcc program accepts options and file names as operands. Many
options have multi-letter names; therefore multiple single-letter
options may not be grouped: -dv is very different from -d -v.
You can mix options and other arguments. For the most part, the order
you use doesn't matter. 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 and negative forms; the negative form of -ffoo would be
-fno-foo. This manual documents only one of these two forms, whichever
one is not the default.
OPTIONS
Option Summary
Here is a summary of all the options, grouped by type. Explanations
are in the following sections.
Overall Options
-c -S -E -o file -no-canonical-prefixes -pipe -pass-exit-codes
-x language -v -### --help[=class[,...]] --target-help
--version -wrapper @file -fplugin=file -fplugin-arg-name=arg
-fdump-ada-spec[-slim] -fdump-go-spec=file
C Language Options
-ansi -std=standard -fgnu89-inline -aux-info filename
-fallow-parameterless-variadic-functions -fno-asm -fno-builtin
-fno-builtin-function -fhosted -ffreestanding -fopenmp
-fms-extensions -fplan9-extensions -trigraphs -no-integrated-cpp
-traditional -traditional-cpp -fallow-single-precision
-fcond-mismatch -flax-vector-conversions -fsigned-bitfields
-fsigned-char -funsigned-bitfields -funsigned-char
C++ Language Options
-fabi-version=n -fno-access-control -fcheck-new -fconserve-space
-fconstexpr-depth=n -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 -fnothrow-opt
-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 -Wdelete-non-virtual-dtor
-Wnarrowing -Wnoexcept -Wnon-virtual-dtor -Wreorder -Weffc++
-Wstrict-null-sentinel -Wno-non-template-friend -Wold-style-cast
-Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo
Objective-C and Objective-C++ Language Options
-fconstant-string-class=class-name -fgnu-runtime -fnext-runtime
-fno-nil-receivers -fobjc-abi-version=n -fobjc-call-cxx-cdtors
-fobjc-direct-dispatch -fobjc-exceptions -fobjc-gc -fobjc-nilcheck
-fobjc-std=objc1 -freplace-objc-classes -fzero-link -gen-decls
-Wassign-intercept -Wno-protocol -Wselector
-Wstrict-selector-match -Wundeclared-selector
Language Independent Options
-fmessage-length=n -fdiagnostics-show-location=[once|every-line]
-fno-diagnostics-show-option
Warning Options
-fsyntax-only -fmax-errors=n -pedantic -pedantic-errors -w
-Wextra -Wall -Waddress -Waggregate-return -Warray-bounds
-Wno-attributes -Wno-builtin-macro-redefined -Wc++-compat
-Wc++11-compat -Wcast-align -Wcast-qual -Wchar-subscripts
-Wclobbered -Wcomment -Wconversion -Wcoverage-mismatch -Wno-cpp
-Wno-deprecated -Wno-deprecated-declarations
-Wdisabled-optimization -Wno-div-by-zero -Wdouble-promotion
-Wempty-body -Wenum-compare -Wno-endif-labels -Werror -Werror=*
-Wfatal-errors -Wfloat-equal -Wformat -Wformat=2
-Wno-format-contains-nul -Wno-format-extra-args -Wformat-nonliteral
-Wformat-security -Wformat-y2k -Wframe-larger-than=len
-Wno-free-nonheap-object -Wjump-misses-init -Wignored-qualifiers
-Wimplicit -Wimplicit-function-declaration -Wimplicit-int
-Winit-self -Winline -Wmaybe-uninitialized
-Wno-int-to-pointer-cast -Wno-invalid-offsetof -Winvalid-pch
-Wlarger-than=len -Wunsafe-loop-optimizations -Wlogical-op
-Wlong-long -Wmain -Wmaybe-uninitialized -Wmissing-braces
-Wmissing-field-initializers -Wmissing-format-attribute
-Wmissing-include-dirs -Wno-mudflap -Wno-multichar -Wnonnull
-Wno-overflow -Woverlength-strings -Wpacked
-Wpacked-bitfield-compat -Wpadded -Wparentheses
-Wpedantic-ms-format -Wno-pedantic-ms-format -Wpointer-arith
-Wno-pointer-to-int-cast -Wredundant-decls -Wreturn-type
-Wsequence-point -Wshadow -Wsign-compare -Wsign-conversion
-Wstack-protector -Wstack-usage=len -Wstrict-aliasing
-Wstrict-aliasing=n -Wstrict-overflow -Wstrict-overflow=n
-Wsuggest-attribute=[pure|const|noreturn] -Wswitch
-Wswitch-default -Wswitch-enum -Wsync-nand -Wsystem-headers
-Wtrampolines -Wtrigraphs -Wtype-limits -Wundef -Wuninitialized
-Wunknown-pragmas -Wno-pragmas -Wunsuffixed-float-constants
-Wunused -Wunused-function -Wunused-label -Wunused-local-typedefs
-Wunused-parameter -Wno-unused-result -Wunused-value
-Wunused-variable -Wunused-but-set-parameter
-Wunused-but-set-variable -Wvariadic-macros
-Wvector-operation-performance -Wvla -Wvolatile-register-var
-Wwrite-strings -Wzero-as-null-pointer-constant
C and Objective-C-only Warning Options
-Wbad-function-cast -Wmissing-declarations
-Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs
-Wold-style-declaration -Wold-style-definition -Wstrict-prototypes
-Wtraditional -Wtraditional-conversion
-Wdeclaration-after-statement -Wpointer-sign
Debugging Options
-dletters -dumpspecs -dumpmachine -dumpversion -fdbg-cnt-list
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
详细: http://home.eeworld.com.cn/home.php?mod=space&uid=148817&do=blog&quickforward=1&id=240051 ARM用IO模拟SPI总线烧FPGA配置芯片EPCS4完成软件升级,在TQ2440上测试 步骤: 1、 一块已经用下载器烧录FPGA程序的EPCS4与ARM连接,ARM读出EPCS4“所有扇区”数据保存到NandFlash中,然后拷贝到电脑备份。 2、 另一块待烧录的FPGA与ARM连接,将刚读出的数据烧写进去。
资源推荐
资源详情
资源评论
收起资源包目录
EPCSxx.rar (51个子文件)
EPCSxx
boot.lds 434B
config_app_file.mk 23B
LibMake.mk 3KB
config_lib_file_list.mk 180B
include
1demo.h 247B
2440lib.h 2KB
2440addr.h 41KB
nandflash.h 2KB
option.h 2KB
Nand.h 3KB
EPCSxx.h 1KB
demo.h 270B
arm920t.h 30KB
board_config.h 2KB
Nand_S34ML02G1.h 2KB
BitOpt.h 4KB
def.h 2KB
st3.sublime-project 73B
src
libgeneric.a 66KB
flash.c 395B
_udivsi3.S 2KB
libdemo.so 8KB
1EPCSxx.c 2KB
main.c 10KB
EPCS4.c 9KB
Nand_S34ML02G1.c 4KB
board.c 2KB
start.S 5KB
ubootlibc.c 8KB
copyboot.c 3KB
libarm.a 43KB
init.c 4B
div0.c 1KB
aaa.c 8B
nand.c 4KB
_modsi3.S 2KB
wmllibc.c 9KB
2440lib.c 29KB
mainboot.c 13KB
config_app_file_list.mk 759B
gcc.txt 788KB
lib
lib_unname.a 5KB
libgeneric.a 66KB
libdiv.a 5KB
lib_unname.so 9KB
Makefile 4KB
st3.sublime-workspace 30KB
part.lds 484B
release
文件说明.txt 113B
sram.bin 344B
download.bin 15KB
共 51 条
- 1
资源评论
- yangtzell2015-11-30资料不错,就是分太高了。
- taxue0092015-03-21代码很全,需要好好消化,谢谢
程序员写个解FingerNCat
- 粉丝: 20
- 资源: 67
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功