Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Is there an open source ARM assembler?

Is there an open source ARM assembler?

2005-09-13 by Eric Engler

I'm looking for an open source ARM assembler, other than GNU "as". I
don't care for the "as" syntax.

Does anyone know of any other open source assemblers?

Re: [lpc2000] Is there an open source ARM assembler?

2005-09-13 by Peter Jakacki

Eric,

I don't care for the GNU assembler as a pure assembler either. I 
couldn't find another assembler that I was happy with but I am using 
IAR's as the assembler is quite usable at assembly level.

So I don't know if this is what you are really asking as it is not open 
source but it is essentially free since I don't need the C compiler.

*Peter*


Eric Engler wrote:
Show quoted textHide quoted text
>I'm looking for an open source ARM assembler, other than GNU "as". I
>don't care for the "as" syntax.
>
>Does anyone know of any other open source assemblers?
>

Re: Is there an open source ARM assembler?

2005-09-14 by Eric Engler

I'm familar with IAR, and I also like it. But I'm looking for an 
assembler to use in a new IDE I'm writing for students. Colleges 
normally can't use commercial tools even if they're clearly free for 
limited versions.

Part of the problem is that professors don't like trying to coordinate 
things with their legal department. They frequently use GNU tools, but 
they normally ask me for a simple IDE that supports an open source 
assembler that uses a standard syntax.

My current IDEs are only for the Freescale hc11/hc12 series but I'm 
looking at supporting the ARM in my forthcoming C# IDE.

Let me know if anyone knows of a nice open source ARM assembler for 
linux or Windows, other than GNU "as".

Eric
http://www.ericengler.com/AsmIDE.aspx
http://www.ericengler.com/EmbeddedGNU.aspx

Re: Is there an open source ARM assembler?

2005-11-22 by Alan

--- In lpc2000@yahoogroups.com, "Eric Engler" <englere.geo@y...> wrote:
>
> I'm looking for an open source ARM assembler, other than GNU "as". I
> don't care for the "as" syntax.
> 
> Does anyone know of any other open source assemblers?
>

Hello,
I wonder if you found what you were looking for? I am after the same 
thing, but seems hard to find!
I want to do some time-critical code (for video application).
Anyone out there can help?
Thanks,
Alan.

Re: Is there an open source ARM assembler?

2005-11-22 by Alan

--- In lpc2000@yahoogroups.com, "Eric Engler" <englere.geo@y...> wrote:
>
> I'm looking for an open source ARM assembler, other than GNU "as". I
> don't care for the "as" syntax.
> 
> Does anyone know of any other open source assemblers?
>

Hello,
I wonder if you found what you were looking for? I am after the same 
thing, but seems hard to find!
I want to do some time-critical code (for video application).
Anyone out there can help?
Thanks,
Alan.

Re: Is there an open source ARM assembler?

2005-11-23 by Eric Engler

--- In lpc2000@yahoogroups.com, "Alan" <logicaid@x...> wrote:
>
> --- In lpc2000@yahoogroups.com, "Eric Engler" <englere.geo@y...> wrote:
> >
> > I'm looking for an open source ARM assembler, other than GNU "as". I
> > don't care for the "as" syntax.
> > 
> > Does anyone know of any other open source assemblers?
> >

> I wonder if you found what you were looking for? 

I never found one. I thought about making one myself but I just don't
have the time. The Arm is a powerful device and the assembler is not
trivial to write.

I'd also like to hear if anyone knows of one.

Eric

Re: [lpc2000] Re: Is there an open source ARM assembler?

2005-11-23 by Charles Manning

On Wednesday 23 November 2005 18:33, Eric Engler wrote:
> --- In lpc2000@yahoogroups.com, "Alan" <logicaid@x...> wrote:
> > --- In lpc2000@yahoogroups.com, "Eric Engler" <englere.geo@y...> wrote:
> > > I'm looking for an open source ARM assembler, other than GNU "as". I
> > > don't care for the "as" syntax.

What in particular don't you like?

If you use the assembler in ".S mode" with a gcc front end then you can use C 
macros etc to preprocess it. Pretty much anything you don't like could 
probably be hidden quite easily.

IMHO, I find the gnu-as easier to use than many others but it is very much a 
taste issue.

Re: [lpc2000] Re: Is there an open source ARM assembler?

2005-11-23 by Peter Jakacki

Hi Alan,
I found the GNU assembler simply a back-end for the compiler and overly 
complicated to drive.Instead, I have used the IAR workbench purely for 
it's assembler. This is a far more standard assembler and very easy to 
use. Download the demo from IAR as the assembler part is not limited by 
any trial license.

You say you need this for a video application, care to elaborate? (I may 
be able to help).

*Peter*
Show quoted textHide quoted text
> Hello,
> I wonder if you found what you were looking for? I am after the same 
> thing, but seems hard to find!
> I want to do some time-critical code (for video application).
> Anyone out there can help?
> Thanks,
> Alan.

Re: Is there an open source ARM assembler?

2005-11-27 by Eric Engler

--- In lpc2000@yahoogroups.com, Charles Manning <manningc2@a...> wrote:

> If you use the assembler in ".S mode" with a gcc front end then you
can use C 
> macros etc to preprocess it.

The basic syntax doesn't follow that used by most ARM assemblers. This
is understandable because it wasn't designed for this target specifically.

Buy maybe some could write a translator that could accept a standard
ARM syntax as its input and then it would create a GNU "as" syntax as
it's output. The big benefit here is to support linking standard
assembler source files to gcc programs.

Eric

Re: [lpc2000] Re: Is there an open source ARM assembler?

2005-11-27 by Robert Adsett

At 03:47 PM 11/27/05 +0000, Eric Engler wrote:
>--- In lpc2000@yahoogroups.com, Charles Manning <manningc2@a...>
>
> > If you use the assembler in ".S mode" with a gcc front end then you
>can use C
> > macros etc to preprocess it.
>
>The basic syntax doesn't follow that used by most hc11/hc12
>assemblers. This is understandable because it wasn't designed for this
>target specifically.

Since it's not an hc11/hc12 assembler that's hardly surprising.  I have to 
say I found the GAS syntax no more obscure than any other assembler I've 
ever worked with.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Re: Is there an open source ARM assembler?

2005-11-27 by Eric Engler

--- In lpc2000@yahoogroups.com, Peter Jakacki <peterjak@t...> wrote:

> I found the GNU assembler simply a back-end for the compiler and overly 
> complicated to drive.Instead, I have used the IAR workbench purely for 
> it's assembler. This is a far more standard assembler and very easy to 
> use. 

I don't think you can link IAR assembled code with gcc compiled code,
can you?

But I guess you could make 2 separate download modules that could be
aware of each other's entry points.

I agree that the IAR assembler is very good, and their debugger is
also very good.

Eric

Re: Is there an open source ARM assembler?

2005-11-27 by Eric Engler

--- In lpc2000@yahoogroups.com, Robert Adsett <subscriptions@a...> wrote:

> Since it's not an hc11/hc12 assembler that's hardly surprising.  I
have to 
> say I found the GAS syntax no more obscure than any other assembler
I've 
> ever worked with.

I meant to say it doesn't use ARM syntax, of course. I was wearing my
hc11/hc12 hat by mistake. I posted a corrected message but it was too
late, the bad one already got out :-(

This is a general complaint of GAS/as because it was intended to have
a cross platform syntax, therefore, it doesn't match the syntax of any
particular family.

A translator may be the best idea...take a standard ARM assembler file
as an input and write out a GAS assembler file. Then you can assemble
using GAS and link to gcc-compiled modules.

Eric

Re: [lpc2000] Re: Is there an open source ARM assembler?

2005-11-27 by Robert Adsett

At 06:31 PM 11/27/05 +0000, Eric Engler wrote:
>--- In lpc2000@yahoogroups.com, Robert Adsett <subscriptions@a...> wrote:
>
> > Since it's not an hc11/hc12 assembler that's hardly surprising.  I
>have to
> > say I found the GAS syntax no more obscure than any other assembler
>I've
> > ever worked with.
>
>I meant to say it doesn't use ARM syntax, of course. I was wearing my
>hc11/hc12 hat by mistake. I posted a corrected message but it was too
>late, the bad one already got out :-(

It happens.


>This is a general complaint of GAS/as because it was intended to have
>a cross platform syntax, therefore, it doesn't match the syntax of any
>particular family.

I've seen the same complaint levelled against the x86 variant.

>A translator may be the best idea...take a standard ARM assembler file
>as an input and write out a GAS assembler file. Then you can assemble
>using GAS and link to gcc-compiled modules.


You may well be right, or it might be just as fast to learn the different 
syntax.  Personally, I suspect learning the syntax would be faster but if 
you are translating a lot of existing source you could make an argument for 
writing a translator. Or you could just use C ;)  It has been accused of 
being little more than a portable assembler.  I find myself using assembler 
rather sparingly for the ARM, so far only interrupt support and task 
switching which I always do in assembly in any case.

Actually given gcc's availability I don't see a lot of need for large 
amounts of assembly, but not everyone is likely to agree :)

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Re: [lpc2000] Re: Is there an open source ARM assembler?

2005-11-28 by Charles Manning

On Monday 28 November 2005 06:54, Eric Engler wrote:
> --- In lpc2000@yahoogroups.com, Peter Jakacki <peterjak@t...> wrote:
> > I found the GNU assembler simply a back-end for the compiler and overly
> > complicated to drive.Instead, I have used the IAR workbench purely for
> > it's assembler. This is a far more standard assembler and very easy to
> > use.
>
> I don't think you can link IAR assembled code with gcc compiled code,
> can you?
>
I don't see why not. So long as you get them to both play APCS and use a 
common object format (eg. elf).

Re: [lpc2000] Re: Is there an open source ARM assembler?

2005-11-29 by Boris Estudiez

On 29/11/2005 at 10:31:01 +1300 Charles Manning Wrote:
> On Monday 28 November 2005 06:54, Eric Engler wrote:
> > --- In lpc2000@yahoogroups.com, Peter Jakacki <peterjak@t...> wrote:
> > > I found the GNU assembler simply a back-end for the compiler and overly
> > > complicated to drive.Instead, I have used the IAR workbench purely for
> > > it's assembler. This is a far more standard assembler and very easy to
> > > use.

Hi,

Look the following tutorials for ARM7TDMI assembler using GAS:

http://dsl.ee.unsw.edu.au/dsl-cdrom/unsw/elec2041/
http://dsl.ee.unsw.edu.au/dsl-cdrom/unsw/common/assembler-intro.pdf
http://www.microcross.com/GNU-ARM-Assy-Quick-Ref.pdf

Also you can see my first assembler program (BlinkyLed) for LPC2138 
microcontrollers at:

http://www.geocities.com/slicetex/tmp/blinkyled.zip

Regards,
Boris Estudiez.-

-- 

Contacteme en:
* Mail(1): stk@...
* Mail(2): 43824@...
* Mail(3): slicetex@...
* Website: http://stk.freeshell.org
EOF

Re: Is there an open source ARM assembler?

2005-11-29 by Eric Engler

--- In lpc2000@yahoogroups.com, Robert Adsett <subscriptions@a...> wrote:

> Actually given gcc's availability I don't see a lot of need for large 
> amounts of assembly, but not everyone is likely to agree :)

I think everyone would agree with this. We sometimes need assembler,
but it's use should be rare. Only drivers, compiler libraries, or
special speed-critical code should be done in assembler.

Even Forth is better than assembler in cases where C is not
appropriate. But Forth has a learning curve in order to be very
productive with it. I find assembler to be easier to work with for
people who have already been exposed to some flavor of assembler.

My main involvement with assembler is for college classes that teach
the low-level architecture. They also emphasize standard syntax
because they use official documentation as reference material.

I've recommended the IAR EWARM free version, but some professors don't
like to do that for some reason. I think it depends on who is in the
legal department and whether they take the time to actually look at
the license agreement seriously. Many professors just don't even take
it to the legal department for review - they just assume the answer is
going to be "no".

Tip to tool vendors: please consider making a custom educational
license that is easy to understand (if the professor sees it as a
no-brainer he's more likely to ask the legal department for a ruling
on it). You want your tools to get used by students because they are
tomorrow's engineers. Wouldn't it be great if they already had some
exposure to your tools in class? People like to select tools that are
familiar to them.

Eric

Re: [lpc2000] Re: Is there an open source ARM assembler?

2005-11-29 by Ghazan Haider

I started using the lpc2000 chips as a replacement for
my pic and avr set. Even ARM is aiming at the 8-bit
market with the arm7 core (and with the lpc2101,
they're actually cheaper than many 8-bitters).

I'd prefer to start with assembly code (thumb likely)
for small and highly predictable code. For more
complex stuff I'd use chips with bigger ram/flash and
RTOSes, which frequently demand the use of C as in
Keil compiler C or GCC. If a free arm assembler with
the traditional arm syntax is available, I'd be one of
the users. I however admit I havent taken a closer
look at the gcc's arm assembler yet.


--- Eric Engler <englere.geo@...> wrote:
Show quoted textHide quoted text
> --- In lpc2000@yahoogroups.com, Robert Adsett
> <subscriptions@a...> wrote:
> 
> > Actually given gcc's availability I don't see a
> lot of need for large 
> > amounts of assembly, but not everyone is likely to
> agree :)
> 
> I think everyone would agree with this. We sometimes
> need assembler,
> but it's use should be rare. Only drivers, compiler
> libraries, or
> special speed-critical code should be done in
> assembler.
> 
> Even Forth is better than assembler in cases where C
> is not
> appropriate. But Forth has a learning curve in order
> to be very
> productive with it. I find assembler to be easier to
> work with for
> people who have already been exposed to some flavor
> of assembler.
> 
> My main involvement with assembler is for college
> classes that teach
> the low-level architecture. They also emphasize
> standard syntax
> because they use official documentation as reference
> material.
> 
> I've recommended the IAR EWARM free version, but
> some professors don't
> like to do that for some reason. I think it depends
> on who is in the
> legal department and whether they take the time to
> actually look at
> the license agreement seriously. Many professors
> just don't even take
> it to the legal department for review - they just
> assume the answer is
> going to be "no".
> 
> Tip to tool vendors: please consider making a custom
> educational
> license that is easy to understand (if the professor
> sees it as a
> no-brainer he's more likely to ask the legal
> department for a ruling
> on it). You want your tools to get used by students
> because they are
> tomorrow's engineers. Wouldn't it be great if they
> already had some
> exposure to your tools in class? People like to
> select tools that are
> familiar to them.
> 
> Eric
> 
> 
> 
>

Re: [lpc2000] Re: Is there an open source ARM assembler?

2005-11-29 by Tom Walsh

Ghazan Haider wrote:

>I started using the lpc2000 chips as a replacement for
>my pic and avr set. Even ARM is aiming at the 8-bit
>market with the arm7 core (and with the lpc2101,
>they're actually cheaper than many 8-bitters).
>
>I'd prefer to start with assembly code (thumb likely)
>for small and highly predictable code. For more
>complex stuff I'd use chips with bigger ram/flash and
>RTOSes, which frequently demand the use of C as in
>Keil compiler C or GCC. If a free arm assembler with
>the traditional arm syntax is available, I'd be one of
>the users. I however admit I havent taken a closer
>look at the gcc's arm assembler yet.
>
>  
>
Now you have hit upon one of the reasons I did not use PIC as a choice 
in new hardware designs.  The early PICs did not have an interrupt 
structure and you had to carefully balance the time taken between 
sections of the program so that you could arrive back in time to do 
something like pull the next char out of the UART.

I've coded in Assembler for 25+ years now, lots and lots of assembler + 
C.  On the 8051, 6502, Z80, 8070, 8042, 80C188, ..., assembler  was 
choice of languages for deterministic programming.   Hand coded 
assembler could be written, "in the day", to be tighter code than what 
the compilers of 10 years ago were producing. When I look at the output 
of a modern C compiler, such as GNU gcc, the optimizer does such good 
job producing tight code, that I won't bother with assembler.

Have  you taken a critical look at a C language program output lately?  
Try the -O2 option, the code optimization is staggering, especially with 
the ARM Instruction Set!!

However, you are certainly free to make your own decision.   BTW, 
assembler ports real easily to C, and vise-versa.  Many call C 
"glorified assembler".

Regards,

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.