DreamHAL - Dreamcast Hardware Abstraction Layer

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
User avatar
GyroVorbis
Elysian Shadows Developer
Elysian Shadows Developer
Posts: 1874
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Mon Mar 22, 2004 4:55 pm
Location: #%^&*!!!11one Super Sonic
Has thanked: 80 times
Been thanked: 61 times
Contact:

Re: DreamHAL - Dreamcast Hardware Abstraction Layer

Post by GyroVorbis »

TapamN wrote: Mon May 29, 2023 2:57 am Neat.

I actually talked about the -fno-builtin switch a bit when the GCC 12.2 port was originally released.

https://dcemulation.org/phpBB/viewtopic ... 9#p1059779

https://dcemulation.org/phpBB/viewtopic ... 5#p1059785
Yo, had a quick question for you. Darc appears to have been the first one of us to have tried to build without -fno-builtin WITH -flto and found that it produces a bunch of newlib linker issues.

Have you encountered or worked around this? Are you just foregoing LTO? Anyway, opened an issue to track it. The changes with fixing up the warnings should already have made it in, thanks to BBHoodsta.

https://github.com/KallistiOS/KallistiOS/issues/244
TapamN
DC Developer
DC Developer
Posts: 105
Joined: Sun Oct 04, 2009 11:13 am
Has thanked: 2 times
Been thanked: 90 times

Re: DreamHAL - Dreamcast Hardware Abstraction Layer

Post by TapamN »

I've tried LTO with 12.2, but I don't think on KOS itself, just my own code. Going by the error message, it sounds creating a __exit function (or maybe ___exit or _exit, not sure on the mangling) have having it call arch_exit might be enough to make it happy?
Post Reply