⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 environ.gml

📁 开放源码的编译器open watcom 1.6.0版的源代码
💻 GML
📖 第 1 页 / 共 2 页
字号:
&prompt.&setcmd. &setdelim.&tmpdirvar=&dr4.&pc.tmp&setdelim.
.exam end
.pc
The &product compiler and &lnkname will create its temporary files in
.fi &dr4.&pc.tmp.
.do end
.************************************************************************
.section &pathvarup
.np
.ix 'library path'
In order for the &lnkname to locate the &prod16 and &prod32 library
files, the
.ev &pathvarup
environment variable should be defined.
.if '&target' eq 'QNX' .do begin
When using
.kw &wclcmdup
.ct , it is not necessary to define this environment variable since it
uses another technique for identifying the location of the library
files to the &lnkname..
However, you should do so when you begin to use the &lnkname directly
without the aid of this utility program.
.do end
The
.ev &pathvarup
environment variable is used to locate the libraries that will be used
when the application is linked.
The default directory for &prod16 and &prod32 files is "&pathnamup".
.exam begin
&prompt.&setcmd. &setdelim.&pathvar.=&dr3.&pathnam.&setdelim.
.exam end
.************************************************************************
.if '&lang' eq 'C' or '&lang' eq 'C/C++' .do begin
.if '&target' eq 'QNX' .do begin
.sr envvar='WCC'
.do end
.el .do begin
.sr envvar='wcc'
.do end
.section WCC
.np
The
.ev WCC
environment variable can be used to specify commonly-used options for
the 16-bit C compiler.
.millust begin
&setcmdup. &setdelim.WCC=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified on the command
line.
The following example defines the default options to be "d1" (include
line number debug information in the object file) and "ox" (compile
for maximum number of code optimizations).
.exam begin
&prompt.&setcmd. &setdelim.&envvar.=&sw.d1 &sw.ox&setdelim.
.exam end
.np
Once the
.ev WCC
environment variable has been defined, those options listed become the
default each time the
.if '&target' eq 'QNX' .do begin
.kw wcc
.do end
.el .do begin
.kw WCC
.do end
command is used.
.do end
.************************************************************************
.if '&lang' eq 'C' or '&lang' eq 'C/C++' .do begin
.if '&target' eq 'QNX' .do begin
.sr envvar='WCC386'
.do end
.el .do begin
.sr envvar='wcc386'
.do end
.section WCC386
.np
The
.ev WCC386
environment variable can be used to specify commonly-used options for
the 32-bit C compiler.
.millust begin
&setcmdup. &setdelim.WCC386=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified on the command
line.
The following example defines the default options to be "d1" (include
line number debug information in the object file) and "ox" (compile
for maximum number of code optimizations).
.exam begin
&prompt.&setcmd. &setdelim.&envvar.=&sw.d1 &sw.ox&setdelim.
.exam end
.np
Once the
.ev WCC386
environment variable has been defined, those options listed become the
default each time the
.if '&target' eq 'QNX' .do begin
.kw wcc386
.do end
.el .do begin
.kw WCC386
.do end
command is used.
.do end
.************************************************************************
.if '&target' ne 'QNX' .do begin
.section WCL
.np
The
.ev WCL
environment variable can be used to specify commonly-used &wclcmdup16
options.
.millust begin
&setcmdup. &setdelim.WCL=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified on the
command line.
The following example defines the default options to be "mm" (compile
code for medium memory model), "d1" (include line number debug
information in the object file), and "ox" (compile for maximum
number of code optimizations).
.exam begin
&prompt.&setcmd. &setdelim.wcl=&sw.mm &sw.d1 &sw.ox&setdelim.
.exam end
.np
Once the
.ev WCL
environment variable has been defined, those options listed become the
default each time the &wclcmdup16 command is used.
.do end
.************************************************************************
.if '&target' ne 'QNX' .do begin
.section WCL386
.np
The
.ev WCL386
environment variable can be used to specify commonly-used &wclcmdup32
options.
.millust begin
&setcmdup. &setdelim.WCL386=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified on the
command line.
The following example defines the default options to be "3s" (compile
code for stack-based argument passing convention), "d1" (include line
number debug information in the object file), and "ox" (compile for
maximum number of code optimizations).
.exam begin
&prompt.&setcmd. &setdelim.wcl386=&sw.3s &sw.d1 &sw.ox&setdelim.
.exam end
.np
Once the
.ev WCL386
environment variable has been defined, those options listed become the
default each time the &wclcmdup32 command is used.
.do end
.************************************************************************
.section WCGMEMORY
.np
:INCLUDE file='WCGMEM'.
.************************************************************************
.section &dbgvarup
.np
The
.ev &dbgvarup
environment variable can be used to specify commonly-used &dbgname
options.
.if '&target' ne 'QNX' .do begin
This environment variable is not used by the Windows version of the
debugger, &dbgcmdup.W.
.do end
.millust begin
&setcmdup. &setdelim.&dbgvarup=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified on the
command line.
The following example defines the default options to be "noinvoke"
(do not execute the
.fi profile.dbg
file) and "reg=10" (retain up to 10 register sets while tracing).
.exam begin
.if '&target' eq 'QNX' .do begin
&prompt.&setcmd. &setdelim.&dbgvar=&sw.noinvoke &sw.reg=10&setdelim.
.do end
.el .do begin
&prompt.&setcmd. &setdelim.&dbgvar=&sw.noinvoke &sw.reg#10&setdelim.
.do end
.exam end
.np
Once the
.ev &dbgvarup
environment variable has been defined, those options listed become the
default each time the &dbgcmdup command is used.
.************************************************************************
.if '&target' ne 'QNX' .do begin
.section &dbgvarup.W
.np
The
.ev &dbgvarup.W
environment variable can be used to specify commonly-used &dbgname
options.
This environment variable is used by the Windows version of the
debugger, &dbgcmdup.W.
.millust begin
&setcmdup. &setdelim.&dbgvarup.W=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified in the
&dbgcmdup.W prompt dialogue box.
The following example defines the default options to be "noinvoke"
(do not execute the
.fi profile.dbg
file) and "reg=10" (retain up to 10 register sets while tracing).
.exam begin
&prompt.&setcmd. &setdelim.&dbgvar.w=&sw.noinvoke &sw.reg#10&setdelim.
.exam end
.np
Once the
.ev &dbgvarup.W
environment variable has been defined, those options listed become the
default each time the &dbgcmdup.W command is used.
.do end
.************************************************************************
.if '&target' eq 'QNX' .do begin
.section &dbgvarup._PATH
.np
The
.ev &dbgvarup._PATH
environment variable is used by &dbgcmd to locate &dbgname support
files.
These files fall into five categories.
.ix 'support files' 'dbg'
.ix 'support files' 'trp'
.ix 'support files' 'prs'
.ix 'support files' 'hlp'
.ix 'support files' 'sym'
.autonote
.note
&dbgname command files (files with the ".dbg" suffix).
.note
&dbgname trap files (files with the ".trp" suffix).
.note
&dbgname parser files (files with the ".prs" suffix).
.note
&dbgname help files (files with the ".hlp" suffix).
.note
&dbgname symbolic debugging information files (files with the ".sym"
suffix).
.endnote
.millust begin
&setcmdup. &setdelim.&dbgvarup._PATH=path:path...&setdelim.
.millust end
.np
By default, &dbgname looks in the
.fi /usr/watcom/wd
directory for command files so it is not necessary to include this
directory in the
.ev &dbgvarup._PATH
environment variable string.
.do end
.************************************************************************
.if '&lang' eq 'FORTRAN 77' .do begin
.* WFC
.section &cvarup16
.np
The
.ev &cvarup16
environment variable can be used to specify commonly-used &cmpname
options.
.millust begin
&setcmdup. &setdelim.&cvarup16=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified on the
command line.
The following example defines the default options to be "d1" (include
line number debug information in the object file) and "om" (compile
with math optimizations).
.exam begin
&prompt.&setcmd. &setdelim.&cvar16=&sw.d1 &sw.om&setdelim.
.exam end
.np
Once the
.ev &cvarup16
environment variable has been defined, those options listed become the
default each time the &ccmdup16 command is used.
.do end
.************************************************************************
.if '&lang' eq 'FORTRAN 77' .do begin
.* WFC386
.section &cvarup32
.np
The
.ev &cvarup32
environment variable can be used to specify commonly-used &cmpname
options.
.millust begin
&setcmdup. &setdelim.&cvarup32=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified on the
command line.
The following example defines the default options to be "d1" (include
line number debug information in the object file) and "om" (compile
with math optimizations).
.exam begin
&prompt.&setcmd. &setdelim.&cvar32=&sw.d1 &sw.om&setdelim.
.exam end
.np
Once the
.ev &cvarup32
environment variable has been defined, those options listed become the
default each time the &ccmdup32 command is used.
.do end
.************************************************************************
.if '&lang' eq 'FORTRAN 77' .do begin
.section WFL
.np
The
.ev WFL
environment variable can be used to specify commonly-used WFL options.
.millust begin
&setcmdup. &setdelim.WFL=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified on the
command line.
The following example defines the default options to be "mm" (compile
code for medium memory model), "d1" (include line number debug
information in the object file), and "ox" (default optimizations).
.exam begin
&prompt.&setcmd. &setdelim.wfl=&sw.mm &sw.d1 &sw.ox&setdelim.
.exam end
.np
Once the
.ev WFL
environment variable has been defined, those options listed become the
default each time the WFL command is used.
.do end
.************************************************************************
.if '&lang' eq 'FORTRAN 77' .do begin
.section WFL386
.np
The
.ev WFL386
environment variable can be used to specify commonly-used WFL386
options.
.millust begin
&setcmdup. &setdelim.WFL386=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified on the
command line.
The following example defines the default options to be "mf" (flat
memory model), "d1" (include line number debug information in the
object file), and "ox" (default optimizations).
.exam begin
&prompt.&setcmd. &setdelim.wfl386=&sw.mf &sw.d1 &sw.ox&setdelim.
.exam end
.np
Once the
.ev WFL386
environment variable has been defined, those options listed become the
default each time the WFL386 command is used.
.do end
.************************************************************************
.if '&target' ne 'QNX' .do begin
.section WLANG
.np
.ix 'language'
.ix 'diagnostic messages' 'language'
.ix 'English diagnostic messages'
.ix 'Japanese diagnostic messages'
The
.ev WLANG
environment variable can be used to control which language is
used to display diagnostic and program usage messages by various
&company software tools.
The two currently-supported values for this variable are "English" or
"Japanese".
.millust begin
&setcmdup. &setdelim.WLANG=English&setdelim.
&setcmdup. &setdelim.WLANG=Japanese&setdelim.
.millust end
.pc
Alternatively, a numeric value of 0 (for English) or 1 (for Japanese)
can be specified.
.exam begin
&prompt.&setcmd. &setdelim.wlang=0&setdelim.
.exam end
.np
By default, Japanese messages are displayed when the current codepage
is 932 and English messages are displayed otherwise.
Normally, use of the
.ev WLANG
environment variable should not be required.
.do end
.************************************************************************
.if '&lang' eq 'C' or '&lang' eq 'C/C++' .do begin
.if '&target' eq 'QNX' .do begin
.sr envvar='WPP'
.do end
.el .do begin
.sr envvar='wpp'
.do end
.section WPP
.np
The
.ev WPP
environment variable can be used to specify commonly-used options for
the 16-bit C++ compiler.
.millust begin
&setcmdup. &setdelim.WPP=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified on the command
line.
The following example defines the default options to be "d1" (include
line number debug information in the object file) and "ox" (compile
for maximum number of code optimizations).
.exam begin
&prompt.&setcmd. &setdelim.&envvar.=&sw.d1 &sw.ox&setdelim.
.exam end
.np
Once the
.ev WPP
environment variable has been defined, those options listed become the
default each time the
.if '&target' eq 'QNX' .do begin
.kw wpp
.do end
.el .do begin
.kw WPP
.do end
command is used.
.do end
.************************************************************************
.if '&lang' eq 'C' or '&lang' eq 'C/C++' .do begin
.if '&target' eq 'QNX' .do begin
.sr envvar='WPP386'
.do end
.el .do begin
.sr envvar='wpp386'
.do end
.section WPP386
.np
The
.ev WPP386
environment variable can be used to specify commonly-used options for
the 32-bit C++ compiler.
.millust begin
&setcmdup. &setdelim.WPP386=&sw.option1 &sw.option2 ...&setdelim.
.millust end
.pc
These options are processed before options specified on the command
line.
The following example defines the default options to be "d1" (include
line number debug information in the object file) and "ox" (compile
for maximum number of code optimizations).
.exam begin
&prompt.&setcmd. &setdelim.&envvar.=&sw.d1 &sw.ox&setdelim.
.exam end
.np
Once the
.ev WPP386
environment variable has been defined, those options listed become the
default each time the
.if '&target' eq 'QNX' .do begin
.kw wpp386
.do end
.el .do begin
.kw WPP386
.do end
command is used.
.do end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -