momiji

m68k emulator infrastructure

About Source code

Table of contents

momiji::compile

Defined in header <momiji/Compiler.h>

UNSTABLE API

momiji::ExecutableMemory compile(const momiji::ParsingInfo& parsingInfo, momiji::CompilerSettings settings) (1)
Compiles the result of the parser to an executable program.
  1. Parameters:
    • const momiji::ParsingInfo& parsingInfo : The result of the parser.
    • momiji::CompilerSettings settings : Settings for the compiler.
    Returns: The binary of the compiled program.

The resulting momiji::ExecutableMemory contains the direct representation of the source code in binary.

The supported way to interpret it is to pass the binary to the Decoder to decode a specific location.