How The C++ Compiler Works?

After a while, I think it’s time to re-cap C++. So in this post, I will talk about, How a simple C++ source file works The starting point of the C++ program Libraries The compiler and how it works As I mentioned above, let’s write a simple C++ code first. Then let’s discuss how it […]

Android Stack Architecture

As I done so many Android development project, I thought its better to take a break and talk about Android Development with my experience. So this will be a series of posts about Android Development from OS development to Application development. As the beginning post, I think the best place to start this post series […]

Android NDK – passing complex data types

Hi all, today I’m going to talk about how to use JNI in android very easily. For the examples, I have used, I am passing data between Java & C. Before we start let me tell you what is JNI, JNI is Java Native Interface to communicate Java and C/ C++ in your java program. […]

JSON for c++ (create JSON objects, read write json files)

  Hello everyone, today I’m going to talk about an awesome c++ library which I had used often to save data in files much more effectively and efficiency. You can find the JSON library in this github repo. You will basically need json.hpp file for your C++ project to do the bellow described stuff. Before […]

Linux Device Drivers | Part 4 | Read Write from a driver

I think you are now familiar with insmod and rmmod. Now let’s try to make a little complex driver. A driver which can write on memory and read from memory. For this we need to insmod the driver, then open the driver and read/write. After the operations are finished we need to close the driver. […]

Linux Device Drivers | Part 3 | Hello World

Let’s build our first simple driver. The HelloWorld driver. This is the code of the HelloWorld driver. This is the .C code for the HelloWorld driver. When you insmod the driver, “Hello World!” will print. and when you rmmod the driver, “Good Bye” will print. Since this is a Linux driver file or Kernel module, […]

Linux Device Drivers | Part 2 | Understanding Linux

  Splitting the kernel Alright, we know that the Kernel is the core of the OS. So lets see what are the things the Kernel do for the OS. 01. Process Management The kernel will manage all processors which happening in the OS. 02. Memory Management  The Linux Kernel has a ability to process on […]

Linux Device Drivers | Part 1 | Introduction

A device is an impotent part of our day-to-day life. For example, think about a printer, it can print your documents. But, without a printer driver, it does not work properly. So, let’s talk about how to build your own driver for Linux. Introduction The advantage of free operating systems is, anyone can do anything […]