piclist 2007\03\12\070516a >
Thread: Why bother with Assembly?
face picon face BY : Alan B. Pearce email (remove spam text)

At risk of continuing the thread ...

> > 3) USE less memory. Regardless of the language for HLL
> > it use plenty of memory of the MCU. Assembly is
> > compact in size therefore and USE less memory and ADD
> > in more features.
> Debatable. An asm beginner may use more memory than
> an beginner using
> a good compiler.

For a number of modern compilers I believe this is a red herring. It may
well have been true in the past, but as someone else has pointed out, there
are some very clever people making the compilers these days, and
contributors have commented here on how they have managed to get smaller
programs in C than they have in assembly, due to compiler optimizations.

The problem I have with going to an HLL is using it enough to keep in
practice with it. Using it for a one off project gets one familiar with some
features, and then the next time one comes to use it again, there is another
learning curve to get back the knowledge lost over time. I do feel that the
relearning curve is easier with ASM.

Maybe this will change with a couple of 18F projects I have in mind, where
having a no-cost compiler available makes one feel that there is nothing to
lose by attempting to do it in C, along with having some linkable libraries
available for I/O interfacing.

<02be01c76496$4c41a130$1979f682@space.rl.ac.uk> 7bit

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Why bother with Assembly?

month overview.

new search...