WebAssembly  _start or crt_constructor not get called.
    kinke 
    kinke at libero.it
       
    Fri Aug 10 14:24:58 UTC 2018
    
    
  
On Friday, 10 August 2018 at 11:22:39 UTC, learnfirst1 wrote:
> please take a look at this:  
> http://llvm.org/doxygen/WebAssemblyLowerGlobalDtors_8cpp_source.html
>
>
> Since LLVM can support WebAssembly GlobalCtors,  LDC also 
> append crt_constructor into llvm::GlobalCtors,  why not make 
> ldc with WebAssembly work same way.
Thx for the link, but I don't see a corresponding file for global 
*con*structors. LDC emits them into `llvm.global_{ctor,dtor}s` 
(see https://run.dlang.io/is/q8TIBU and hit the `IR` button), so 
I guess the lowering already works for `pragma(crt_destructor)`.
    
    
More information about the digitalmars-d-ldc
mailing list