For the past few months, I've been working on C support in KnightOS. Mainly, I've been working on the C library (libc) and the corelib/userspace library bindings (corelib).
While the CodeWalrus post is more for announcements regarding C support, I plan to use this topic as a support post where I can ask for help, ideas on implementing standard C functions, etc.
Currently, all of corelib is supported, along with most of the system/kernel (color, filestreams, the filesystem, drawing/display, etc) is supported. A fair amount of standard C is also implemented (printf, sprintf, asprintf, among other common std stuff). Also, I plan to add C bindings to the 3D library by matrefeytontias, fx3dlib
A demo game, pong, can be found here: http://www.github.com/sircmpwn/pong
And a demo program showing the use of corelib can be found here: http://www.github.com/maxleiter/corelibcdemo
Currently I'm trying to finish implementing color support (https://sr.ht/dNjy.webm), and then plan to finish up filestream support and will possibly try and attempt to port Ducky (a BASIC-like language) to KOS in C. Any suggestions on a fun project to port/some standard C to implement?
I've also written some KOS C tutorials which can be found here: http://www.knightos.org/documentation/tutorials/getting-started-c/
Huge thanks to everyone that's helped me learn C while working on this, I've learned a lot so far. (Mainly @jacobly and SirCmpwn)
While the CodeWalrus post is more for announcements regarding C support, I plan to use this topic as a support post where I can ask for help, ideas on implementing standard C functions, etc.
Currently, all of corelib is supported, along with most of the system/kernel (color, filestreams, the filesystem, drawing/display, etc) is supported. A fair amount of standard C is also implemented (printf, sprintf, asprintf, among other common std stuff). Also, I plan to add C bindings to the 3D library by matrefeytontias, fx3dlib
A demo game, pong, can be found here: http://www.github.com/sircmpwn/pong
And a demo program showing the use of corelib can be found here: http://www.github.com/maxleiter/corelibcdemo
Currently I'm trying to finish implementing color support (https://sr.ht/dNjy.webm), and then plan to finish up filestream support and will possibly try and attempt to port Ducky (a BASIC-like language) to KOS in C. Any suggestions on a fun project to port/some standard C to implement?
I've also written some KOS C tutorials which can be found here: http://www.knightos.org/documentation/tutorials/getting-started-c/
Huge thanks to everyone that's helped me learn C while working on this, I've learned a lot so far. (Mainly @jacobly and SirCmpwn)