Re: PIC versus AVR



On 2006-08-04, FreeRTOS.org <nospam@xxxxxxxxxx> wrote:

David Kelly wrote:


compiler. I looked a lot at the output of avr-gcc. It never wrote
assembly that I could improve enough to justify the effort to rewrite in
assembly. Once or twice I changed a C expression for better assembly

Mmm, maybe. I'm currently evaluating avrgcc (with which I have a lot of
experience) against IAR and Rowley (with which I have relatively little
experience on AVR targets). There _are_ differences.

One big difference:

AVRGCC - single stack, does something odd when making function calls.

IAR, Rowley, ImageCraft - separate call and data stacks to prevent the
necessity for the above odd thing.

And yet people claim the AVR was designed to be C-friendly.
I've looked at AVR code generaged by GCC and IAR. The AVR is
not C-friendly. It may not be actively hostile like the 8051
or PIC, but it's not C friendly.

Any processor that falls over when you attempt to do any
pointer manipulation isn't C-friendly.

--
Grant Edwards grante Yow! Yow! Maybe I should
at have asked for my Neutron
visi.com Bomb in PAISLEY--
.



Relevant Pages

  • Re: Moving from 8051 to AVR
    ... This applies to working with the AVR just ... Yes, that was the original argument - although it has now been slightly sidetracked by your claim as to *why* it is good, which was that it means any old PC programmer can then write good embedded code for the chip. ... IAR have plenty of knowledge of C compilers, but they have their own particular way of handling microcontroller functionality that has no place in standard C, such as handling flash memory spaces. ...
    (comp.arch.embedded)
  • Re: AVR compilers
    ... > CodeVision C for AVR ... You have JTAG ICE ... Download trial version from IAR webpage and they give you new trial license ... The next tool is GCC for AVR with Visual Micro Lab IDE. ...
    (comp.arch.embedded)
  • Re: PIC versus AVR
    ... necessity for the above odd thing. ... And yet people claim the AVR was designed to be C-friendly. ... I've looked at AVR code generaged by GCC and IAR. ... You are probably saying that an 8 bit architecture is inherently ...
    (comp.arch.embedded)
  • Re: PIC versus AVR
    ... necessity for the above odd thing. ... And yet people claim the AVR was designed to be C-friendly. ... I've looked at AVR code generaged by GCC and IAR. ... You are probably saying that an 8 bit architecture is inherently ...
    (comp.arch.embedded)
  • Re: PIC versus AVR
    ... AVRGCC - single stack, does something odd when making function calls. ... IAR, Rowley, ImageCraft - separate call and data stacks to prevent the ...
    (comp.arch.embedded)