Tag

objc

1 views collected around this technical thread.

ByteDance Terminal Technology
ByteDance Terminal Technology
Dec 28, 2022 · Mobile Development

Analyzing ARC Multithreaded Assignment Crashes in iOS Applications

This article examines how ARC‑managed object assignments can produce wild pointers and EXC_BAD_ACCESS crashes in multithreaded iOS apps, explains the underlying reference‑counting steps, demonstrates reproducible demo scenarios, and offers practical mitigation strategies for developers.

ArcMultithreadingcrash
0 likes · 14 min read
Analyzing ARC Multithreaded Assignment Crashes in iOS Applications
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Oct 27, 2021 · Fundamentals

Understanding ld64 Static Linking in iOS: Architecture, Symbol Processing, and Optimization

This article provides an in‑depth technical overview of the ld64 static linker used in iOS builds, explaining its architecture, how it parses .o, .a and .dylib files, manages symbols, atoms and fixups, resolves undefined references, performs dead‑code stripping, and generates the final executable.

dead stripiOSld64
0 likes · 30 min read
Understanding ld64 Static Linking in iOS: Architecture, Symbol Processing, and Optimization
ByteDance Terminal Technology
ByteDance Terminal Technology
Sep 23, 2021 · Fundamentals

Understanding ld64 Static Linking on iOS: Architecture, Symbols, and Optimizations

This comprehensive guide explains the inner workings of Apple's ld64 static linker for iOS, covering its historical background, core concepts such as objects, archives, symbols, and fixups, command‑line parameters, execution phases, symbol resolution, dead‑code stripping, optimization passes, output generation, auto‑linking, the -ObjC flag, debugging options, and LTO support.

dead stripiOSld64
0 likes · 31 min read
Understanding ld64 Static Linking on iOS: Architecture, Symbols, and Optimizations
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.

ArcLLVMclang
0 likes · 11 min read
Investigating a Clang -Oz Optimization Bug that Triggers Memory Bloat in a Video Component