Assembly Language output from arm-elf-gcc

Status
Not open for further replies.

subdural

Junior Member level 1
Joined
Aug 21, 2004
Messages
19
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Location
Neutral Zone
Activity points
173
arm-elf-gcc assember tutorial

Hi All,

I'm compile the example.c source code to arm-elf gcc compiler with successful output. Also, I try to compiler this source code using "arm-elf-gcc -S example.c" to get assembly language (instruction set) output. I manage to compile it with no erros but I cant see the output on Cygwin Shell. I need your help how to see or get the assembly language output?

Thank in advanced
 

arm-elf-gcc compiling to assembly code

I'm not familiar with that particular gcc compiler, but -S normally works fine. You don't see any error messages, and you don't get a file named example.s?

Try typing arm-elf-gcc --help to see if -S is listed in the available options. My gcc 3.4.2 says "compile only; do not assemble or link"

Try typing arm-elf-gcc --version to see the gcc version. Maybe someone here will know the problem.
 

    subdural

    Points: 2
    Helpful Answer Positive Rating
arm assembly language gcc

You can try with disassembly also

make a .elf file and then use

arm-elf-objdump -D elffile name > dump file name

use vi to view dump file
 

    subdural

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…