- 1 Getting started
- 2 Compile
- 3 Customize
- 4 Optimize
- 5 Debug
- 6 Non-standard extensions
- 7 System Routines
- 附录 A
- 附录 B
- 附录 E
- 附录 I
A.1 Common Options
- -h, --help
display this help and exit
- -V, --version
display compiler version information and exit
- -dumpversion
display compiler version and exit
- -i, --info
display compiler information (build/environment) and exit
- -v, --verbose
verbose mode, display additional information; multiple -v options increase the verbosity, the maximum is 3 as follows: (1) display compiler version and the commands invoked by the compiler, (2) pass verbose option to assembler/compiler (3) pass verbose option to linker
- -q, --brief
reduced displays, commands invoked not shown
- -###
like -v but commands not executed
- -x
build an executable program
- -m
build a dynamically loadable module (default)
- -j [args], --job[=args]
run program after build, passing args
- -std=dialect
warnings/features for a specific dialect dialect can be one of: default, cobol2014, cobol2002, cobol85, xopen, ibm-strict, ibm, mvs-strict, mvs, mf-strict, mf, bs2000-strict, bs2000, acu-strict, acu, rm-strict, rm, gcos-strict, gcos; see configuration files in directory config
- -F, --free
use free source format (alias for -fformat=free)
- --fixed
use fixed source format (default; alias for
- -fformat=fixed)
- -O, -O2, -O3, -Os
enable optimization
- -O0
disable optimization
- -g
enable C compiler debug and stack check
- -d, --debug
enable all run-time error checking, equal to -fstack-check -fec=
EC
-ALL
- -fec=exception-name
enable code generation for exception-name, see –list-exceptions for the possible values, sets -fsource-location
- -fno-ec=exception-name
disable code generation for exception-name
- -o file
place the output into file
- -b
combine all input files into a single dynamically loadable module
- -E
preprocess only; do not compile or link
- -C
translation only; convert COBOL to C
- -S
compile only; output assembly file
- -c
compile and assemble, but do not link
- -T file
generate and place a wide program listing into file
- -t file
generate and place a program listing into file
- --tlines=lines
specify lines per page in listing, default = 55
- -P[=dir or file]
generate preprocessed program listing (.lst)
- -X, --Xref
generate cross reference through ’cobxref’ (V. Coen’s ’cobxref’ must be in path)
- -I directory
add directory to copy/include search path
- -L directory
add directory to library search path
- -l lib
link the library lib
- -A options
add options to the C compile phase
- -Q options
add options to the C link phase
- -D define
define define for COBOL compilation
- -K entry
generate
CALL
to entry as static- --conf=file
user-defined dialect configuration; see -std
- --list-reserved
display reserved words
- --list-intrinsics
display intrinsic functions
- --list-mnemonics
display mnemonic names
- --list-exceptions
display exception names
- --list-system
display system routines
- --save-temps[=dir]
save intermediate files; default: current directory
- -ext extension
add file extension for resolving
COPY
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论