Tagged articles
Clang
18 articles · Page 1 of 1
This article outlines six fundamental differences between Unix and Linux, covering shell standards, command options, make implementations, C compilers, GNU vs Linux distinctions, and the UNIX trademark, with practical guidance for writing portable code.
BSDClangGCC
0 likes · 6 min read

The article explains how clang can dump the exact vtable layout for a class with multiple inheritance, revealing that a single vtable is actually a virtual table group composed of a primary and secondary table, each containing its own offset_to_top, RTTI entries, function slots and thunks, and shows why new virtual functions appear only in the primary part while the secondary part holds adjusted thunks for overridden base functions.
C++ClangItanium ABI
0 likes · 21 min read

This article compares SonarQube, Infer, and Clang Static Analyzer for iOS development, detailing their language support, strengths, weaknesses, integration with CI/CD pipelines, and practical usage tips to help teams select the most suitable static analysis solution.
CI/CDClangInfer
0 likes · 26 min read

This article compares popular static‑code analysis tools for iOS—including SonarQube, Infer, and Clang Static Analyzer—detailing their language support, features, pros and cons, integration methods, and practical usage tips, helping developers select the most suitable solution for their projects.
ClangInferSonarQube
0 likes · 30 min read

This guide walks you through installing and configuring four major C++ development tools—Visual Studio, GCC, Clang, and CMake—covering platform-specific steps for Windows, Linux, and macOS, and highlights each tool’s advantages to help you choose the right environment for your projects.
C++CMakeClang
0 likes · 6 min read

This article dissects iOS blocks, explaining their struct‑based memory layout, the three block types, how they are transformed into C++ code with clang, and the impact of capturing variables—including value, static, global, and object references—on block behavior and lifecycle.
BlocksC++Clang
0 likes · 12 min read

This article introduces five widely used, free C/C++ compilers—GCC, Clang/LLVM, Tiny C Compiler, Microsoft Visual C++, and Digital Mars—detailing their main features, platform support, typical usage commands, and ideal application scenarios for developers seeking lightweight or powerful compilation tools.
C++ClangCompiler
0 likes · 12 min read

Mach‑O is the macOS and iOS binary format whose header, load commands, and __TEXT/__DATA sections define executable, library, and symbol information, enabling developers to understand loading, linking, and startup performance, and to implement custom initialization hooks or modular launch tasks via custom data sections.
Binary FormatClangMach-O
0 likes · 10 min read

The Linux kernel removed Intel ICC compiler support in the 6.3 release, citing the compiler's deprecation, the shift to LLVM/Clang‑based DPC++, and the continued dominance of GCC and Clang, resulting in a cleaner codebase without any functional loss.
ClangCompilerGCC
0 likes · 3 min read

This practical guide walks iOS developers through installing OCLint, generating a compilation database, creating custom Clang‑AST rules, optimizing analysis runtime with parallel processing, and interpreting results that uncovered hundreds of performance‑critical issues, demonstrating how static analysis can dramatically improve startup speed.
ClangOCLintautomation
0 likes · 19 min read

The article presents a technique for static function hooking in Objective‑C by writing a custom LLVM Pass that modifies the intermediate representation during compilation to inject stub calls at chosen points inside a function, and details the required LLVM setup, Pass implementation, Clang integration, and Xcode configuration.
ClangIR ModificationLLVM
0 likes · 11 min read

This article explores the challenges of enabling Swift support with Clang modules in Xcode, explains key build settings, debugging options, and the underlying implementation of Clang modules, providing practical guidance and code examples for developers.
ClangModulesSWIFT
0 likes · 10 min read

The article describes how enabling the aggressive size‑optimisation flag -Oz in Clang caused a video component to create numerous GLFramebuffer and CVPixelBuffer objects, leading to OOM crashes, and explains the underlying ARC and Machine Outliner interactions that exposed a compiler bug which was later fixed in LLVM.
ClangLLVMmachine-outliner
0 likes · 11 min read

This article explains the iOS app launch lifecycle—including cold and hot starts—details launch‑time optimizations before and after the main function, introduces the fundamentals of virtual memory and ASLR, and provides a practical guide to binary reordering using order files and Clang instrumentation.
App LaunchClangcold start
0 likes · 15 min read

This article details a comprehensive set of practical techniques—ranging from Xcode project configuration tweaks and CocoaPods packaging to CCache, distcc, hardware tricks, PCH usage, and deep Clang/LLVM analysis—that together reduced a massive iOS build from over 27 minutes to under 10 minutes.
C++ClangLLVM
0 likes · 20 min read

Hades is a self‑developed static‑analysis framework for Meituan‑Dianping’s large‑scale iOS codebases that leverages Clang/LLVM to build a high‑level semantic model, enabling global, incremental checks, custom lint tools, CI integration, and efficient code‑quality maintenance across massive projects.
ASTClangframework
0 likes · 19 min read

This article introduces the YouCompleteMe Vim plugin, explains its semantic completion advantages over traditional text‑based methods, lists supported languages, shows installation and compilation steps for macOS and Linux, and provides configuration tips to achieve IDE‑like code assistance within Vim.
C++Clangcode completion
0 likes · 14 min read

Chris Lattner, the original creator of LLVM and Clang, now leads Apple’s Developer Tools division and has driven the development of Swift since 2010, integrating his compiler expertise, fostering interactive tools like Xcode Playgrounds, and shaping modern programming education.
ClangCompilerLLVM
0 likes · 6 min read
