Fragile ABI

Jacob Carlborg doob at me.com
Sat Aug 18 03:10:04 PDT 2012


On Friday, 17 August 2012 at 17:42:18 UTC, Michel Fortin wrote:

> Yes. Neither druntime nor the compiler knows whether you're 
> creating an executable. The typical compilation process is to 
> convert D code to an object file containing machine code. Then 
> that object file is linked either inside an executable or 
> inside a shared library. But the machine code is written before 
> the compiler knows where it'll go.

In most cases that is true. But in some cases the compiler do 
know what will be compiled. DMD has the -shared and -lib flags. 
They indicate that a shared library or static library should be 
built.

--
/Jacob Carlborg


More information about the Digitalmars-d mailing list