473,471 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

GCC: generate ARM assembler

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
Jun 27 '08 #1
3 4313
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 ... ;-)
Jun 27 '08 #2
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
Jun 27 '08 #3
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.

Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: Patrick Laurent | last post by:
Hello I have a program with many many inlined template functions It is essential for the execution speed that every (or almost every) function marked as inlined, becomes really inlined by the...
7
by: Aric | last post by:
Hi, I'm a bit new to programming in general, really I've just picked it up as a hobby, and so I've started by reading "Practical C Programming" by Steve Oualline. Things have been going fine in...
1
by: Ardhendu Nandan | last post by:
Hi, Still I haven’t solved this problem. Below I am mentioning all the details which I have done to solve the problem First- Bison 1.35 Configuration-Ok (No Error) Make-(Error)- in...
3
by: Serpent | last post by:
I have a few old routines written in Intel ASM; years ago they were used inline a C-program. Now I find that to use inline-assembler with GCC I have to use AT&T ASM. I figured the easiest solution...
3
by: Sorav Bansal | last post by:
Is there a way to print out all the operations performed in a gcc call: eg. gcc foo.c -o foo perhaps performs foo.c --> foo.s (using compiler) foo.s --> foo.o (using assembler as) foo.o...
111
by: Nate | last post by:
Hello, I am looking for a method to automatically declare variables in C. I'm not sure if there is a good way to do this, but I had something like this in mind... int i; for(i = 1; i < 4;...
3
by: Raman | last post by:
Hi All, Could any one tell what exactly these two option do. I have not been able to understand why we use them because as per the gcc man page, these options increase the size of libraries...
27
by: Dave | last post by:
I'm having a hard time tying to build gcc 4.3.1 on Solaris using the GNU compilers. I then decided to try to use Sun's compiler. The Sun Studio 12 compiler reports the following code, which is in...
2
by: ganeshp | last post by:
Hi All, I have installed gcc 4.3.1 compiler , but the assembler used to build gcc 4.3.1 was the one that came by default with SLES 10 SP1. Can anybody point me to the link from where i can...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.