Difference between API and ABI

I am new to Linux system programming and I came across API and ABI while reading Linux System Programming. Definition of API: An API defines the interfaces by which one piece of software communicates with another at the source level. Definition of ABI: Whereas an API defines a source interface, an ABI defines the low-level … Read more

Does the C++ standard allow for an uninitialized bool to crash a program?

I know that an “undefined behaviour” in C++ can pretty much allow the compiler to do anything it wants. However, I had a crash that surprised me, as I assumed that the code was safe enough. In this case, the real problem happened only on a specific platform using a specific compiler, and only if … Read more