Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: GCC: genera...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 45799 of 47034
Post > Topic >>

Re: GCC: generate ARM assembler

by =?ISO-8859-1?Q?Glenn_M=F8ller-Holst?= <nomail@[EMAIL PROTECTED] > May 7, 2008 at 10:03 PM

Laurent D.A.M. MENTEN wrote:
> 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 ... ;-)

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 do***entatation 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
 




 4 Posts in Topic:
GCC: generate ARM assembler
=?ISO-8859-1?Q?Glenn_M=F8  2008-05-07 20:58:06 
Re: GCC: generate ARM assembler
"Laurent D.A.M. MENT  2008-05-07 21:30:49 
Re: GCC: generate ARM assembler
=?ISO-8859-1?Q?Glenn_M=F8  2008-05-07 22:03:38 
Re: GCC: generate ARM assembler
Rolf Magnus <ramagnus@  2008-05-07 22:36:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:58:26 CDT 2008.