Tagged articles
12 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Jul 28, 2024 · Fundamentals

Why Static Libraries Waste Space and How Dynamic Linking Saves It

This article explains the memory layout of a program, the compilation and linking processes, and compares static and dynamic libraries, highlighting how static linking duplicates code while dynamic linking shares libraries to reduce disk and memory usage.

CompilationDynamic LibraryLinker
0 likes · 7 min read
Why Static Libraries Waste Space and How Dynamic Linking Saves It
JD Cloud Developers
JD Cloud Developers
May 22, 2024 · Mobile Development

How I Reduced a Rust Android Dynamic Library from 495KB to 95KB

This article explains how the size of a Rust‑based Android dynamic library, initially 495 KB, was dramatically reduced to 95 KB through compiler optimization levels, link‑time optimization, panic handling changes, stripping unused sections, and custom linker scripts, providing practical tips for mobile developers.

AndroidDynamic LibraryLTO
0 likes · 11 min read
How I Reduced a Rust Android Dynamic Library from 495KB to 95KB
Liangxu Linux
Liangxu Linux
Dec 25, 2023 · Fundamentals

Mastering Static and Dynamic Libraries on Linux: A Step‑by‑Step Guide

This article explains why reusable code should be packaged into libraries, compares static (.a) and dynamic (.so) libraries on Linux, and provides detailed commands, code examples, and troubleshooting steps for building and linking both types of libraries in C++ projects.

C++CompilationDynamic Library
0 likes · 10 min read
Mastering Static and Dynamic Libraries on Linux: A Step‑by‑Step Guide
Liangxu Linux
Liangxu Linux
Jun 26, 2022 · Fundamentals

Master Linux Basic I/O: Files, Descriptors, System Calls and Libraries

This guide explains Linux file I/O fundamentals, covering file concepts, standard streams, system calls like open and dup2, file descriptor allocation, redirection, the FILE structure, inode layout, hard and soft links, and the creation and usage of static and dynamic libraries, all illustrated with code snippets and diagrams.

Dynamic LibraryLinuxfile I/O
0 likes · 22 min read
Master Linux Basic I/O: Files, Descriptors, System Calls and Libraries
Architect
Architect
Mar 29, 2022 · Backend Development

Design and Implementation of Baidu's Product Promotion System

This article details the architecture, core services, user interfaces, and technical challenges of Baidu's product promotion system, explaining the roles of traffic owners and advertisers, the CPS billing model, dynamic library reporting, and database batch‑write optimizations for high‑throughput e‑commerce scenarios.

Backend ArchitectureBaiduCPS
0 likes · 17 min read
Design and Implementation of Baidu's Product Promotion System
Python Programming Learning Circle
Python Programming Learning Circle
Dec 27, 2021 · Fundamentals

How to Call C/C++ Code from Python Using ctypes

This article explains how to improve Python performance by embedding C or C++ code: write the source, compile it into a shared library, and invoke its functions from Python with the ctypes module, providing step‑by‑step commands and example code for both C functions and C++ classes.

CDynamic LibraryInterop
0 likes · 4 min read
How to Call C/C++ Code from Python Using ctypes
Baidu Geek Talk
Baidu Geek Talk
Jul 7, 2021 · Backend Development

Design and Implementation of Baidu's Commodity Promotion System

The article details Baidu’s 2020‑built commodity promotion system for Baijiahao and live‑stream e‑commerce, linking merchants with authors/streamers through CPS billing, three user interfaces and five core services, and highlights technical choices such as dynamic‑library tracking, asynchronous batch writes, and a high‑cohesion, low‑coupling architecture requiring cross‑team collaboration.

Baidu ecosystemBatch ProcessingCPS
0 likes · 15 min read
Design and Implementation of Baidu's Commodity Promotion System
Liangxu Linux
Liangxu Linux
Jun 16, 2020 · Backend Development

Unlocking GCC: History, Features, and Mastering Its Compilation Options

This article provides a comprehensive overview of the GNU Compiler Collection (GCC), covering its origins, evolution, core compilation stages, essential command‑line options, and advanced capabilities such as building shared and static libraries and mixed‑language projects.

C languageDynamic LibraryLinux
0 likes · 7 min read
Unlocking GCC: History, Features, and Mastering Its Compilation Options
Liangxu Linux
Liangxu Linux
Jun 13, 2018 · Fundamentals

Master Enterprise-Scale Makefiles: Versioning, Libraries, and Build Automation

This tutorial presents a complete enterprise‑level Makefile example, detailing version numbering, dynamic library integration, macro definitions, include paths, compilation flags, output directory handling, and clean targets, while also showing the associated source code layout and how to retrieve the full project from the public account.

Build AutomationCDynamic Library
0 likes · 6 min read
Master Enterprise-Scale Makefiles: Versioning, Libraries, and Build Automation