HP 3000 Manuals

Using UDCs to Run the Generator [ VIRTUOSO CODE GENERATOR Reference Manual ] MPE/iX 5.0 Documentation


VIRTUOSO CODE GENERATOR Reference Manual

Using UDCs to Run the Generator 

You can create a UDC to run the generator and to specify needed
parameters and files.  The following is an example of a UDC for running
the generator:

     ***
     :GENERATE source,output,listing,macro,scope,pass,dict,
               domain,version,module
     :FILE SYSDIC=!dict
     :FILE GENTEXT=!source
     :FILE GENOUT=!output
     :FILE GENLIST=!listing
     :FILE GENMACRO=!macro
     :RUN VIRTUOSO.PUB.SYS;parm=7;INFO="s=!scope p=!pass d=!domain &
     v=!version module=!module"

The syntax for the UDC is as follows:

     :GENERATE   source, output, listing, macro, scope, pass, dict,
                 domain, version, module  

         where

     source     is the name of the source file; the default is "GENTEXT".
     output     is the name of the output file; the default is "GENOUT".
     listing    is the name of the listing file; the default is "GENLIST".
     macro      is the name of the Processed Macro File.

Refer to the parameters listed under the section "INFO String" earlier in
this chapter for a description of the other parameters specified for this
UDC.

When using the above UDC, you specify the names of the source, output,
Processed Macro File, and the other parameters necessary for the , such
as System Dictionary domain and version.

You can also create a UDC to run the generator to process a Source Macro
File.  The following is an example of a UDC for running the generator to
process a Source Macro File:

     ***
     MACROPROC macrosource, macroprocess, listing
     :FILE GENTEXT=!macrosource
     :FILE GENOUT=!macroprocess
     :FILE GENLIST=!listing
     :RUN VIRTUOSO.PUB.SYS;parm=7;INFO="MP=ON"

The syntax for the UDC is as follows:

     MACROPROC  macrosource, macroprocess, listing 

          Where

     input          is the name of the Source Macro File to be processed.
     output         is the name of the Processed Macro File.
     listing        is the name of the listing file; the default is "GENLIST".

You specify the name of the Source Macro File and the name of the
processed file (which will be binary).  Optionally, you can specify the
name of the listing file.



MPE/iX 5.0 Documentation