Class IrToBytecodeCompiler
Compiles Intermediate Representation (IR) nodes into executable bytecode.
Inherited Members
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. |