Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Differences between C compilers

2005-08-18 by Brian Dean

On Thu, Aug 18, 2005 at 11:15:00AM -0500, Thomas Keller wrote:

>    To be completely fair, let'd be realistic.  While such C code
> certainly has its place, inside something like a 2313 is NOT the
> place where it belongs.

I totally disagree with this.  The developer makes the decision of
what is or is not appropriate for his or her project.  If your
compiler is crippled and you have no choice, that is one thing.  But
blanket statements like that above are almost always wrong.

Just because someone stays away from useful features of the C language
because their compiler vendor doesn't support them is no reason to
claim those features aren't appropriate.  And then claiming you know
what is appropriate for other people's projects is pretty arrogant,
don't you think?  As Larry mentioned, pointers to functions, whether
in structs or out, are very useful, even on small chips; and when used
appropriately can actually _save_ program space, not to mention make
the code more readable and maintainable.

> either.  But be fair, if the comparison is what it will do for a
> tennsy little chip like the 2313, then your complaint is esoterica.

I don't think that is fair at all.

-Brian
-- 
Brian Dean
ATmega128 based MAVRIC controllers
http://www.bdmicro.com/

Attachments

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.