Link-time optimisation (LTO)
Kagamin
spam at here.lot
Sat Mar 31 12:22:26 UTC 2018
On Friday, 30 March 2018 at 10:23:15 UTC, Cecil Ward wrote:
> My principal question: If I successfully do this, with GCC or
> LDC, will I be able to get the code for the externally defined
> short routine expanded inline and fully integrated into the
> generated code that corresponds to the calling source code? (So
> no ‘call’ instruction is even found.)
If you compile for lto, ldc compiles code to IR and linker
generates machine code from IR with inlining, at the IR level
most information about source code is lost, only the actual code
remains, declarations are purely source code items. But it only
inline IR code, machine code can't be inlined.
More information about the Digitalmars-d-learn
mailing list