C

clang: Compiler for C, C++, and Objective-C source files. Can be used as a drop-in replacement for GCC

"clang" is a compiler that supports the compilation of C, C++, and Objective-C source files. It is part of the…

nm : Command to list the symbols in object files.

nm displays the name list (symbol table of nlist structures) of each object file in the argument list. If you…

make: Nothing to be done for `default’

Most programs build with a simple, two-command sequence: $ ./configure $ make The configure program is a shell script that…

printk and console log level

printk() is to the kernel what printf() is to the userspace. Lines written by printk() can be displayed through the…

How to use execl (example included)

execl is one of the families of exec calls that act as a front end to the execve. The following…

Introduction to Array in C Programming

An array is a collection of similar data elements. These data elements have the same data type. The elements of…

C Programming Basics – Interview Questions

1. What is Token? A token is a building block of a program. A C program consists of various tokens…

Basics of C programming

Structure of C Program A C program is divided into different sections. There are six main sections to a basic…

Serial Port Programming: tcflush – TCIFLUSH,TCOFLUSH example

termios The termios module provides a POSIX-style interface for controlling the behavior of TTYs and other serial communication devices on…

Linux Device Driver example for dump_stack() to print the stack trace of module loading

One of the useful options in debugging is to print the call trace/stack trace. Linux kernel provides a function to…