Reference/UCodeBackEnd

Definition

HeaderFile: UCodeLang/Compliation/Back/UCodeBackEnd/UCodeBackEnd.hpp

Is Included In UCodeLang.hpp: No

The BackEnd for the UCodeInterpreter or Jit Interpreter.

class UCodeBackEnd;

Example


#include "UCodeLang.hpp"
#include "UCodeLang/Compliation/Back/UCodeBackEnd/UCodeBackEnd.hpp"

void main()
{
    UCodeLang::Compiler _Compiler;
	_Compiler.Set_BackEnd(UCodeLang::UCodeBackEnd::MakeObject);
	//You set the backend to target the Interpreter or jit-Interpreter
}

MemberFuncions

FuncionParametersReturnDescription
ResetNonevoidResets The BackEnd to be used again.
Build(const IRBuilder* Input)voidGenerates a UClib from Input.

Static Members

FuncionParametersReturnDescription
MakeObjectNoneBackEndObject*Returns a pointer heap allocated to a BackEndObject.Must be freed.

Notes

Like All BackEnds UCodeBackEnd is not meant to be directly but instead used from the Compiler.