Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] C programming on AVR

2008-03-22 by Leon

----- Original Message ----- 
From: "Mike Harrison" <mike@whitewing.co.uk>
To: <AVR-Chat@yahoogroups.com>
Sent: Saturday, March 22, 2008 8:39 PM
Subject: Re: [AVR-Chat] C programming on AVR


> >I suppose it
>>depends on your definition of 'straightforward' but it's hard to imagine
>>anyone who's working on a serious piece of software who would claim that
>>assembly is easier than C.
>
> The comment was about the devtools, not the language. A C compile/link 
> process is inevitably more
> complex than an assemble one. Poor defaults/configs can make it a lot more 
> complex than necessary.
>
>>I don't think that an embedded platform is the right choice for learning
>>C. Learn C on a PC (Linux, windows, Mac, whatever) and then apply those
>>skills to develop embedded apps
>
> NO NO NO!!!
>
> If you want to write for embedded, learn on that, preferably via assembler 
> first so you understand
> the hardware. PC programming allows far too many bad habits to develop.

There weren't any real embedded C compilers when I first used the language, 
most people used assembler on MCUs and desktop machines (before the PC). I 
used a C compiler for my TRS-80 when one became available to develop code 
for an embedded Z80 once, with some some difficulty, just to see if it was 
feasible.

Leon
--
Leon Heller
Amateur radio call-sign G1HSM
Yaesu FT-817ND and FT-857D transceivers
Suzuki SV1000S motorcycle
leon355@btinternet.com
http://www.geocities.com/leon_heller

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.