Show / Hide Table of Contents

Class IrToBytecodeCompiler

Compiles Intermediate Representation (IR) nodes into executable bytecode.

Inheritance
object
IrToBytecodeCompiler
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VM.Core.IR
Assembly: VM.dll
Syntax
public class IrToBytecodeCompiler
Remarks

This compiler handles the translation from high-level IR nodes to low-level VM bytecode, including local variable management, label resolution, and control flow handling.

Methods

Compile(List<IrNode?>)

Compiles a list of IR nodes into executable bytecode.

Declaration
public byte[] Compile(List<IrNode?> nodes)
Parameters
Type Name Description
List<IrNode> nodes

The IR nodes to compile.

Returns
Type Description
byte[]

The generated bytecode as a byte array.

In this article
Back to top Generated by DocFX