2013-08-31

2013-08-31 LibC and Doom

Another late night, this time I was working through the Linux Doom source code and implementing header files and prototypes into the libc that it needed, spending quite a bit of time investigating things I didn't recognise.

Oh, by the way, I now have a libc project in the NetBeans project group that implements some of the C library functions.  This takes the older implementations of various C functions and combines them together, it also includes any function that are in the kernel but should be in the C library.

The libc project contains the beginnings (if you pardon the pun) of the crt0.o file which sets up the stack, finds kernel functions, opens the stdin, stdout and stderror streams, then calls the program's main() function.  It doesn't actually do any of this yet, but the framework is there.

No comments:

Post a Comment