Suraj Kareppagol·Sep 17container_of: Clever Macros #1container_of is a clever macro that helps you calculate the base address of a structure when you have a pointer to one of its member…
Suraj Kareppagol·Sep 17Understanding C++ Atomics: From Memory Ordering to a Lock-Free QueueMotivation
Suraj Kareppagol·Jun 6The missing manual: Introduction to makeMake is a build tool. It is a program created to automate the build process. Note that it was not created only to use with C or C++. In…
Suraj Kareppagol·May 20Type-aware macros in CApparently C has type-aware macros. Yes, you read it correctly. But what exactly are type-aware macros?
Suraj Kareppagol·May 9Name mangling scheme in C++Recently I explored the usage of extern "C" feature in C++. This allows us to tell the compiler not to mangle the names of symbols such…
Suraj Kareppagol·May 4C Library for Circuit SimulationI recently wrote a very small C library for circuit simulation and I am writing this post to explain how this library is built, how it…
Suraj Kareppagol·May 1QEMU: The BeginningsQEMU (Quick Emulator) is an amazing piece of software that allows to run multiple different guest OS on top of host OS. But when using it…
Suraj Kareppagol·Apr 29extern “C”: Use C++ with CI recently started working with QEMU and there was a requirement for me to use gRPC. If you know gRPC, you would know that the protoc…A response icon1A response icon1
Suraj Kareppagol·Mar 30, 2024Building Linux Commands From Scratch 🐧 clear CommandHere i am building clear command from scratch in C/C++. The clear command is used to clear the terminal screen.