Now that you’ve optimized your applications (programs) and archives (static libraries), we’ll discuss how to optimize your shared libraries. Unlike archives which are used only during link time on the host machine, shared libraries reside on the target’s file system, and cannot be reduced using the the same techniques. Furthermore, when you create a [...]
The tips and information in part 1 are too general and common, and it is highly likely that you’ve already implemented them. In this article, I will show how we can reduce the size of static libraries (archives) and applications (programs) by specifying advanced compilation flags which utilize the special properties of archives and applications.
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java and Ada, as well as libraries for these languages. The focus here is on the C language, which is the most common programming language for RT Embedded projects and particularly in Linux.
You probably know that, but I will [...]