Console Graphics

Do you ever miss the good-old child times where you get BASIC or LOGO, and a screen for whatever you like to draw?  Here is how you can do it with SVGAlib.  In addition to FreeBSD, the code can be run elsewhere, I mean hmm...  So now you can program without even using X11. Installing … Continue reading Console Graphics


Minimal Init

Here is a minimal init program that runs after the kernel boot.  Well, it does nothing except printing a hello world statement.  The system kernel panics once the program finishes. The program working principle is to first mount the device file system, with the nmount(2) system call.  Then, print to the "/dev/console" and quit.  Before … Continue reading Minimal Init

Basic C Programming on FreeBSD

In this article, I share some programming techniques with the C programming language on FreeBSD.  As of FreeBSD 11.0, the basic installation comes with clang(1) tools for programming in C, C++, and Obj-C languages. When I was a teaching assistant, I used to give my students a crash course in C programming.  They already know C++ … Continue reading Basic C Programming on FreeBSD