Do you have a question? Post it now! No Registration Necessary
- Posted on
September 3, 2004, 10:33 am
rate this thread
Re: How to write a sample program "Hello world" using arm assembly language for gnu as(gas) to compile?
Personally, I would have thought that the easiest way would be to write it in C
first and then compile it using the "-S" option. This option tells gcc to
compile, but not assemble. You may also need a -m switch to tell gcc to produce
Re: How to write a sample program "Hello world" using arm assembly languagefor gnu as(gas) to compile?
Content-Type: text/plain; charset=us-ascii
First build yourself a gcc cross-compile for Arm. There's help here.
Create a C program to do what you want.
Cross-compile to assembly, using the "-S" option, eg.
"arm-unknown-linux-gnu-gcc -S hello.c"
We've slightly trimmed the long signature. Click to see the full one.