avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Re: Passing a string variable to lcd_puts


From: Bob Paddock
Subject: Re: [avr-gcc-list] Re: Passing a string variable to lcd_puts
Date: Mon, 30 Mar 2009 21:32:51 -0400

On Mon, Mar 30, 2009 at 2:48 PM, David VanHorn <address@hidden> wrote:
> I thought I must be doing something fairly trivial wrong, this IS
> only my second project in C...

Dave, I have two recommendations for a beginner at C.

1) Buy yourself a copy of Gimpel Lint, even if you have to pay
for it out of your own pocket, it will be money well spent in the long
run.  http://www.gimpel.com/ .  It will be the best C tutor
you could have.   When you run your first piece of code through
it you will be appalled at the number errors it finds.  Not because
you are a beginner, tho that might help, it is because in C it is
so easy to shoot yourself in the foot.   Alas there are few alternative
languages for dealing at the bare metal level.

Also you can learn a lot just by reading Gimpel's Bug of the Month:

http://www.gimpel.com/html/bugs.htm

2) Get yourself a copy of the MISRA guidelines:
http://www.misra-c2.com/
Right now someone on the list is reading that and saying
"Say what?  Recommending MISRA to a new C Programmer?".
Yes.  Even if you don't try to write your code to MISRA, the explanation
of the rules, ie. the landmines you don't want to step on will be beneficial
to your C education.

If you get truly and utterly stuck, I'm about 90 miles from you and can
come down your way some weekend if you need any help.

-- 
http://www.wearablesmartsensors.com/
http://www.softwaresafety.net/
http://www.designer-iii.com/
http://www.unusualresearch.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]