Feb 16 · 22 min read · Introduction C++ has been around for over 41 years. Over the years, many features have been added, and one of the most powerful is compile-time computation. C++ actually had this capability before its standardization in 1998, particularly after templ...
Join discussion
Jan 26 · 4 min read · Introduction LLVM is an open-source, modular compiler infrastructure, and Clang is its C++ front-end. In this project, I use LLVM to build a custom Clang compiler that introduces a new C++ builtin -counting the number of fields in a C++ struct / clas...
Join discussionDec 26, 2025 · 3 min read · Intro I write C++ code almost every day, be it for work or for fun (yes, we exist). While I have great tools for benchmarking runtime performance in my toolbox, I never really tried "benchmarking compile times". With build times continuously creeping...
Join discussion
Nov 18, 2025 · 5 min read · Introdução Saudações todo mundo, saúde, saúde todo mundo! Neste artigo, vou explicar como desenvolvi um programa em C (usando a biblioteca gráfica, a minilibx), para calcular, renderizar e explorar fractais. O projecto foi feito inteiramente em C; En...
Join discussion
Mar 7, 2025 · 5 min read · This guide will explain you how to install Clang++ and Make on Windows: specifically, we will discuss the MinGW-w64 project. In my experience, getting these programs to run natively on Windows is faster than calling them from within emulation layers ...
Join discussion
Dec 17, 2024 · 11 min read · The C standard allows the programmer to define new types, including enumerated types—or "enums"—that improve program readability and type safety. This article explores the specification for enumerated types, the compiler options that improve enum typ...
Join discussion
Jun 21, 2024 · 2 min read · I need to post more updates on my progress. I learned how to use CMake's install features to create an installation folder with header files and dynamic libraries. It took me a while to figure out because CMake's documentation can be unclear at times...
Join discussion
Jul 7, 2023 · 1 min read · C2Rust和GCC和Clang的关系 Clang 是一个基于 LLVM 架构的 C/C++/Objective-C 编译器,能生成高质量的代码并支持多种现代编程语言特性。 这意味着 C2Rust 并不直接使用 GCC 或 Clang 进行编译,而是利用了 Clang 的一些能力来解析和理解 C 代码,从而能够将其转换为 Rust 代码。 在实际使用 C2Rust 时,用户首先需要有一个预先编译的 C 项目。C2Rust 接下来会使用 Clang 来分析这个项目的源代码,生成抽象语法树(AST)...
Join discussion