Next: , Previous: , Up: Example Programs   [Contents][Index]


7.6 parse-asm

This program was used by the package developer to debug converting the text of an assembler program to the memory representation of the assembler program and then converting the representation back to the assembler program text. The program can also be used to obtain a result of preprocessing an assembler program text. This program does not perform converting the memory representation of an assembler program to the probability profile of a node.

The program supports a single optional argument that specifies the name of a file with an assembler program text. If the argument is not given, then the program will read an assembler program text from stdin. After parsing an assembler program text, the parse-asm program prints the reinterpreted program text to stdout.

The program understands the following command-line options.

-E

Perform preprocessing only and print the preprocessed text of an assembler program.

--no-preprocess

Do not preprocess an assembler program text before parsing it. This option is ignored when the option -E is specified.

--no-space-after-comma

Do not print spaces after commas not within comments and string literals. This option is ignored when the option -E is specified.

--prob-prec=INT

The number of digits after the decimal point to print for probabilities. A non-negative number specifies fixed-point notation. A negative number specifies exponential notation, and its absolute value indicates the number of digits after the decimal point. Default value is 2. This option is ignored when the option -E is specified.

-R, --margin-right=INT

A right margin column for comments. By default, no right margin is used. This option is ignored when the option -E is specified.

--strip-comments

Do not print comments. This option is ignored when the option -E is specified.


Next: , Previous: , Up: Example Programs   [Contents][Index]