Tuesday, April 04, 2006

Tips and Tricks using the GCC, CPP and Binutils

For the http://www.lug-salem.de/ I am preparing a short presentation for showing how to use the gcc and cpp and so for collecting information.

the general idea is to specialize the information more and more, adding in more constants.
By dealing with the output of the preprocessor we can get a concise overview of the source code in one file. By looking at the assembler, we can see all types of information that is otherwise hard to find.

Here is the outline:

1. unpacking the project

looking through the files available

2. configuration and debugging
m4, shell, sed, grep,test and friends
aclocale, automake, autoconf

3. modification of the makefiles,
turning on the verbose mode and save temps in CFLAGS
creating of new rules

4. CPP and various options
DEPENDANCIES

4. compilation with the gcc, what are the passes.

4. What dump options are available
I files
S files
tree files
RTL
flow graphs
MAP FILES

5. binutils NM, OBJDUMP, ReadElf for getting at the results
Finding out the sizes of objects
finding names of functions out of the addresses
unmangling names

6. using and scripting GDB for debugging and data collection

7. Dealing with core dumps
stopping the command immediatly with a kill sig stop
debugging without debug information (map files and objdump)
libbacktrace
mapping OBJ files to ASM

8. Doxygen and Co

9. GraphViz

10. Profiling, gprof, cache grid, memory profiles, strace, oprofile

3 Comments:

At 5:21 PM, Blogger Adi said...

Thank you for sharing.
Oes Tsetnoc | Mengembalikan Jati Diri Bangsa | Kenali dan Kunjungi Objek Wisata di Pandeglang | Oes tsetnoc | Online Marketing | Electronics Gadgets | etips solution | Travel Guide

 
At 8:36 AM, Blogger Zheng junxai5 said...

zhengjx20160614
replica rolex watches
louis vuitton purses
ray ban sunglasses outlet
michael kors bags
hollister clothing store
toms wedges
michael kors outlet clearance
toms wedges
ralph lauren polo
cheap toms shoes
beats by dr dre
kd 8
coach outlet
coach factory outlet online
cheap jerseys
christian louboutin outlet
gucci outlet
tory burch flats
michael kors outlet
michael kors outlet
oakley sunglasses
air max
air jordan femme
nike store uk
nike trainers sale
basketball shoes
marc jacobs outlet
louis vuitton outlet online
abercrombie outlet
air max 95
louis vuitton purses
kate spade handbags
ralph lauren sale
coach outlet
louis vuitton outlet
michael kors outlet online
ralph lauren
supra for sale
hollister clothing
louis vuitton outlet

 
At 11:54 AM, Blogger Fangyaya said...

michael kors outlet online
michael kors canada outlet
mont blanc
coach outlet
ray ban sunglasses
christian louboutin outlet
coach factory outlet
nike air max
adidas nmd
adidas yeezy
michael kors outlet
cheap jordan shoes
tiffany outlet
coach outlet online
adidas trainers
hermes bags
louis vuitton bags
longchamp bags
ray ban sunglasses outlet
michael kors outlet clearance
michael kors handbags
adidas superstar
michael kors
lebron james shoes
coach factory outlet online
louis vuitton outlet
christian louboutin outlet
louis vuitton outlet stores
coach outlet online
toms shoes outlet online
louis vuitton
longchamp handbags
true religion outlet
nike uk
louis vuitton outlet
ray ban sunglasses
christian louboutin outlet
ralph lauren
gucci bags
timberland boots
20167.23chenjinyan

 

Post a Comment

<< Home