返回介绍

A.1 Common Options

发布于 2023-07-03 22:07:03 字数 5118 浏览 0 评论 0 收藏 0

-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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文