📄 p2cc.cat
字号:
P2CC(1) USER COMMANDS P2CC(1)NAME p2cc - Pascal compiler using p2cSYNOPSIS p2cc [ options and files ]DESCRIPTION _P_2_c_c is a Pascal compiler that works by running _p_2_c, the Pascal to C translator, followed by _c_c, the C compiler. All command-line options and arguments are passed directly to the C compiler, except that files ending with .p or .pas are passed through _p_2_c first, and that the options listed below are interpreted specially by _p_2_c_c. As usual, programs made up of several source modules can be compiled all on one _p_2_c_c command, or separately using _p_2_c_c -c and then linked afterwards with a final _p_2_c_c command.OPTIONS -p2c Translate .p and .pas files to C but do not compile the resulting .c files. This is analogous to the -S and -c options of most C compilers, which stop with assembly language or unlinked object files, respectively. -p2c_o_p_t_i_o_n Pass _o_p_t_i_o_n to _p_2_c rather than to the C compiler. -O This switch is passed on to the C compiler to enable optional optimization of the program. It also instructs _p_2_c to do a few optimizations of its own, e.g., disabling certain run-time range checks. -I_d_i_r The -I switch is passed to both _p_2_c and the C compiler, where it will identify places to look for Pascal inter- face texts or C .h files, respectively. -v Enable "verbose" mode. This affects both _p_2_c and the C compiler.ENVIRONMENT The following environment variables may be used to affect the operation of _p_2_c_c. P2CC_PAT This variable holds a regular expression for recogniz- ing the names of Pascal files. By default, it recog- nizes strings which end in .p or .pas. P2CC_CC This holds the name of the command to run the C com- piler. Default is cc.Sun Release 4.1 Last change: local 1P2CC(1) USER COMMANDS P2CC(1) P2CC_CCOPTS This holds additional arguments to be passed to the cc command, before the names of any source files. P2CC_CCOPTS2 These arguments are passed to the cc command _a_f_t_e_r the names of source files. P2CC_LIBP2C This is the name of the libp2c.a file holding _p_2_c run- time routines. Its default is -lp2c, which causes the linker to look for libp2c.a in the usual places for libraries. P2CC_P2C This holds the name of the command to run _p_2_c. It is p2c by default. P2CC_P2COPTS These are arguments to be passed to _p_2_c on the command line. The default specifies -comp, which set the defaults for various _p_2_c configuration options to be more suitable for compilation rather than translation, and -local, which sets other options to work on the assumption that the output from _p_2_c will be compiled and run on the same type of machine that ran _p_2_c itself. P2CC_SUFFIX This is the suffix to use for the names of temporary C source files. The default is ..c, ensuring that _p_2_c will not inadvertently erase .c files in the same directory as the Pascal source files. Note that if the -p2c option is used, the suffix is forced instead to .c since the user has explicitly asked for C source files.AUTHOR Dave Gillespie, daveg@synaptics.com.SEE ALSO p2c(1), cc(1)Sun Release 4.1 Last change: local 2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -