MC(1)
π MC(1) β General Commands Manual π
okay so bestie, welcome to the MC(1) manual page β General Commands Manual energy, compiler main-character moment, and the actual star of this page is 6m π
β¨
πΈ NAME πΈ
6m
(yes, that's the whole NAME section β iconic minimalism π«Ά)
π SYNOPSIS π
here's the exact vibe-check line, no edits:
6m -[?hioSG9d] [file...]
π DESCRIPTION π
The ?m compiler family compiles Myrddin source into object files for the corresponding architecture. Each architecture gets its own compiler. Unless otherwise specified, if the input file is named filename.myr then the object file that is generated will be named filename.o.
Any text between the first + in the file name and the suffix are stripped. This functionality is used to specify system tags for tools like mbld.
If the filename does not end with the suffix .myr then the object suffix .o will simply be appended to it.
The following architectures are currently supported:
6mβ x86-64
The compiler options are:
-d [flTriu]β Print debugging dumps. Additional options may be given to give more debugging information for specific intermediate states of the compilation. The little bracket crew is literallyflTriuπ«Ά-h,-?β Print a summary of the available options.-I pathβ Addpathto the search path for unquoted use statements. This option does not affect the search path for local usefiles, which are always searched relative to the directory containing the output file. Without any options, the search path defaults to/usr/include/myr.-o output-fileβ Specify that the generated code should be placed inoutput-fileinstead of the default location.-Sβ Generate assembly code along with the object file.-Gβ Generate assembly in theGnu Assyntax.-O outβ Output code to output pathout.-Tβ Compile in test mode. This implies thatpkglocalfunctions are available.-9β Generate assembly in the Plan 9 syntax.
π EXAMPLE π
copy-paste this little ritual, bestie:
6m foo.myr
6m bar.myr
ld -o foobar foo.o bar.o
π FILES π
The source code for this compiler is available from:
git://git.eigenstate.org/git/ori/mc.git
π SEE ALSO π
π BUGS π
okay bestie, the caveats are real and we are not pretending otherwise:
- The language is not yet complete, and the compilers often omit useful constructs in spite of their desirability.
- There are virtually no optimizations done, and the generated source is often very poorly performing.
- The current calling convention is stack-based and not register-based, even on architectures where it should be register-based.
- The calling convention is not compatible with C.
byeee π this was the MC(1) manual page. The footer has no extra source/version/date flex β it's just the MC(1) manual tag β so we're signing off from MC(1). Stay slaying, and may your object files link on the first try π«Άβ¨
π¦ where this page comes from
- nixos 26.05: myrddin 0.3.1
- nixpkgs unstable: myrddin 0.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms