Tagged articles
8 articles
Page 1 of 1
Alipay Experience Technology
Alipay Experience Technology
May 7, 2025 · Mobile Development

How to Shrink Kotlin/Native Binary Size for Mobile Apps: Practical Optimizations

This article details the Alipay Tech team's systematic approach to reducing Kotlin/Native binary size for Android, iOS, and HarmonyOS by tuning compiler parameters, leveraging LLVM optimization passes, and applying fine‑grained export and dead‑code‑elimination strategies, complete with test methods and measurable results.

Compiler FlagsDCEKotlin Multiplatform
0 likes · 14 min read
How to Shrink Kotlin/Native Binary Size for Mobile Apps: Practical Optimizations
Radish, Keep Going!
Radish, Keep Going!
Jan 20, 2025 · Backend Development

How to Slash Go Binary Size by Up to 80%: Compiler Flags & UPX

Discover practical techniques to dramatically reduce the size of Go executables—starting with stripping debug symbols using ldflags, then applying UPX compression with optimal settings, and combining both methods to shrink a 6.5 MB binary down to around 1.4 MB, saving up to 80% space.

Compiler Flagsbinary sizeexecutable compression
0 likes · 7 min read
How to Slash Go Binary Size by Up to 80%: Compiler Flags & UPX
360 Tech Engineering
360 Tech Engineering
Nov 16, 2020 · Backend Development

Understanding Go's Escape Analysis and Its Impact on Memory Allocation

Go's escape analysis determines whether variables are allocated on the stack or heap, influencing garbage collection overhead; this guide explains the analysis principles, shows how to enable compiler logs, and demonstrates through multiple code examples how different patterns cause or avoid variable escape.

Compiler FlagsEscape AnalysisGo
0 likes · 8 min read
Understanding Go's Escape Analysis and Its Impact on Memory Allocation
Architects' Tech Alliance
Architects' Tech Alliance
Jan 21, 2020 · Backend Development

How to Seamlessly Migrate X86 C/C++ Code to Aarch64 TaiShan Servers

This guide details the migration of X86‑compiled C/C++ applications to Huawei TaiShan Aarch64 servers, covering language differences, required compiler versions, common build‑time errors, assembly rewrites, memory‑ordering quirks, floating‑point precision issues, and specific GCC flags to achieve correct and performant binaries.

Compiler Flagsaarch64assembly rewrite
0 likes · 14 min read
How to Seamlessly Migrate X86 C/C++ Code to Aarch64 TaiShan Servers