C, C# and C++ Development

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

C, C# and C++ Articles

MIR: A lightweight JIT compiler project

MIR: A lightweight JIT compiler project

January 20, 2020

For the past three years, I’ve been participating in adding just-in-time compilation (JIT) to CRuby. Now, CRuby has the method-based just-in-time compiler (MJIT), which improves performance for non-input/output-bound programs. The most popular approach to implementing a JIT is to use LLVM or GCC JIT interfaces, like ORC or LibGCCJIT. GCC and LLVM developers spend huge effort to implement the optimizations reliably, effectively, and […]

Deploying debuginfod servers for your developers

Deploying debuginfod servers for your developers

December 17, 2019

In an earlier article, Aaron Merey introduced the new elfutils debuginfo-server daemon. With this software now integrated and released into elfutils 0.178 and coming to distros near you, it’s time to consider why and how to set up such a service for yourself and your team. Recall that debuginfod exists to distribute ELF or DWARF debugging information, […]

Extend C++ capabilities with LLVM STLExtras.h

Extend C++ capabilities with LLVM STLExtras.h

October 18, 2019

The LLVM compiler project provides a header file called STLExtras.h that extends the capabilities of C++ without any dependency on the rest of LLVM. In this article, we take a quick look at its basic functionality.

How to debug where a function returns using LLDB from the command line

How to debug where a function returns using LLDB from the command line

September 11, 2019

I often find myself in a situation when I want to know where a function returns. There’s no need to know the return value, as this may be the same for multiple code paths (e.g., nullptr if something went wrong). It is embarrassing, but I sometimes have put fprintf(stderr, "T1"); in my code just to […]

Report from July 2019 ISO C++ Meeting (Core Language)

Report from July 2019 ISO C++ Meeting (Core Language)

September 3, 2019

The summer 2019 C++ meeting was in Cologne, Germany, 10 years since our last meeting in Germany. As usual, Red Hat sent three of us to the meeting: I attended in the Core language working group (CWG), Jonathan Wakely in Library (LWG), and Thomas Rodgers in SG1 (parallelism and concurrency). At the end of the […]

Latest Comments

Waiting for Disqus…