Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[COMPILER REQUEST]: sh-elf-gdc #6520

Open
LunaTheFoxgirl opened this issue May 22, 2024 · 4 comments
Open

[COMPILER REQUEST]: sh-elf-gdc #6520

LunaTheFoxgirl opened this issue May 22, 2024 · 4 comments
Assignees
Labels
new-compilers request Request for something

Comments

@LunaTheFoxgirl
Copy link

Compiler name

sh-elf-gdc

Compiler version

13.2.0, tinyd-rt 0.1.1

Compiler language

D

Compiler homepage

https://gdcproject.org/

Motivation

I maintain the DLang Dreamcast SDK, and having compiler explorer output for sh-elf in gdc would help track down issues and bottlenecks.

To get sh-elf-gdc running, you just have to compile it with the D runtime disabled (--disable-libphobos).
Additionally I maintain a minimal D runtime (without garbage collector) which can be used instead of the default D runtime.

Releases are tagged here
https://github.com/KitsunebiGames/tinyd-rt/releases

the source can just be downloaded and the runtime be added to the gdc search path.
The following compiler flags should also be passed to the compiler on compilation -matomic-model=soft-imask -ftls-model=local-exec -m4-single-only

@LunaTheFoxgirl LunaTheFoxgirl added new-compilers request Request for something labels May 22, 2024
@dkm dkm self-assigned this May 22, 2024
@dkm
Copy link
Member

dkm commented May 22, 2024

As discussed, I'll have a look, thanks for opening the issue 👍

@dkm
Copy link
Member

dkm commented May 23, 2024

Ok, first step ✔️ locally. Now, the hardest part is to see how to cleanly install this.

@dkm
Copy link
Member

dkm commented May 23, 2024

Companion change in ct-ng up for review: crosstool-ng/crosstool-ng#2159

dkm added a commit to compiler-explorer/infra that referenced this issue May 24, 2024
Add the tinyd-rt lib. This is a small D runtime, an alternative to the
libphobos provided along gdc.

refs compiler-explorer/compiler-explorer#6520

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
dkm added a commit to compiler-explorer/gcc-cross-builder that referenced this issue Jun 5, 2024
Enable D and Ada for sh

refs compiler-explorer/compiler-explorer#6520

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
@dkm
Copy link
Member

dkm commented Jun 5, 2024

Rebuild for GCC with both Ada and D: https://github.com/compiler-explorer/infra/actions/runs/9388196335

dkm added a commit to compiler-explorer/infra that referenced this issue Jun 5, 2024
Add the tinyd-rt lib. This is a small D runtime, an alternative to the
libphobos provided along gdc.

refs compiler-explorer/compiler-explorer#6520

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
dkm added a commit that referenced this issue Aug 7, 2024
Left out sh GNAT and GDC.

But they are installed, so at least GDC 14.2 can be added along with
the rest in #6520.

refs refs #6741

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
dkm added a commit that referenced this issue Aug 7, 2024
Left out sh GNAT and GDC.

But they are installed, so at least GDC 14.2 can be added along with
the rest in #6520.

refs #6741

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
dkm added a commit that referenced this issue Aug 10, 2024
Left out sh GNAT and GDC.

But they are installed, so at least GDC 14.2 can be added along with
the rest in #6520.

refs #6741

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
dkm added a commit that referenced this issue Aug 10, 2024
Left out sh GNAT and GDC.

But they are installed, so at least GDC 14.2 can be added along with the
rest in
#6520.

refs #6741

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-compilers request Request for something
Projects
None yet
Development

No branches or pull requests

2 participants