Reference/C11Backend

Definition

HeaderFile: UCodeLang/Compliation/Back/C11/C89Backend.hpp

Is Included In UCodeLang.hpp: No

The BackEnd to output C11 Code.

class C11Backend;

Example

#include "UCodeLang.hpp"
#include "UCodeLang/Compliation/Back/C11/C11Backend.hpp"

void main()
{
    UCodeLang::Compiler _Compiler;
    _Compiler.Set_BackEnd(UCodeLang::C11Backend::MakeObject);
    //You set the backend to output C11 Code.
}

MemberFuncions

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

Static Members

FuncionParametersReturnDescription
MakeObjectNoneBackEndObject*Returns a pointer heap allocated to a BackEndObject.Must be freed.
UpdateToCindentifierconst String& ValuevoidConverts a identifier to a valid C89 indentifier.can be used to find a funcion from the UClib ClassMethod using the DecorationName Field.

Notes

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