Using the prototype compiler


The installation instructions for NetRexx for OS/2 describe how to use the package you installed to compile and run a simple NetRexx program. This section explains more of the options available to you.

Invoking the compiler

The compiler is invoked by using a system-specific command (either 'NetRexxC' or 'nrc'), followed by the name of the program file to compile. NetRexxC will add the extension '.nrx' to the input name (file specification) if no extension was given.

Any of the option words allowed on the NetRexx OPTIONS instruction (see the NetRexx language documentation) may be specified on the command line, prefixed with '-'. These options may occur before or after the file specification.

NetRexxC also implements some additional option words:

Some possible compiler invocations might be:

  nrc hello
  nrc hello.nrx
  nrc hello -run
  nrc -keep hello
  nrc hello -binary -verbose1
  nrc -noverbose hello -format -keep

Option words may be specified in lowercase, mixed case, or uppercase. File specifications are platform-dependent and may be case sensitive. In OS/2, file specifications may be in any case, though note that at present Java requires that if you use the CLASS instruction for a public class then the the file name should match the name of the class exactly.


[ previous section | contents | next section ]

From 'nrinst.doc', version 0.50.
Copyright(c) IBM Corporation, 1996. All rights reserved. ©