Tag

clang

1 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Jan 31, 2024 · Fundamentals

Understanding Mach-O: Structure, Definitions, and Practical Applications

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 FormatMach-OStartup Performance
0 likes · 10 min read
Understanding Mach-O: Structure, Definitions, and Practical Applications
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Nov 7, 2022 · Mobile Development

Practical Guide to Using OCLint for Static Code Analysis in iOS Projects

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.

AutomationOCLintclang
0 likes · 19 min read
Practical Guide to Using OCLint for Static Code Analysis in iOS Projects
Tencent Cloud Developer
Tencent Cloud Developer
Sep 5, 2022 · Fundamentals

Static Function Hooking in Objective-C Using LLVM Pass

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.

Compilation ProcessFunction HookingIR Modification
0 likes · 11 min read
Static Function Hooking in Objective-C Using LLVM Pass
ByteDance Terminal Technology
ByteDance Terminal Technology
Jul 28, 2021 · Backend Development

Investigating a Clang -Oz Optimization Bug that Triggers Memory Bloat in a Video Component

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.

ARCLLVMOptimization
0 likes · 11 min read
Investigating a Clang -Oz Optimization Bug that Triggers Memory Bloat in a Video Component
Sohu Tech Products
Sohu Tech Products
Jun 30, 2021 · Mobile Development

iOS App Launch Process, Optimization Strategies, and Binary Reordering Techniques

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 LaunchBinary ReorderingCold Start
0 likes · 15 min read
iOS App Launch Process, Optimization Strategies, and Binary Reordering Techniques
Baidu Tech Salon
Baidu Tech Salon
Jun 5, 2014 · Fundamentals

Chris Lattner: LLVM, Clang, and the Creation of Swift

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.

CompilerLLVMSwift
0 likes · 6 min read
Chris Lattner: LLVM, Clang, and the Creation of Swift