RISC-V port

Luís Marques luis at luismarques.eu
Mon May 21 13:48:36 UTC 2018


On Sunday, 20 May 2018 at 17:32:53 UTC, David Nadlinger wrote:
> First of all, what is the exception ABI for your target? Is it 
> table-based using DWARF frame information? Or is it 
> {set,long}jmp-based?

It's table-based DWARF.

> I don't quite remember whether this question has even been 
> addressed for RISC-V so far, that is, whether there even is a 
> compiler port that supports C++ exceptions, or an ABI document 
> that prescribes a particular implementation.

Yeah, the GCC port of RISC-V includes exception support.

> From there, it's a matter of setting the ExceptionType 
> correctly in your MCAsmInfo subclass, and fixing up various 
> other bits and pieces as required. (For example, the code 
> generator might need some tweaks to make sure the frame offset 
> information is up to date, etc.) Grepping lib/Backend for 
> `DwarfCFI` should provide you with some inspiration.

Cool, I'll look into that.


More information about the digitalmars-d-ldc mailing list