Tagged articles
7 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Aug 5, 2024 · Fundamentals

Static vs Dynamic Libraries: Save Disk Space and Simplify Updates

This article explains how programs are laid out in memory, walks through the compilation and linking stages, compares static and dynamic linking, and shows why dynamic libraries reduce disk and memory usage while making bug fixes easier.

CompilationStatic Linkingdynamic linking
0 likes · 8 min read
Static vs Dynamic Libraries: Save Disk Space and Simplify Updates
IT Services Circle
IT Services Circle
Jun 21, 2024 · Fundamentals

Understanding the Difference Between Static and Dynamic Libraries

This article explains how programs are laid out in memory, the roles of code, data, heap, and stack sections, and compares static linking, which bundles all code into the executable, with dynamic linking, which loads shared libraries at runtime to save disk and memory space.

CompilationStatic Linkingdynamic linking
0 likes · 9 min read
Understanding the Difference Between Static and Dynamic Libraries
AI Cyberspace
AI Cyberspace
Mar 7, 2023 · Fundamentals

Unlocking the Secrets of C Compilation: From Source to Executable

This article explains the fundamental concepts behind C language compilation, covering lexical, syntax, and semantic analysis, GCC options, file types, static and dynamic linking, ELF structure, and the loader process that turns source code into a runnable program.

CompilationELFLinker
0 likes · 23 min read
Unlocking the Secrets of C Compilation: From Source to Executable
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.

LinkerStatic Linkingdead strip
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.

LinkerStatic Linkingdead strip
0 likes · 31 min read
Understanding ld64 Static Linking on iOS: Architecture, Symbols, and Optimizations
Liangxu Linux
Liangxu Linux
May 9, 2021 · Fundamentals

Mastering Linux Library Linking: From Static Archives to Dynamic Loading

This tutorial walks through Linux library management, demonstrating how to build and inspect static (.a) and shared (.so) libraries, configure runtime search paths with LD_LIBRARY_PATH, customize linker behavior, and handle multi‑architecture library locations using practical command‑line examples.

LD_LIBRARY_PATHLinuxStatic Linking
0 likes · 11 min read
Mastering Linux Library Linking: From Static Archives to Dynamic Loading