GRU Devlog 22 - olibc, liblinux, mailing list

December 26, 2021 — G1n

Happy Chirstmas! Next GRU Devlog will be next year so Happy New Year! I hope GRU will grow and grow next year :D

On last Sunday we have created mailing list after devlog. Currently it is not active, but but you can message us there - gru@lists.tildeverse.org. Then I tryed to make FILE struct for liblinux, but it wasn’t working so it needed to be reimplemented.

Then youngchief submitted some changes to our webpage. Also robyndrake contributed some fixes to coreutils.

Also I had implemented printf and vprintf! It currently have %c, %d, %s so it will be useful for debugging. I have tryed to implement snprintf, but i had several problems with it so it is not done yet.

Then chunk contributed logo for us! I think it looks nice!

Last useful thing that I have done this week is very minimal FILE, it currently just has fd and nothing else.

I hope we will make more cool things and finish current projects next year!

Hope you liked this post! I wish everyone cool New Year! If you would like to help us, contact me via email, xmpp or irc :)

tags: gru, olibc, liblinux, mailing-list

GRU Devlog 21 - olibc

December 19, 2021 — G1n

This week I also was making olibc. Now it is published! I have mostly implemented <string.h>, but there still some funcs that require <locale.h>, so they are not implemented yet.

I found out why olibc wasn’t giving correct return value after program is executed. It was because liblinux wasn’t exiting correctly, so it received some random return values from stack.

Also a lot of testing were done. I have found out that several functions wasn’t working correctly and fixed it. We have shell script for testing that compares results from our libc and libc that installed on user’s machine. It prints a diff output if test was failed. It also have other features, if you want you can check it by running test.sh --help by yourself.

Because of it I have found that several functions were wrong implemented. But now finally everything is working and strtok is correctly implemented!

Also this blog finally moved totally from my webpage, so we can move this site on different server just by cloning it from codeberg or tildegit

Hope you liked this post! If you would like to help us, contact me via email, xmpp or irc :)

tags: gru, olibc, liblinux

GRU Devlog 20 - olibc

December 12, 2021 — G1n

This week I was making olibc. I was implementing <string.h>. Also I was fixing liblinux to be able to include it without need to use full path in #include. I had several other issues with it and also fixed them.

My current goal is to implement <string.h> and after that I am planning to publish it. Currently most of funcs are implemented. Making strtok now but all other functions need locale.h and I don’t know yet how it will be implemented. But it is already cool that we have most of functions that should be in <string.h>!

Also we now have gru webpage on codeberg! Maybe next week I will move all devlogs to gru webpage so it will be easier to move.

Hope you liked this post! If you would like to help us, contact me via email, xmpp or irc :)

tags: gru, olibc, liblinux

GRU Devlog 19 - gic and several libs

December 05, 2021 — G1n

This week started with making gic (maybe name will be change). As I have written before it is going to be suckless ii clone. Also I started making girclib - simple C library for irc protocol. I think it will be published as separate project, because I would like to make it for both: client and server. I don’t yet how it will be done but we will see…

Then I thought that would be cool to have own libc, but have no knowledge how it speaks with OS. Then I understood that on linux it is working via syscalls. So started making liblinux - C library for linux syscalls. Using it we won’t need to use assembly a lot in our libc. Currently write and read syscalls are done and programmer can use it if passed -I, -L and -l flags to compiler. And it is already published! (check codeberg or tildegit)

After understanding how to create proper makefile with liblinux, I started making olibc. Currently it has very tiny number of features. But string.h is mostly done! I don’t know when I will fill that it will be ready enough to be published, but hope to have useful functions and test suit there till that time.

When olibc will be done enough I am going to start making C compiler (already have some code, but it is old and I not understand how it works, so need to be rewritten). Also I hope that we will have enough toolchain (or I will have enough knowledge to implement things that are not done faster) for our own Linux or BSD distribution. But that will be in future…

Hope you liked this post! If you would like to help us, contact me via email, xmpp or irc :)

tags: gru, gic, girclib, liblinux, olibc, libs