Download TASKING VX-toolset for ARM User Guide

Transcript
Using the Utilities
ccarm -g -t hello.c
Option -g tells to include DWARF debug information. Option -t tells to keep the intermediate files. This
command results (among other files) in the file hello.abs (the absolute output file).
We can dump information about the absolute object file with the following command:
hldumparm hello.abs
---------- Module list ---------Name
Full path
hello.c hello.c
---------- Section list ---------Address Size
Align Name
00000694
24
4 .text
000400e0
4
4 .data
000006b8
6
4 .rodata
000006ac
11
4 .rodata
---------- Section dump ---------.section .data, '[.data]'
.org 000000e8
.db b8,06,00,00
.endsec
00000694
00000698
0000069c
000006a0
000006a4
000006a6
000006a8
000006aa
08009fe5 main
001090e5
04009fe5
74ffffea
e000
0400
ac06
0000
; ....
.section .text, '.text'
ldr
r0, [r15, #+0x8]
ldr
r1, [r0, #+0x0]
ldr
r0, [r15, #+0x4]
b
printf
.dh 00e0
.dh 0004
.dh 06ac
.dh 0000
.endsec
.section .data, '.rodata'
.org 000006ac
.db 48,65,6c,6c,6f,20,25,73,21,0a,00
.endsec
.section .data, '.rodata'
.org 000006b8
.db 77,6f,72,6c,64,00
.endsec
; Hello %s!..
; world.
---------- HLL symbol table ----------
261