C++

Featured image for Red Hat article roundup
Article

Red Hat Developer roundup: Best of April 2022

Red Hat Developer Editorial Team

A trip through Red Hat Developer's content for the month, with articles on GCC 12, Java in containers, Red Hat's SSO technology, and much more.

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

New C++ features in GCC 12

Marek Polacek

Version 12 of GCC implements much of the recent C++ standard, allows a number of previously prohibited constructs, and fixes some problematic behaviors.

Featured image for "Get started with clang-tidy in Red Hat Enterprise Linux."
Article

Enforce code consistency with clang-format

Serge Guelton

Get started with clang-format, an LLVM tool that you can use to set and maintain a consistent code style in your open source C and C++ projects.

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

Prevent Trojan Source attacks with GCC 12

David Malcolm

Discover how Red Hat protects GCC 12 code from Trojan Source attacks. Learn how we defend our customers against this recent software vulnerability.

Featured image for a Linux topic.
Article

What's new in Libabigail 2.0

Dodji Seketeli

Find out what's new in Libabigail 2.0, including updates to the symbol table reader component, ABIXML format, and moving to the Apache 2 license.

Featured image for: Mostly harmless: An account of pseudo-normal floating point numbers.
Article

Why glibc 2.34 removed libpthread

Florian Weimer

Consolidation of libraries in the GNU C library, glibc, means more error-free builds, but there are consequences for developers and system administrators.

Featured image for C/C++ language topics.
Article

Printf-style debugging using GDB, Part 3

Kevin Buettner

Complete your introduction to using virtual print statements in the GDB debugger with tips for running program functions and automating GDB behavior.

Featured image for Best of RHEL
Article

Red Hat Enterprise Linux: The best of 2021

Red Hat Developer Editorial Team

Our one-stop guide to all the best RHEL content we published this year, featuring C# 9, Go on Linux, Universal Base Image, Podman, and debugging tips.

RHEL 9 Beta Release Feature Image
Article

Red Hat Enterprise Linux 9 Beta is here

Don Pinto

RHEL 9 Beta features GCC 11, glibc 2.34, updated compilers, enhanced application streams, Python 3.9, and more. Plus, it's built from CentOS Stream!

Featured image for Valgrind.
Article

How to debug memory errors with Valgrind and GDB

Alexandra Petlanova Hajkova

Discover little-known Valgrind and GDB commands that can help you resolve memory leaks, buffer overflows, and similar bugs in your C and C++ code.

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

A beginner's attempt at optimizing GCC

Arjun Shankar

Implementing a minor tree optimization was a great way to get started with GCC internals while contributing to the community.

Featured image for C-language topics.
Article

Printf-style debugging using GDB, Part 2

Kevin Buettner

Learn how to use virtual print statements in the GDB debugger. This second article in the series shows how to save commands and output for later use.