Report a bug
If you spot a problem with this page, click here to create a GitHub issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

dmd.backend.global

Declarations for back end
Compiler implementation of the D programming language.
Authors:
alias ErrorCallbackBackend = extern (C++) void function(const(char)* filename, uint linnum, uint charnum, const(char)* format, ...) nothrow @nogc;
Callback for errors raised by the backend
alias GetFileContentsCallback = extern (C++) const(ubyte)* function(const(char)* filename, ref ulong length) nothrow @nogc;
Callback to fetch cached source-file contents from the front-end FileManager (Module.src), avoiding a re-read from disk. Returns a pointer to the bytes and sets length; returns null if the content is unavailable.
void error(T...)(Srcpos srcPos, const(char)* format, T args);
Backend error report function
Parameters:
Srcpos srcPos source location
const(char)* format printf format string with error message
T args printf format string arguments
nothrow @nogc @trusted targ_size_t _align(targ_size_t size, targ_size_t offset);
Parameters:
targ_size_t size alignment size
targ_size_t offset increase until it is on a size boundary
Returns:
aligned offset
nothrow @nogc @safe targ_size_t size(tym_t ty);
Get size of ty
nothrow @nogc @safe Symbol* symboldata(targ_size_t offset, tym_t ty);
Generate symbol of type ty at DATA:offset
nothrow @nogc @trusted int REGSIZE();
Size of a register in bytes