ref: d626bfc93b1df80a39432a0077cc6febf056fee6
parent: c17e4784c7b883c05f456b1038cd8a39ce58e57d
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Feb 17 18:21:22 EST 2017
Update the mc manpage.
--- a/6/main.c
+++ b/6/main.c
@@ -42,7 +42,7 @@
printf("\t-I path\tAdd 'path' to use search path\n");
printf("\t-d\tPrint debug dumps. Recognized options: f r p i\n");
printf("\t-G\tGenerate asm in gas syntax\n");
- printf("\t-8\tGenerate asm in plan 9 syntax\n");
+ printf("\t-9\tGenerate asm in plan 9 syntax\n");
printf("\t-d opts: additional debug logging. Options are listed below:\n");
printf("\t\tf: log folded trees\n");
printf("\t\tl: log lowered pre-cfg trees\n");
--- a/doc/6m.1
+++ b/doc/6m.1
@@ -3,15 +3,14 @@
6m
.SH SYNOPSIS
.B 6m
-.I -[hioS]
+.I -[?hioSG9d]
.I [file...]
.br
.SH DESCRIPTION
.PP
-The ?m family of compilers compile Myrddin source into object files
-for the corresponding architecture. There is one compiler for each
-architecture supported, with a unique name. By default, if the input
-file is named
+The ?m compiler family compiles Myrddin source into object files
+for the corresponding architecture. Each architecture gets its own
+compler. Unless otherwise specified, if the input file is named
.I filename.myr
then the the object file that is generated will be named
.I filename.o.
@@ -22,7 +21,7 @@
.PP
If the filename does not end with the suffix
.I .myr
-then the suffix
+then the object suffix
.I .o
will simply be appended to it.
@@ -36,12 +35,12 @@
The compiler options are:
.TP
-.B -d [flTri]
+.B -d [flTriu]
Print debugging dumps. Additional options may be given to give more
debugging information for specific intermediate states of the compilation.
.TP
-.B -h
+.B -h, -?
Print a summary of the available options.
.TP
@@ -54,10 +53,20 @@
.TP
.B -o output-file
Specify that the generated code should be placed in
+.I output-file
+instead of the default location.
.TP
.B -S
Generate assembly code along with the object file.
+
+.TP
+.B -G
+Generate assembly in the Gnu As syntax.
+
+.TP
+.B -9
+Generate assembly in the Plan 9 syntax.
.SH EXAMPLE
.EX