GCC: generate ARM assembler

  • Thread starter Glenn Møller-Holst
  • Start date
G

Glenn Møller-Holst

Hi!

How do I get generated ARM assembler from this compiler:

#arm-elf-gcc -dumpversion
4.2.0
#arm-elf-gcc -dumpmachine
arm-elf

kind regards,

Glenn
 
L

Laurent D.A.M. MENTEN

Glenn Møller-Holst a écrit :
Hi!

How do I get generated ARM assembler from this compiler:

#arm-elf-gcc -dumpversion
4.2.0
#arm-elf-gcc -dumpmachine
arm-elf

kind regards,

Glenn

arm-elf-gcc -S source.c

Maybe before playing with assembler you may check some magical utilities
like: ... man ... info ... ;-)
 
G

Glenn Møller-Holst

Laurent said:
Glenn Møller-Holst a écrit :

arm-elf-gcc -S source.c

Maybe before playing with assembler you may check some magical utilities
like: ... man ... info ... ;-)

Hi Laurent

Very funny. PS: I am rather new to gcc and make:

#info arm-elf-gcc
(a lot of non-informative information)
# man arm-elf-gcc
No manual entry for arm-elf-gcc
#


The documentatation is bloated with options:
http://gcc.gnu.org/onlinedocs/gcc-4.2.3/gcc/
- and this just for gcc - what then about arm-elf-gcc?

That was why I thought it was better to ask here.

Where is the best place for option "-S" in the makefile?:
"...

# ELF-file contains debug information, or not
# (possible values for DEBUG are 0 or 1)
# Extra debug flags can be specified in DBFLAGS
DEBUG = 1
#DBFLAGS =

# Optimization setting
# (-Os for small code size, -O2 for speed)
OFLAGS = -Os

# Extra general flags
# For example, compile for ARM / THUMB interworking (EFLAGS =
-mthumb-interwork)
EFLAGS =

# Program code run in ARM or THUMB mode
# Can be [ARM | THUMB]
CODE = ARM

# List C source files here.
CSRCS = main.cpp

# List assembler source files here
ASRCS =
...."

kind regards,

Glenn
 
R

Rolf Magnus

Glenn said:
Hi Laurent

Very funny. PS: I am rather new to gcc and make:

#info arm-elf-gcc
(a lot of non-informative information)
# man arm-elf-gcc
No manual entry for arm-elf-gcc
#

Does work here. Maybe your installation is incomplete. You could also try if
arm-elf-man exists.
The documentatation is bloated with options:
http://gcc.gnu.org/onlinedocs/gcc-4.2.3/gcc/
- and this just for gcc - what then about arm-elf-gcc?

arm-elf-gcc _is_ gcc.
That was why I thought it was better to ask here.

Actually, it's not. What does ARM assembler have to do with the C++
programming language? Also note that this newsgroup is not about any
specific tools, but only about the language itself. A better newsgroup
would be gnu.gcc.help.
Where is the best place for option "-S" in the makefile?:

This is even more off-topic.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,489
Latest member
BrigidaD91

Latest Threads

Top