The Year 2038 Problem

Is it the Y2K bug all over again?

Not Enough Storage If you know about The Year 2000 problem, also known as the Y2K problem, the Millennium bug, or the Y2K bug, then you know how bad it was. In short, only the last two digits of a year were used to store the years in computers and most electronic devices in the last century. But, as soon as we hit the year 2000, problems were anticipated, and arose, because many programs represented four-digit years with only the final two digits — making the year 2000 indistinguishable from 1900 or even 3000. [Read More]

Command-line flags to see the code at each stage of compilation

An illustrated tutorial on how to see the code at each stage

The Compilation Process in C/C++ Knowing how your code compiles can be very helpful when writing and debugging it. Compiling a C/C++ program is a multi-stage process. The complete compilation process in C/C++ can be split into four separate stages: Preprocessing Compilation Assembly Linking By using appropriate compiler options, we can stop this process at any stage. These options are passed as command line parameters. In the following examples, I will be using the C++ programming language to write the code and g++ compiler to compile it. [Read More]