C, C# and C++ Development

Everything about C and its extensions, C++ and C#.

C, C# and C++ Articles

The joys and perils of aliasing in C and C++, Part 2

The joys and perils of aliasing in C and C++, Part 2

June 3, 2020

In the previous article, I discussed the benefits of C and C++ language restrictions in optimized code. In this second half, I present a variety of programming language exemptions and compiler extensions that developers can use to get around aliasing restrictions more or less safely. I will also discuss the common pitfalls of aliasing, both […]

The joys and perils of C and C++ aliasing, Part 1

The joys and perils of C and C++ aliasing, Part 1

June 2, 2020

In C, C++, and some other programming languages, the term aliasing refers to a situation where two different expressions or symbols refer to the same object. When references access that object in different ways—as both reads and stores—there are consequences for the order in which these mixed accesses can happen. The value that is stored […]

Red Hat Software Collections 3.5 brings updates for Red Hat Enterprise Linux 7

Red Hat Software Collections 3.5 brings updates for Red Hat Enterprise Linux 7

May 29, 2020

Red Hat Software Collections 3.5 and Red Hat Developer Toolset 9.1 are now available for Red Hat Enterprise Linux 7. Here’s what that means for developers. Red Hat Software Collections (RHSCL) is how we distribute the latest stable versions of various runtimes and languages through Red Hat Enterprise Linux (RHEL) 7, with some components available […]

Stack clash mitigation in GCC, Part 3

Stack clash mitigation in GCC, Part 3

May 22, 2020

In previous posts, Stack Clash Mitigation in GCC — Background and Stack Clash mitigation in GCC: Why -fstack-check is not the answer, I hopefully showed the basics of how stack clash attacks are structured and why GCC’s existing -fstack-check mechanism is insufficient for protection. So, what should we do? Clearly we want something similar to -fstack-check, […]

Optimizing iptables-nft large ruleset performance in user space

Optimizing iptables-nft large ruleset performance in user space

April 27, 2020

When examining Linux firewall performance, there is a second aspect to packet processing—namely, the cost of firewall setup manipulations. In a world of containers, distinct network nodes spawn quickly enough for firewall ruleset adjustment delay to become a significant factor. At the same time, rulesets tend to become huge given the number of containers even […]

Report from the February 2020 ISO C++ meeting (Core Language Working Group)

Report from the February 2020 ISO C++ meeting (Core Language Working Group)

April 23, 2020

The first International Organization for Standardization (ISO) C++ meeting of 2020 happened in Prague, Czechia. It was our first time meeting in Prague, though I’ve been there a few times for the GNU Tools Cauldron. Two of us from Red Hat attended: Jonathan Wakely serves on the ISO C++ Standards Committee Library Working Group (LWG), […]

Latest Comments

Waiting for Disqus…