Yahoo Groups archive

Lpc2000

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

Thread

Learning ARM ASM

Learning ARM ASM

2005-03-27 by chipburnssc

I'm new to ARM.  I'm using the Keil toolchain and need to port some ARM 
ASM written for the IAR toolchain & the documentation on Keil ASM is 
pretty weak from what I've seen so far.  I'm pretty good at Keil '51 
ASM but am having trouble deciphering how to port this IAR code.

Are there any good texts I can go to?  I've tried the ARM website and 
been pretty overwhelmed by the density of links there and am not sure 
where to start.  Any help from the group?

Thanks,

Chip Burns

Re: [lpc2000] Learning ARM ASM

2005-03-27 by Robert Adsett

At 02:54 AM 3/27/05 +0000, chipburnssc wrote:
>I'm new to ARM.  I'm using the Keil toolchain and need to port some ARM
>ASM written for the IAR toolchain & the documentation on Keil ASM is
>pretty weak from what I've seen so far.  I'm pretty good at Keil '51
>ASM but am having trouble deciphering how to port this IAR code.
>
>Are there any good texts I can go to?  I've tried the ARM website and
>been pretty overwhelmed by the density of links there and am not sure
>where to start.  Any help from the group?

There are potentially two separate issues here.

One is learning the instruction set, the other is learning the particular 
vendors assembler.

For the instruction set the ARM Architecture reference Manual is a pretty 
straightforward explanation of the instruction set.

For the assembler I'm afraid there is not much choice other than the 
particular vendors documentation.  A lot of assembler manuals are rather 
sparse (although good ones do exist for some products), the worst are down 
right cryptic and in some cases close to non-existent.

If there are particular small cases that are giving you trouble you might 
see if anyone here can clarify them.  There are people here who use all of 
the popular ARM tools.

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: Learning ARM ASM

2005-03-28 by Ken Wada

RE:Learning ARM ASM

Hello Chip;
You need the "Arm Archtitecture Reference Manual"

Ken Wada

Re: [lpc2000] RE: Learning ARM ASM

2005-03-28 by Onestone

And a lot of time. It's 811 pages long! few days read for a decent 
novel, but a lifetime for a reference book!

Al

Ken Wada wrote:
Show quoted textHide quoted text
> RE:Learning ARM ASM
>
> Hello Chip;
> You need the "Arm Archtitecture Reference Manual"
>
> Ken Wada
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
> <http://us.ard.yahoo.com/SIG=129qe2qbj/M=298184.6191685.7192823.3001176/D=groups/S=1706554205:HM/EXP=1112112871/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075> 
>
>
>
> ------------------------------------------------------------------------
> Yahoo! Groups Links
>
>     * To visit your group on the web, go to:
>       http://groups.yahoo.com/group/lpc2000/
>        
>     * To unsubscribe from this group, send an email to:
>       lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 27/03/2005
>  
>

Re: Learning ARM ASM

2005-03-28 by kennethwada

The fastest way to use this is to do the following:
- Write a small piece of Keil "C" code
- Compile with the listing and Assemble source options checked
- look at dissassembled code with the "Arm Architeture Reference 
Manual at your side"

I did this, and managed to get some quality assembly language code up 
and operational in an hour or two!

Most of my asm code is in the startup. With the Keil tools, there 
really is very little, or no need to write your own assembler.

Ken Wada

--- In lpc2000@yahoogroups.com, Onestone <onestone@b...> wrote:
> And a lot of time. It's 811 pages long! few days read for a decent 
> novel, but a lifetime for a reference book!
> 
> Al
> 
> Ken Wada wrote:
> 
> > RE:Learning ARM ASM
> >
> > Hello Chip;
> > You need the "Arm Archtitecture Reference Manual"
> >
> > Ken Wada
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> > <http://us.ard.yahoo.com/SIG=129qe2qbj/M=298184.6191685.7192823.
3001176/D=groups/S=1706554205:
HM/EXP=1112112871/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.
com/Default?mqso=60190075> 
> >
> >
> >
> > 
----------------------------------------------------------------------
--
> > Yahoo! Groups Links
> >
> >     * To visit your group on the web, go to:
> >       http://groups.yahoo.com/group/lpc2000/
> >        
> >     * To unsubscribe from this group, send an email to:
> >       lpc2000-unsubscribe@yahoogroups.com
> >       <mailto:lpc2000-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
> >        
> >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> 
>---------------------------------------------------------------------
---
> >
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 
27/03/2005
> >  
> >

Re: Learning ARM ASM

2005-03-28 by chipburnssc

Ken,

Where might I find that manual?  Is it on the ARM site?  (I'm going 
there after sending this off to check).

Thanks,

Chip
--- In lpc2000@yahoogroups.com, "Ken Wada" <kwada@a...> wrote:
Show quoted textHide quoted text
> RE:Learning ARM ASM
> 
> Hello Chip;
> You need the "Arm Archtitecture Reference Manual"
> 
> Ken Wada

Re: [lpc2000] Re: Learning ARM ASM

2005-03-28 by Leon Heller

----- Original Message ----- 
Show quoted textHide quoted text
From: "chipburnssc" <chip@...>
To: <lpc2000@yahoogroups.com>
Sent: Monday, March 28, 2005 11:31 PM
Subject: [lpc2000] Re: Learning ARM ASM


> 
> 
> Ken,
> 
> Where might I find that manual?  Is it on the ARM site?  (I'm going 
> there after sending this off to check).

http://www.arm.com/documentation/books/1183.html

Leon
--
Leon Heller, G1HSM
http://www.geocities.com/leon_heller

Re: Learning ARM ASM

2005-03-28 by kennethwada

I purchased my copy over at the Computer Guru bookstore in Santa Clara 
CA.

You can purchase a copy at Amazon:

http://www.amazon.
com/exec/obidos/tg/detail/-/0201737191/qid=1112052024/sr=8-1/ref=pd_cs
p_1/002-0500792-9963220?v=glance&s=books&n=507846

Ken Wada

--- In lpc2000@yahoogroups.com, "chipburnssc" <chip@c...> wrote:
Show quoted textHide quoted text
> 
> Ken,
> 
> Where might I find that manual?  Is it on the ARM site?  (I'm going 
> there after sending this off to check).
> 
> Thanks,
> 
> Chip
> --- In lpc2000@yahoogroups.com, "Ken Wada" <kwada@a...> wrote:
> > RE:Learning ARM ASM
> > 
> > Hello Chip;
> > You need the "Arm Archtitecture Reference Manual"
> > 
> > Ken Wada

Re: [lpc2000] Re: Learning ARM ASM

2005-03-29 by Onestone

Ah but the objective of learnig ARM ASM was to understand the fine 
details of the instruction set to write my own optimised code, not to 
use C, or somebody elses generic optimisation.

Al

kennethwada wrote:
Show quoted textHide quoted text
>
> The fastest way to use this is to do the following:
> - Write a small piece of Keil "C" code
> - Compile with the listing and Assemble source options checked
> - look at dissassembled code with the "Arm Architeture Reference
> Manual at your side"
>
> I did this, and managed to get some quality assembly language code up
> and operational in an hour or two!
>
> Most of my asm code is in the startup. With the Keil tools, there
> really is very little, or no need to write your own assembler.
>
> Ken Wada
>
> --- In lpc2000@yahoogroups.com, Onestone <onestone@b...> wrote:
> > And a lot of time. It's 811 pages long! few days read for a decent
> > novel, but a lifetime for a reference book!
> >
> > Al
> >
> > Ken Wada wrote:
> >
> > > RE:Learning ARM ASM
> > >
> > > Hello Chip;
> > > You need the "Arm Archtitecture Reference Manual"
> > >
> > > Ken Wada
> > >
> > > Yahoo! Groups Sponsor
> > > ADVERTISEMENT
> > > <http://us.ard.yahoo.com/SIG=129qe2qbj/M=298184.6191685.7192823.
> 3001176/D=groups/S=1706554205:
> HM/EXP=1112112871/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.
> com/Default?mqso=60190075>
> > >
> > >
> > >
> > >
> ----------------------------------------------------------------------
> --
> > > Yahoo! Groups Links
> > >
> > >     * To visit your group on the web, go to:
> > >       http://groups.yahoo.com/group/lpc2000/
> > >       
> > >     * To unsubscribe from this group, send an email to:
> > >       lpc2000-unsubscribe@yahoogroups.com
> > >       <mailto:lpc2000-unsubscribe@yahoogroups.com?
> subject=Unsubscribe>
> > >       
> > >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > >       Service <http://docs.yahoo.com/info/terms/>.
> > >
> > >
> >
> >---------------------------------------------------------------------
> ---
> > >
> > >No virus found in this incoming message.
> > >Checked by AVG Anti-Virus.
> > >Version: 7.0.308 / Virus Database: 266.8.4 - Release Date:
> 27/03/2005
> > > 
> > >
>
>
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
> <http://us.ard.yahoo.com/SIG=129qgbrc3/M=298184.6191685.7192823.3001176/D=groups/S=1706554205:HM/EXP=1112116331/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075> 
>
>
>
> ------------------------------------------------------------------------
> Yahoo! Groups Links
>
>     * To visit your group on the web, go to:
>       http://groups.yahoo.com/group/lpc2000/
>        
>     * To unsubscribe from this group, send an email to:
>       lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 27/03/2005
>  
>

Re: Learning ARM ASM

2005-03-29 by kennethwada

heh...

I used to do that! In fact, I was a big proponent of always doing the 
1st project with some 'XYZ-processor architecture' ENTIRELY in 
assembler. With technological life-cycles now measured in months I no 
longer have the luxury of doing this 'old-school' thing anymore.

About the only thing I will do hard-core assembly on is the 
highly-tweaked DSP/signal processing using FPGA cores, or specialized 
DSPs anymore. Squeezing every extra MIPS is usually worth the hassle 
of the extra effort and obtuseness of highly-crafted assembler in this 
case.

In fact, I used to pooh-pooh shrink-wrapped RTOS's! I was of the 
following camp..."I can write my own RTOS, why...I only need that 
infinite while(1) loop, and I am fine!". Now that I have spec'd in a 
bunch of these shrink-wrapped RTOS's, and written drivers, and a bunch 
of other stuff like this; I now find myself recommending 
shrink-wrapped RTOS's, file-systems and communications servers too!

The trick to successful deployment of this off-the-shelf technology is 
to wrapper this stuff so most of the details are hidden to the 
applications developers. All the apps-developers need to know is how 
to write generic C/C++ code in a generic environment like DOS, Linux, 
or Windows!

Ken Wada

--- In lpc2000@yahoogroups.com, Onestone <onestone@b...> wrote:
> Ah but the objective of learnig ARM ASM was to understand the fine 
> details of the instruction set to write my own optimised code, not 
to 
> use C, or somebody elses generic optimisation.
> 
> Al
> 
> kennethwada wrote:
> 
> >
> > The fastest way to use this is to do the following:
> > - Write a small piece of Keil "C" code
> > - Compile with the listing and Assemble source options checked
> > - look at dissassembled code with the "Arm Architeture Reference
> > Manual at your side"
> >
> > I did this, and managed to get some quality assembly language code 
up
> > and operational in an hour or two!
> >
> > Most of my asm code is in the startup. With the Keil tools, there
> > really is very little, or no need to write your own assembler.
> >
> > Ken Wada
> >
> > --- In lpc2000@yahoogroups.com, Onestone <onestone@b...> wrote:
> > > And a lot of time. It's 811 pages long! few days read for a 
decent
> > > novel, but a lifetime for a reference book!
> > >
> > > Al
> > >
> > > Ken Wada wrote:
> > >
> > > > RE:Learning ARM ASM
> > > >
> > > > Hello Chip;
> > > > You need the "Arm Archtitecture Reference Manual"
> > > >
> > > > Ken Wada
> > > >
> > > > Yahoo! Groups Sponsor
> > > > ADVERTISEMENT
> > > > <http://us.ard.yahoo.com/SIG=129qe2qbj/M=298184.6191685.
7192823.
> > 3001176/D=groups/S=1706554205:
> > HM/EXP=1112112871/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.
> > com/Default?mqso=60190075>
> > > >
> > > >
> > > >
> > > >
> > 
----------------------------------------------------------------------
> > --
> > > > Yahoo! Groups Links
> > > >
> > > >     * To visit your group on the web, go to:
> > > >       http://groups.yahoo.com/group/lpc2000/
> > > >       
> > > >     * To unsubscribe from this group, send an email to:
> > > >       lpc2000-unsubscribe@yahoogroups.com
> > > >       <mailto:lpc2000-unsubscribe@yahoogroups.com?
> > subject=Unsubscribe>
> > > >       
> > > >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of
> > > >       Service <http://docs.yahoo.com/info/terms/>.
> > > >
> > > >
> > >
> > 
>---------------------------------------------------------------------
> > ---
> > > >
> > > >No virus found in this incoming message.
> > > >Checked by AVG Anti-Virus.
> > > >Version: 7.0.308 / Virus Database: 266.8.4 - Release Date:
> > 27/03/2005
> > > > 
> > > >
> >
> >
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> > <http://us.ard.yahoo.com/SIG=129qgbrc3/M=298184.6191685.7192823.
3001176/D=groups/S=1706554205:
HM/EXP=1112116331/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.
com/Default?mqso=60190075> 
> >
> >
> >
> > 
----------------------------------------------------------------------
--
> > Yahoo! Groups Links
> >
> >     * To visit your group on the web, go to:
> >       http://groups.yahoo.com/group/lpc2000/
> >        
> >     * To unsubscribe from this group, send an email to:
> >       lpc2000-unsubscribe@yahoogroups.com
> >       <mailto:lpc2000-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
> >        
> >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> 
>---------------------------------------------------------------------
---
> >
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 
27/03/2005
> >  
> >

Re: [lpc2000] Re: Learning ARM ASM

2005-03-29 by Onestone

Of course it depends what you work on, I've been that path and come back 
again (although a while ago now). The reason is simple. 99% of 
everything I am currently working on has extreme size or power 
consumption requirements, but often has a fair degree of computational 
complexity. It would be real nice to bolt in an RTOS, and a few off the 
shelf parts, patch it together with a little C and spit out a product. 
The problem is I haven't yet found any combination that can do this fast 
enough, or compactly enough for my needs. I do test the compilers and 
other tools that come with development kits I buy, but haven't yet found 
one that could do what I need. When I do I'll buy it.

In the mean time my products create their own market niche. The market 
for my two main products wouldn't exist if they were more expensive, 
bigger, or ran for less time between charges. All unachievable with COTs 
ttechniques.

Al

kennethwada wrote:
Show quoted textHide quoted text
>
> heh...
>
> I used to do that! In fact, I was a big proponent of always doing the
> 1st project with some 'XYZ-processor architecture' ENTIRELY in
> assembler. With technological life-cycles now measured in months I no
> longer have the luxury of doing this 'old-school' thing anymore.
>
> About the only thing I will do hard-core assembly on is the
> highly-tweaked DSP/signal processing using FPGA cores, or specialized
> DSPs anymore. Squeezing every extra MIPS is usually worth the hassle
> of the extra effort and obtuseness of highly-crafted assembler in this
> case.
>
> In fact, I used to pooh-pooh shrink-wrapped RTOS's! I was of the
> following camp..."I can write my own RTOS, why...I only need that
> infinite while(1) loop, and I am fine!". Now that I have spec'd in a
> bunch of these shrink-wrapped RTOS's, and written drivers, and a bunch
> of other stuff like this; I now find myself recommending
> shrink-wrapped RTOS's, file-systems and communications servers too!
>
> The trick to successful deployment of this off-the-shelf technology is
> to wrapper this stuff so most of the details are hidden to the
> applications developers. All the apps-developers need to know is how
> to write generic C/C++ code in a generic environment like DOS, Linux,
> or Windows!
>
> Ken Wada
>
> --- In lpc2000@yahoogroups.com, Onestone <onestone@b...> wrote:
> > Ah but the objective of learnig ARM ASM was to understand the fine
> > details of the instruction set to write my own optimised code, not
> to
> > use C, or somebody elses generic optimisation.
> >
> > Al
> >
> > kennethwada wrote:
> >
> > >
> > > The fastest way to use this is to do the following:
> > > - Write a small piece of Keil "C" code
> > > - Compile with the listing and Assemble source options checked
> > > - look at dissassembled code with the "Arm Architeture Reference
> > > Manual at your side"
> > >
> > > I did this, and managed to get some quality assembly language code
> up
> > > and operational in an hour or two!
> > >
> > > Most of my asm code is in the startup. With the Keil tools, there
> > > really is very little, or no need to write your own assembler.
> > >
> > > Ken Wada
> > >
> > > --- In lpc2000@yahoogroups.com, Onestone <onestone@b...> wrote:
> > > > And a lot of time. It's 811 pages long! few days read for a
> decent
> > > > novel, but a lifetime for a reference book!
> > > >
> > > > Al
> > > >
> > > > Ken Wada wrote:
> > > >
> > > > > RE:Learning ARM ASM
> > > > >
> > > > > Hello Chip;
> > > > > You need the "Arm Archtitecture Reference Manual"
> > > > >
> > > > > Ken Wada
> > > > >
> > > > > Yahoo! Groups Sponsor
> > > > > ADVERTISEMENT
> > > > > <http://us.ard.yahoo.com/SIG=129qe2qbj/M=298184.6191685.
> 7192823.
> > > 3001176/D=groups/S=1706554205:
> > > HM/EXP=1112112871/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.
> > > com/Default?mqso=60190075>
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> ----------------------------------------------------------------------
> > > --
> > > > > Yahoo! Groups Links
> > > > >
> > > > >     * To visit your group on the web, go to:
> > > > >       http://groups.yahoo.com/group/lpc2000/
> > > > >      
> > > > >     * To unsubscribe from this group, send an email to:
> > > > >       lpc2000-unsubscribe@yahoogroups.com
> > > > >       <mailto:lpc2000-unsubscribe@yahoogroups.com?
> > > subject=Unsubscribe>
> > > > >      
> > > > >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms
> of
> > > > >       Service <http://docs.yahoo.com/info/terms/>.
> > > > >
> > > > >
> > > >
> > >
> >---------------------------------------------------------------------
> > > ---
> > > > >
> > > > >No virus found in this incoming message.
> > > > >Checked by AVG Anti-Virus.
> > > > >Version: 7.0.308 / Virus Database: 266.8.4 - Release Date:
> > > 27/03/2005
> > > > >
> > > > >
> > >
> > >
> > >
> > >
> > > Yahoo! Groups Sponsor
> > > ADVERTISEMENT
> > > <http://us.ard.yahoo.com/SIG=129qgbrc3/M=298184.6191685.7192823.
> 3001176/D=groups/S=1706554205:
> HM/EXP=1112116331/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.
> com/Default?mqso=60190075>
> > >
> > >
> > >
> > >
> ----------------------------------------------------------------------
> --
> > > Yahoo! Groups Links
> > >
> > >     * To visit your group on the web, go to:
> > >       http://groups.yahoo.com/group/lpc2000/
> > >       
> > >     * To unsubscribe from this group, send an email to:
> > >       lpc2000-unsubscribe@yahoogroups.com
> > >       <mailto:lpc2000-unsubscribe@yahoogroups.com?
> subject=Unsubscribe>
> > >       
> > >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > >       Service <http://docs.yahoo.com/info/terms/>.
> > >
> > >
> >
> >---------------------------------------------------------------------
> ---
> > >
> > >No virus found in this incoming message.
> > >Checked by AVG Anti-Virus.
> > >Version: 7.0.308 / Virus Database: 266.8.4 - Release Date:
> 27/03/2005
> > > 
> > >
>
>
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
> <http://us.ard.yahoo.com/SIG=1292ne6g0/M=298184.6018725.7038619.3001176/D=groups/S=1706554205:HM/EXP=1112143341/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075> 
>
>
>
> ------------------------------------------------------------------------
> Yahoo! Groups Links
>
>     * To visit your group on the web, go to:
>       http://groups.yahoo.com/group/lpc2000/
>        
>     * To unsubscribe from this group, send an email to:
>       lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 27/03/2005
>  
>

Re: Learning ARM ASM

2005-03-29 by Ken Wada

A lot of my buddies use a 'C' compiler for the PIC chip! And this 
thing is really resource constrained!

My most extreme project is using the Philips 83C751 chip. I believe, 
it had no XDATA ram, and only 2K of code available. It had a bunch of 
features in it, (mktg. wanted it this way).

did the entire thing using the Keil 'C' compiler with some 
hand-tweaked assembly language thrown in.

If you want low-power consumption, then in my opinion, the Texas 
Instruments MSP430 chip is king! Couple this thing with that Pumpkin 
OS, and a decent 'C' compiler, and you can really make that chip rip!

Ken Wada

--- In lpc2000@yahoogroups.com, Onestone <onestone@b...> wrote:
> Of course it depends what you work on, I've been that path and come 
back 
> again (although a while ago now). The reason is simple. 99% of 
> everything I am currently working on has extreme size or power 
> consumption requirements, but often has a fair degree of 
computational 
> complexity. It would be real nice to bolt in an RTOS, and a few off 
the 
> shelf parts, patch it together with a little C and spit out a 
product. 
> The problem is I haven't yet found any combination that can do this 
fast 
> enough, or compactly enough for my needs. I do test the compilers 
and 
> other tools that come with development kits I buy, but haven't yet 
found 
> one that could do what I need. When I do I'll buy it.
> 
> In the mean time my products create their own market niche. The 
market 
> for my two main products wouldn't exist if they were more expensive, 
> bigger, or ran for less time between charges. All unachievable with 
COTs 
> ttechniques.
> 
> Al
> 
> kennethwada wrote:
> 
> >
> > heh...
> >
> > I used to do that! In fact, I was a big proponent of always doing 
the
> > 1st project with some 'XYZ-processor architecture' ENTIRELY in
> > assembler. With technological life-cycles now measured in months I 
no
> > longer have the luxury of doing this 'old-school' thing anymore.
> >
> > About the only thing I will do hard-core assembly on is the
> > highly-tweaked DSP/signal processing using FPGA cores, or 
specialized
> > DSPs anymore. Squeezing every extra MIPS is usually worth the 
hassle
> > of the extra effort and obtuseness of highly-crafted assembler in 
this
> > case.
> >
> > In fact, I used to pooh-pooh shrink-wrapped RTOS's! I was of the
> > following camp..."I can write my own RTOS, why...I only need that
> > infinite while(1) loop, and I am fine!". Now that I have spec'd in 
a
> > bunch of these shrink-wrapped RTOS's, and written drivers, and a 
bunch
> > of other stuff like this; I now find myself recommending
> > shrink-wrapped RTOS's, file-systems and communications servers 
too!
> >
> > The trick to successful deployment of this off-the-shelf 
technology is
> > to wrapper this stuff so most of the details are hidden to the
> > applications developers. All the apps-developers need to know is 
how
> > to write generic C/C++ code in a generic environment like DOS, 
Linux,
> > or Windows!
> >
> > Ken Wada
> >
> > --- In lpc2000@yahoogroups.com, Onestone <onestone@b...> wrote:
> > > Ah but the objective of learnig ARM ASM was to understand the 
fine
> > > details of the instruction set to write my own optimised code, 
not
> > to
> > > use C, or somebody elses generic optimisation.
> > >
> > > Al
> > >
> > > kennethwada wrote:
> > >
> > > >
> > > > The fastest way to use this is to do the following:
> > > > - Write a small piece of Keil "C" code
> > > > - Compile with the listing and Assemble source options checked
> > > > - look at dissassembled code with the "Arm Architeture 
Reference
> > > > Manual at your side"
> > > >
> > > > I did this, and managed to get some quality assembly language 
code
> > up
> > > > and operational in an hour or two!
> > > >
> > > > Most of my asm code is in the startup. With the Keil tools, 
there
> > > > really is very little, or no need to write your own assembler.
> > > >
> > > > Ken Wada
> > > >
> > > > --- In lpc2000@yahoogroups.com, Onestone <onestone@b...> 
wrote:
> > > > > And a lot of time. It's 811 pages long! few days read for a
> > decent
> > > > > novel, but a lifetime for a reference book!
> > > > >
> > > > > Al
> > > > >
> > > > > Ken Wada wrote:
> > > > >
> > > > > > RE:Learning ARM ASM
> > > > > >
> > > > > > Hello Chip;
> > > > > > You need the "Arm Archtitecture Reference Manual"
> > > > > >
> > > > > > Ken Wada
> > > > > >
> > > > > > Yahoo! Groups Sponsor
> > > > > > ADVERTISEMENT
> > > > > > <http://us.ard.yahoo.com/SIG=129qe2qbj/M=298184.6191685.
> > 7192823.
> > > > 3001176/D=groups/S=1706554205:
> > > > HM/EXP=1112112871/A=2593423/R=0/SIG=11el9gslf/*http://www.
netflix.
> > > > com/Default?mqso=60190075>
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > 
----------------------------------------------------------------------
> > > > --
> > > > > > Yahoo! Groups Links
> > > > > >
> > > > > >     * To visit your group on the web, go to:
> > > > > >       http://groups.yahoo.com/group/lpc2000/
> > > > > >      
> > > > > >     * To unsubscribe from this group, send an email to:
> > > > > >       lpc2000-unsubscribe@yahoogroups.com
> > > > > >       <mailto:lpc2000-unsubscribe@yahoogroups.com?
> > > > subject=Unsubscribe>
> > > > > >      
> > > > > >     * Your use of Yahoo! Groups is subject to the Yahoo! 
Terms
> > of
> > > > > >       Service <http://docs.yahoo.com/info/terms/>.
> > > > > >
> > > > > >
> > > > >
> > > >
> > 
>---------------------------------------------------------------------
> > > > ---
> > > > > >
> > > > > >No virus found in this incoming message.
> > > > > >Checked by AVG Anti-Virus.
> > > > > >Version: 7.0.308 / Virus Database: 266.8.4 - Release Date:
> > > > 27/03/2005
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> > > >
> > > > Yahoo! Groups Sponsor
> > > > ADVERTISEMENT
> > > > <http://us.ard.yahoo.com/SIG=129qgbrc3/M=298184.6191685.
7192823.
> > 3001176/D=groups/S=1706554205:
> > HM/EXP=1112116331/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.
> > com/Default?mqso=60190075>
> > > >
> > > >
> > > >
> > > >
> > 
----------------------------------------------------------------------
> > --
> > > > Yahoo! Groups Links
> > > >
> > > >     * To visit your group on the web, go to:
> > > >       http://groups.yahoo.com/group/lpc2000/
> > > >       
> > > >     * To unsubscribe from this group, send an email to:
> > > >       lpc2000-unsubscribe@yahoogroups.com
> > > >       <mailto:lpc2000-unsubscribe@yahoogroups.com?
> > subject=Unsubscribe>
> > > >       
> > > >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of
> > > >       Service <http://docs.yahoo.com/info/terms/>.
> > > >
> > > >
> > >
> > 
>---------------------------------------------------------------------
> > ---
> > > >
> > > >No virus found in this incoming message.
> > > >Checked by AVG Anti-Virus.
> > > >Version: 7.0.308 / Virus Database: 266.8.4 - Release Date:
> > 27/03/2005
> > > > 
> > > >
> >
> >
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> > <http://us.ard.yahoo.com/SIG=1292ne6g0/M=298184.6018725.7038619.
3001176/D=groups/S=1706554205:
HM/EXP=1112143341/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.
com/Default?mqso=60190075> 
> >
> >
> >
> > 
----------------------------------------------------------------------
--
> > Yahoo! Groups Links
> >
> >     * To visit your group on the web, go to:
> >       http://groups.yahoo.com/group/lpc2000/
> >        
> >     * To unsubscribe from this group, send an email to:
> >       lpc2000-unsubscribe@yahoogroups.com
> >       <mailto:lpc2000-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
> >        
> >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> 
>---------------------------------------------------------------------
---
> >
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 
27/03/2005
> >  
> >

Re: [lpc2000] Re: Learning ARM ASM

2005-03-29 by Onestone

Ken Wada wrote:

>
>  A lot of my buddies use a 'C' compiler for the PIC chip! And this
>  thing is really resource constrained!

Yes but could they build a complete, full function ECU in a PIC12C674 
running C? Or a 3D navigational system in a PIC16C73?

>
>  My most extreme project is using the Philips 83C751 chip. I believe,
>  it had no XDATA ram, and only 2K of code available. It had a bunch
>  of features in it, (mktg. wanted it this way).

Thankfully my days of being jerked around by marketing are long gone. 
correcting the overselling by salesmen is something I can live without.

I guess when it comes to extreme my most extreme, in terms of small, 
other than the 8 pin ECU was a commercial white goods design done using 
a PIC12C508. The client had been using a philips ASIC, but Philips 
decided to compete in their market and withdrew the chip(s). Philips had 
about 6 versions for different maisn voltages and motor control 
sequences. The Philips solution cost $4.50 built and assembled in 100k 
lots. The task was to match that with a single micro based design that 
could fill all 6 versions, while meeting all international standards, 
being able to operate on a  biphase inverter etc.  The whole thing used 
268bytes of code and 15 bytes of RAM. It has sold massively world wide. 
Due to the lack of interrupts on the '508 C was out of the question. It 
simply couldn't respond to zero crossing fast enough, nor handle the 
remaining processing, and timing , which was tightly bound to the 
software, ie the whole thing was a series of hard wired timing loops.

Al

>
>  did the entire thing using the Keil 'C' compiler with some
>  hand-tweaked assembly language thrown in.
>
>  If you want low-power consumption, then in my opinion, the Texas
>  Instruments MSP430 chip is king! Couple this thing with that Pumpkin
>  OS, and a decent 'C' compiler, and you can really make that chip
>  rip!
>
>

I use the MSP430 a lot. It is the core of two of my main products, a
3D imaging and analysis system, and a military class data
accumulator. The former is cost and power constrained, the latter
size and power constrained. In fact I joined the LPC2000 group as I
needed something even faster, with low power, however, although I
haven't completed my LPc evaluation yet, it so far loses out hands
down to the ADuC7024 that I'm also evaluating, and, in terms of power
consumption per executed task both are looking a bit stiff against
the MAXQ2000, which is my third current evaluation part.


>  Ken Wada
>
>  --- In lpc2000@yahoogroups.com, Onestone <onestone@b...> wrote:
> > Of course it depends what you work on, I've been that path and come
> >
> >
>  back
> > again (although a while ago now). The reason is simple. 99% of
> > everything I am currently working on has extreme size or power
> > consumption requirements, but often has a fair degree of
>  computational
> > complexity. It would be real nice to bolt in an RTOS, and a few off
> >
> >
>  the
> > shelf parts, patch it together with a little C and spit out a
>  product.
> > The problem is I haven't yet found any combination that can do this
> >
> >
>  fast
> > enough, or compactly enough for my needs. I do test the compilers
>  and
> > other tools that come with development kits I buy, but haven't yet
>  found
> > one that could do what I need. When I do I'll buy it.
> >
> > In the mean time my products create their own market niche. The
>  market
> > for my two main products wouldn't exist if they were more
> > expensive, bigger, or ran for less time between charges. All
> > unachievable with
>  COTs
> > ttechniques.
> >
> > Al
> >
> > kennethwada wrote:
> >
> >>
> >> heh...
> >>
> >> I used to do that! In fact, I was a big proponent of always doing
> >>
> >>
>  the
> >> 1st project with some 'XYZ-processor architecture' ENTIRELY in
> >> assembler. With technological life-cycles now measured in months
> >> I
>  no
> >> longer have the luxury of doing this 'old-school' thing anymore.
> >>
> >> About the only thing I will do hard-core assembly on is the
> >> highly-tweaked DSP/signal processing using FPGA cores, or
>  specialized
> >> DSPs anymore. Squeezing every extra MIPS is usually worth the
>  hassle
> >> of the extra effort and obtuseness of highly-crafted assembler in
> >>
> >>
>  this
> >> case.
> >>
> >> In fact, I used to pooh-pooh shrink-wrapped RTOS's! I was of the
> >> following camp..."I can write my own RTOS, why...I only need
> >> that infinite while(1) loop, and I am fine!". Now that I have
> >> spec'd in
>  a
> >> bunch of these shrink-wrapped RTOS's, and written drivers, and a
>  bunch
> >> of other stuff like this; I now find myself recommending
> >> shrink-wrapped RTOS's, file-systems and communications servers
>  too!
> >>
> >> The trick to successful deployment of this off-the-shelf
>  technology is
> >> to wrapper this stuff so most of the details are hidden to the
> >> applications developers. All the apps-developers need to know is
>  how
> >> to write generic C/C++ code in a generic environment like DOS,
>  Linux,
> >> or Windows!
> >>
> >> Ken Wada
> >>
> >> --- In lpc2000@yahoogroups.com, Onestone <onestone@b...> wrote:
> >>> Ah but the objective of learnig ARM ASM was to understand the
>  fine
> >>> details of the instruction set to write my own optimised code,
>  not
> >> to
> >>> use C, or somebody elses generic optimisation.
> >>>
> >>> Al
> >>>
> >>> kennethwada wrote:
> >>>
> >>>>
> >>>> The fastest way to use this is to do the following: - Write a
> >>>> small piece of Keil "C" code - Compile with the listing and
> >>>> Assemble source options checked - look at dissassembled code
> >>>> with the "Arm Architeture
>  Reference
> >>>> Manual at your side"
> >>>>
> >>>> I did this, and managed to get some quality assembly language
> >>>>
> >>>>
>  code
> >> up
> >>>> and operational in an hour or two!
> >>>>
> >>>> Most of my asm code is in the startup. With the Keil tools,
>  there
> >>>> really is very little, or no need to write your own
> >>>> assembler.
> >>>>
> >>>> Ken Wada
> >>>>
> >>>> --- In lpc2000@yahoogroups.com, Onestone <onestone@b...>
>  wrote:
> >>>>> And a lot of time. It's 811 pages long! few days read for a
> >>>>>
> >>>>>
> >> decent
> >>>>> novel, but a lifetime for a reference book!
> >>>>>
> >>>>> Al
> >>>>>
> >>>>> Ken Wada wrote:
> >>>>>
> >>>>>> RE:Learning ARM ASM
> >>>>>>
> >>>>>> Hello Chip; You need the "Arm Archtitecture Reference
> >>>>>> Manual"
> >>>>>>
> >>>>>> Ken Wada
> >>>>>>
> >>>>>> Yahoo! Groups Sponsor ADVERTISEMENT
> >>>>>> <http://us.ard.yahoo.com/SIG=129qe2qbj/M=298184.6191685.
> >> 7192823.
> >>>> 3001176/D=groups/S=1706554205:
> >>>> HM/EXP=1112112871/A=2593423/R=0/SIG=11el9gslf/*http://www.
>  netflix.
> >>>> com/Default?mqso=60190075>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>
>  ----------------------------------------------------------------------
>
>
> >>>> --
> >>>>>> Yahoo! Groups Links
> >>>>>>
> >>>>>> * To visit your group on the web, go to:
> >>>>>> http://groups.yahoo.com/group/lpc2000/
> >>>>>>
> >>>>>> * To unsubscribe from this group, send an email to:
> >>>>>> lpc2000-unsubscribe@yahoogroups.com
> >>>>>> <mailto:lpc2000-unsubscribe@yahoogroups.com?
> >>>> subject=Unsubscribe>
> >>>>>>
> >>>>>> * Your use of Yahoo! Groups is subject to the Yahoo!
>  Terms
> >> of
> >>>>>> Service <http://docs.yahoo.com/info/terms/>.
> >>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>
> > ---------------------------------------------------------------------
> >
> >
> >>>> ---
> >>>>>>
> >>>>>> No virus found in this incoming message. Checked by AVG
> >>>>>> Anti-Virus. Version: 7.0.308 / Virus Database: 266.8.4 -
> >>>>>> Release Date:
> >>>> 27/03/2005
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> Yahoo! Groups Sponsor ADVERTISEMENT
> >>>> <http://us.ard.yahoo.com/SIG=129qgbrc3/M=298184.6191685.
>  7192823.
> >> 3001176/D=groups/S=1706554205:
> >> HM/EXP=1112116331/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.
> >> com/Default?mqso=60190075>
> >>>>
> >>>>
> >>>>
> >>>>
> >>
>  ----------------------------------------------------------------------
>
>
> >> --
> >>>> Yahoo! Groups Links
> >>>>
> >>>> * To visit your group on the web, go to:
> >>>> http://groups.yahoo.com/group/lpc2000/
> >>>>
> >>>> * To unsubscribe from this group, send an email to:
> >>>> lpc2000-unsubscribe@yahoogroups.com
> >>>> <mailto:lpc2000-unsubscribe@yahoogroups.com?
> >> subject=Unsubscribe>
> >>>>
> >>>> * Your use of Yahoo! Groups is subject to the Yahoo! Terms
>  of
> >>>> Service <http://docs.yahoo.com/info/terms/>.
> >>>>
> >>>>
> >>>
> >>
> > ---------------------------------------------------------------------
> >
> >
> >> ---
> >>>>
> >>>> No virus found in this incoming message. Checked by AVG
> >>>> Anti-Virus. Version: 7.0.308 / Virus Database: 266.8.4 -
> >>>> Release Date:
> >> 27/03/2005
> >>>>
> >>>>
> >>
> >>
> >>
> >>
> >> Yahoo! Groups Sponsor ADVERTISEMENT
> >> <http://us.ard.yahoo.com/SIG=1292ne6g0/M=298184.6018725.7038619.
>  3001176/D=groups/S=1706554205:
>  HM/EXP=1112143341/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.
>  com/Default?mqso=60190075>
> >>
> >>
> >>
> >>
>  ----------------------------------------------------------------------
>  --
> >> Yahoo! Groups Links
> >>
> >> * To visit your group on the web, go to:
> >> http://groups.yahoo.com/group/lpc2000/
> >>
> >> * To unsubscribe from this group, send an email to:
> >> lpc2000-unsubscribe@yahoogroups.com
> >> <mailto:lpc2000-unsubscribe@yahoogroups.com?
>  subject=Unsubscribe>
> >>
> >> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >> Service <http://docs.yahoo.com/info/terms/>.
> >>
> >>
> >
> > ---------------------------------------------------------------------
> >
> >
>  ---
> >>
> >> No virus found in this incoming message. Checked by AVG
> >> Anti-Virus. Version: 7.0.308 / Virus Database: 266.8.4 - Release
> >> Date:
>  27/03/2005
> >>
> >>
>
>
>
>
>  Yahoo! Groups Sponsor ADVERTISEMENT
> 
<http://us.ard.yahoo.com/SIG=129jhl863/M=298184.6018725.7038619.3001176/D=groups/S=1706554205:HM/EXP=1112146119/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075>
Show quoted textHide quoted text
>
>
>
>
>  ------------------------- Yahoo! Groups Links
>
>  * To visit your group on the web, go to:
>  http://groups.yahoo.com/group/lpc2000/
>
>  * To unsubscribe from this group, send an email to:
>  lpc2000-unsubscribe@yahoogroups.com
>  <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>  * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
>  <http://docs.yahoo.com/info/terms/>.
>
>
>
>  -------------------------
>
>  No virus found in this incoming message. Checked by AVG Anti-Virus.
>  Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 27/03/2005

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.