On Monday, 16 August 2021 at 10:05:08 UTC, Iain Buclaw wrote:
On Monday, 16 August 2021 at 09:28:41 UTC, Mahdi wrote:
[...]
There's nothing specifically tied to ARM in LWDR per-say.
Maybe that'll change once exception support gets added (ARM
EABI unwinder follows a different ABI), but I'm sure that can
be coordinated with the maintainer to ensure both ARM EABI and
Itanium can be toggled with a version flag.
The only prerequisite for LWDR I am aware of is that you must
provide implementations for [these helper
functions](https://github.com/hmmdyl/LWDR/blob/d55a39d028942f0eb1582d473317f89030995703/source/rtoslink.d#L14-L34), which would just wrap around Newlib in your case. Whether the wrapper is in C or D doesn't matter. The only difference is that you'll have to write out the extern(C) bindings yourself if in D.
Why does a simple or empty Hello program generate a lot of
assembly output for the risc-v architecture, but not for the ARM
and X86 architectures?