Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > GCC: generate ARM assembler

Reply
Thread Tools

GCC: generate ARM assembler

 
 
Glenn Møller-Holst
Guest
Posts: n/a
 
      05-07-2008
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
 
Reply With Quote
 
 
 
 
Laurent D.A.M. MENTEN
Guest
Posts: n/a
 
      05-07-2008
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 ...
 
Reply With Quote
 
 
 
 
Glenn Møller-Holst
Guest
Posts: n/a
 
      05-07-2008
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 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
 
Reply With Quote
 
Rolf Magnus
Guest
Posts: n/a
 
      05-07-2008
Glenn Møller-Holst wrote:

>> 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
> #


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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java assembler?? for Javap utility?? TenderHeart Java 1 04-29-2005 06:12 PM
XML-based object orientated pre-Assembler Jure Sah XML 21 03-14-2005 05:18 AM
customizable assembler Stefan Oedenkoven VHDL 2 11-22-2004 01:36 PM
Java/C/Assembler Sudsy Java 8 06-22-2004 09:38 PM
Getting the KVM running on ARM Linux on an ARM processor based device Steve Jasper Java 0 11-20-2003 06:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57