RISC-V port

Luís Marques luis at luismarques.eu
Wed May 23 16:10:47 UTC 2018


On Wednesday, 23 May 2018 at 15:35:12 UTC, David Nadlinger wrote:
> For future reference: In situations like that, it might be 
> useful to compile both C++ and D sources to LLVM IR 
> (`-emit-llvm -S` for Clang), and then manually assemble them 
> using `llc`.
>
> Any difference in behaviour that remains must then be visible 
> from the IR, rather than some potentially different codegen 
> settings, etc.

Thanks!

You know what's silly? I had activated the debug flag `debug = 
EH_personality`, but that debug code uses printf with varargs, 
and I hand't yet ported varargs, so that's what was crashing on 
the D side... arrg!


More information about the digitalmars-d-ldc mailing list