compiler-explorer / compiler-explorer

Run compilers interactively from your web browser and interact with the assembly
https://godbolt.org/
BSD 2-Clause "Simplified" License
15.64k stars 1.67k forks source link

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

Open LunaTheFoxgirl opened 1 month ago

LunaTheFoxgirl commented 1 month ago

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

dkm commented 1 month ago

As discussed, I'll have a look, thanks for opening the issue :+1:

dkm commented 1 month ago

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

dkm commented 1 month ago

Companion change in ct-ng up for review: https://github.com/crosstool-ng/crosstool-ng/pull/2159

dkm commented 1 month ago

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