C++

Featured image for: SCTP over UDP in the Linux kernel.
Article

Frame pointers: Untangling the unwinding

Guinevere Larsen

Explore how frame pointers can be used to unwind Linux kernel stack traces and examine different ways to obtain a backtrace, along with their pros and cons.

Featured image for: Value range propagation in GCC with Project Ranger.
Article

New C++ features in GCC 13

Marek Polacek

Get an overview of what's new in GCC 13, the latest GNU Compiler Collection release, including bug fixes and new features in the C++ front end.

Featured image for: Value range propagation in GCC with Project Ranger.
Article

New C features in GCC 13

Marek Polacek

The GNU Compiler Collection 13 release implemented a number of interesting features in its C front-end. This article summarizes the most interesting ones.

Featured image for: Value range propagation in GCC with Project Ranger.
Article

A leaner <iostream> in libstdc++ for GCC 13

Patrick Palka

Learn about an upcoming change in GCC 13's libstdc++ that reduces executable size and improves startup times for C++ programs that use the <iostream> header.

Featured image for: Instant replay: Debugging C and C++ programs with rr.
Article

Debugging binaries invoked from scripts with GDB

Kevin Buettner

It's very common on Linux for a binary application to be invoked by a shell script. This article explains how you can debug such binaries using GDB.

C and C++ logo
Article

Implementing C++20 atomic waiting in libstdc++

Thomas Rodgers

The C++ standard library gained some new concurrency features with C++20 . This article will cover the implementation approach for atomic wait/notify, as these are basis operations required to implement the remaining coordination primitives introduced with C++20.

C and C++ logo
Article

How to categorize C programs by behavior

Martin Sebor

Could your perfectly running program blow up someday? Learn different types of behavior in the standard and what helps make a correct C or C++ program.

Article

An introduction to debug events: Learn how to use breakpoints

Keith Seitz

Breakpoints are the most commonly used (and underused) debugging event in a debugger. This article discusses the breakpoint features that GDB offers developers, and shows how to use breakpoints effectively.