"C" tag
Bit-fields

Joy of Programming: Understanding Bit-fields in C

One important feature that distinguishes C as a systems programming language is its support for bit-fields. Let us explore this feature in this column. In C, structure members can be specified with size…

Health check

Getting Started with SystemTap

If programming is an art, then debugging is even more so. To be a good programmer, one must master debugging. We have seen some good methods of kernel debugging, e.g., gdb, kgdb, kprobes,…

Loading...

Loading Library Files in C++

This article demonstrates how to load shared or dynamic library files in programs written in C++, which is not as straightforward as in C. Device drivers and library files have always been associated…

Way to the GUI Library

Spicing up the Console for Fun and Profit, Part 2

In the previous part of this article, we manipulated various aspects of the shell and terminals, like prompts, colours, cursor movements, etc, using escape sequences and utilities like tput. Now let’s move to…

Dennis MacAlistair Ritchie

Joy of Programming: The Legacy of C

Dennis Ritchie died on the 8th of October 2011, at the age of 70. His lasting contributions to computing include creating the C language, and co-creating the UNIX operating system. In his memory,…

Loop optimisation

CodeSport (November 2011)

In this month’s column, we will continue our discussion on some of the common loop optimisations performed by the compiler. In last month’s column, I had presented a coding snippet (shown below) and…

The toolbox I swear by...

GNU Binutils: A Collection of Binary Tools

With years of experience as a systems programming engineer, I’ve realised that to be a great artist of programming, you must understand the basics of source code, output files, linkers etc. So let’s…

Visibility?

Joy of Programming: Scope, Lifetime and Visibility in C

Often, programmers confuse the scope, lifetime and visibility of variables. So I’ll cover these three important concepts in this month’s column. Whenever you declare a variable, you determine its scope, lifetime and visibility….

Let's optimise a bit...

CodeSport (October 2011)

In this month’s column, let us focus our attention on some of the common compiler optimisations, and on how to write code that can be well optimised by the compiler. In last month’s…

This is how we get in...

Modify-function-return-value hack! — Part 2

In my previous article on this topic, we discussed some guidelines on how to write a secure application in C. The article focused on functions defined in the application itself. Now, we will…

All published articles are released under Creative Commons Attribution-NonCommercial 3.0 Unported License, unless otherwise noted.
Open Source For You is powered by WordPress, which gladly sits on top of a CentOS-based LEMP stack.

Creative Commons License.