8 ms·
Thanks for this Ryan. I'll reference this gist too. I remember starting with something like this early on (w/o your sysdef) but wanted argc, argv, envp and to
by oso2k 12y ago
Thanks for this Ryan. I'll reference this gist too. I remember starting with something like this early on (w/o your sysdef) but wanted argc, argv, envp and to separate syscall* from the startup code.
Part of the reason I've started this is that libc suffers from bad design (in von Leitner's definition [0]). I find c0's & djb's APIs better designed [1][2]. *printf is a prime example of bad design. Heck, pretty much everything in stdio.h & string.h has a design flaw)
[0] http://www.fefe.de/dietlibc/diet.pdf http://www.fefe.de/dietlibc/diet.pdf
[1] http://c0.typesafety.net/tutorial/Strings.html http://c0.typesafety.net/tutorial/Strings.html
[2] http://www.fefe.de/djb/ http://www.fefe.de/djb/