gdc for rv32&64

2021-08-15 Thread Mahdi via D.gnu
Hi Iain Buclaw, we appreciate your efforts in the d for the gnu ecosystem. but what is the status of gdc for risc-v architecture, especially newlib?

Re: gdc for rv32&64

2021-08-15 Thread Mahdi via D.gnu
On Sunday, 15 August 2021 at 17:22:28 UTC, max haughton wrote: On Sunday, 15 August 2021 at 15:03:26 UTC, Mahdi wrote: Hi Iain Buclaw, we appreciate your efforts in the d for the gnu ecosystem. but what is the status of gdc for risc-v architecture, especially newlib? explore.dgnu.org Have a

compile error on ppc64 little endian

2021-08-17 Thread Mahdi via D.gnu
○ → powerpc64le-linux-gnu-gcc-10 -S app.d app.d:1:8: error: module stdio is in file 'std/stdio.d' which cannot be read 1 | import std.stdio; |^ import path[0] = /usr/lib/gcc-cross/powerpc64le-linux-gnu/10/include/d This is a simple hello program that I

Re: gdc for rv32&64

2021-08-17 Thread Mahdi via D.gnu
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

Re: gdc for rv32&64

2021-08-18 Thread Mahdi via D.gnu
On Tuesday, 17 August 2021 at 20:39:29 UTC, max haughton wrote: On Tuesday, 17 August 2021 at 18:39:27 UTC, Mahdi wrote: On Monday, 16 August 2021 at 10:05:08 UTC, Iain Buclaw wrote: [...] Why does a simple or empty Hello program generate a lot of assembly output for the risc-v

Re: gdc for rv32&64

2021-08-16 Thread Mahdi via D.gnu
On Monday, 16 August 2021 at 08:43:40 UTC, Iain Buclaw wrote: The list of targets on that site is only what's present in [contrib/config-list.mk](https://github.com/gcc-mirror/gcc/blob/91292490d573f9f9e4f162d6d8c693a969197f2d/contrib/config-list.mk#L32-L105), which is just a bunch of

Re: gdc for rv32&64

2021-08-16 Thread Mahdi via D.gnu
On Sunday, 15 August 2021 at 20:11:23 UTC, max haughton wrote: By elf target you mean that it doesn't assume the existence of Linux APIs? What's the difference? It will be outputting an elf binary I don't know, so far I have worked on each C target with riscv64-unknown-elf-gcc, So far I have

undefined reference to `fiber_switchContext'

2021-08-23 Thread Mahdi via D.gnu
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/libgphobos.so: undefined reference to `fiber_switchContext' collect2: error: ld returned 1 exit status I have this problem after installing GDC 11. I installed gcc,g++ and gdc version 11 from unofficial repositories on Ubuntu 20.04.

Poor Performance gdc11 for base 64 with O3

2021-09-19 Thread Mahdi via D.gnu
In optimization level 3, gdc11 doesn't seem to work as well as gdc10 for base 64 benchmark. On this site: https://github.com/kostya/benchmarks#base64 , the poor performance of GDC 11 is well visible, but while version 10 did a good optimization. I did a base 64 experiment on RISCV64

Re: Poor Performance gdc11 for base 64 with O3

2021-09-20 Thread Mahdi via D.gnu
On Sunday, 19 September 2021 at 19:31:27 UTC, max haughton wrote: On Sunday, 19 September 2021 at 19:04:28 UTC, Mahdi wrote: In optimization level 3, gdc11 doesn't seem to work as well as gdc10 for base 64 benchmark. On this site: https://github.com/kostya/benchmarks#base64 [...] It's