2011-05-04 11:17:02     Generating objdump output after eclipse based build

Document created by Aaronwu Employee on Oct 16, 2013
Version 1Show Document
  • View in full screen mode

2011-05-04 11:17:02     Generating objdump output after eclipse based build

Prasanth Rajagopal (INDIA)

Message: 100422   

 

I found one method to generate files of all objdump options for Windows based bare metal development.

 

1. Create a batch file objdump.bat as follows:

 

bfin-elf-objdump.exe -a %1 > %1_a.txt

bfin-elf-objdump.exe -f %1 > %1_f.txt

bfin-elf-objdump.exe -d %1 > %1_d.txt

bfin-elf-objdump.exe -p %1 > %1_p.txt

bfin-elf-objdump.exe -h %1 > %1_h.txt

bfin-elf-objdump.exe -x %1 > %1_x.txt

bfin-elf-objdump.exe -d %1 > %1_d.txt

bfin-elf-objdump.exe -D %1 > %1_D.txt

bfin-elf-objdump.exe -S %1 > %1_S.txt

bfin-elf-objdump.exe -s %1 > %1_s.txt

bfin-elf-objdump.exe -g %1 > %1_g.txt

bfin-elf-objdump.exe -e %1 > %1_e.txt

bfin-elf-objdump.exe -G %1 > %1_G.txt

bfin-elf-objdump.exe -W %1 > %1_W.txt

bfin-elf-objdump.exe -t %1 > %1_t.txt

bfin-elf-objdump.exe -r %1 > %1_r.txt

bfin-elf-objdump.exe -R %1 > %1_R.txt

bfin-elf-objdump.exe -v %1 > %1_v.txt

bfin-elf-objdump.exe -i %1 > %1_i.txt

bfin-elf-objdump.exe -H %1 > %1_H.txt

 

Each header file corresponds to the objdump output

 

2. Inside Eclipse configure objdump.bat as an External Tool & have working directory as the Debug\Src folder & have object file name as argument::: filename.o

 

3. In the Properties - Builder, Import the above External Tool Configuration.

 

4. After a build, the objdump results are automatically available from the Debug/Src folder.

 

Any comments are welcome.

Attachments

    Outcomes