Skip to content

Command Line Interface

Benjamin Kowarsch edited this page May 14, 2023 · 6 revisions

m2c | m2mkdep | m2make

Compiler

Command Format

m2c information

or

m2c [products] [capabilities] sourcefile [diagnostics]

Information Options

--help, -h
--version, -V
--license

Diagnostic Options

--verbose, -v
--lexer-debug
--parser-debug
--print-settings

Defaults

all diagnostics are off

Compilation Product Options

--ast, --no-ast
--graph, --no-graph
--xlat, --no-xlat
--obj, --no-obj

--syntax-only  (--no-ast, --no-graph, --no-xlat, --no-obj)
--ast-only     (--no-graph, --no-xlat, --no-obj)
--graph-only   (--no-ast, --no-xlat, --no-obj)
--xlat-only    (--no-ast, --no-graph, --no-obj)
--obj-only     (--no-ast, --no-graph, --no-xlat)

In combination with option --xlat

--strip-comments
--preserve-comments

Defaults

--ast, --xlat, --obj, --preserve-comments

Capability Options

Available on all targets

--lowline-identifiers, --no-lowline-identifiers

Default

--no-lowline-identifiers

Available on VMS only

--dollar-identifiers, --no-dollar-identifiers

Default

--no-dollar-identifiers

Dependency Tool

Command Format

m2mkdep information

or

m2mkdep [outputs] [capabilities] sourcefile [diagnostics]

Information Options

--help, -h
--version, -V
--license

Diagnostic Options

--verbose, -v
--lexer-debug
--parser-debug

Defaults

all diagnostics are off

Output Options

--graph, --no-graph

Defaults

--no-graph

Capability Options

Available on all targets

--lowline-identifiers, --no-lowline-identifiers

Default

--no-lowline-identifiers

Available on VMS only

--dollar-identifiers, --no-dollar-identifiers

Default

--no-dollar-identifiers

Make Tool

Command Format

m2make information

or

m2make [outputs] [capabilities] sourcefile [diagnostics]