Specify LDC to compile specific files

Jacob Carlborg doob at me.com
Tue Mar 5 18:52:45 UTC 2019


On 2019-03-05 17:40, Michelle Long wrote:

> Know what the specific ABI issues are?

LDC has a slightly modified version of druntime. When using "new" on a 
class, the compiler lowers that to a function call implemented in 
druntime. The DMD and LDC versions of this function is different. LDC 
uses a function called "_d_allocclass" and DMD a function called 
"_d_newclass". The LDC function only allocates memory (I believe), 
without doing any initialization.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-ide mailing list