The “shell” built-in function supported by GNU Make can be used to get the list of C source files in a directory. Then a list of corresponding object files can be created by replacing the file extension in the file list. Read Full Article.
Archive for the 'GNU Tools' Category
GNU Make – How to compile all c files in present directory
February 26, 2009GNU Make – How to compile all c files in present directory
December 5, 2008The “shell” built-in function supported by GNU Make can be used to get the list of C source files in a directory.
Read Full Aticle
Remove Unused/Dead Functions From ELF Binary
July 10, 2008You can optimize the size of ELF executable by removing unused or dead functions. There are two options “-ffunction-sections -Wl,–gc-sections” to do that.
Find more details in my article here:
http://www.techpulp.com/articles/c/tip-elf-strip-unused-functions.php
ELF Binary Size Optimization
July 10, 2008You can use some optimization flags, linker flags and ‘strip‘ tool to reduce the size of target ELF binary.
For more details read my article here:
http://www.techpulp.com/articles/c/art-elf-size-optimization.php
Examine Stack Frame of a Running Process
July 10, 2008You can use ‘pstack‘ command view the stack frame of a running process.
For more details read this:
http://www.techpulp.com/articles/c/tip-stack-of-running-process.php