Page 1 of 1

LibC requirements for porting DOOM?

Posted: Thu Oct 17, 2024 7:33 pm
by UnmappedStack
Hi all, long time reader, first time poster :D I've finally gotten to a point where my kernel is able to run a very basic user space shell with devices etc, and while I take a break from SMP which has been quite annoying me, I want to implement a proper libc, with the hopes of eventually porting DOOM.

From what I understand, doomgeneric is very easy to port, only requiring a libc and just a few platform specific functions. Does anybody who's implemented this before have a list of functions, typedefs, and macros needed in the libc to be able to port DOOM, and what exactly it requires? Thank you! :)

Re: LibC requirements for porting DOOM?

Posted: Thu Oct 17, 2024 9:33 pm
by MichaelPetch
Off topic: Back in the mid 80s I remember listening to Larry King Live on shortwave radio and calling into his show (he had John Dvorak on) and had the opportunity to use the "long time listener, first time caller!" for the first time.

Re: LibC requirements for porting DOOM?

Posted: Sat Nov 23, 2024 12:28 pm
by cloudapio
Usually, to find out what libc functions a third-party port requires, I'd recommend trying to build the program, seeing where the compilation fails, and implement whatever it needs, and so on. That's what I did, in any case.

As for platform-specific functions, the doomgeneric README covers those well: https://github.com/ozkl/doomgeneric