| Author |
Message |
hoclv
Joined: 12 Feb 2003 Posts: 24 Location: VIETNAM
|
25 May 2003 4:30 What C compiler is the best for AVR |
|
|
|
What C compiler is the best for AVR?
(Compiler, Link, Debug, Emulation...)
Thanks.
|
|
| Back to top |
|
 |
ME
Joined: 14 Mar 2002 Posts: 1771 Helped: 11
|
25 May 2003 12:38 |
|
|
|
Readt his:
Which C-compiler should I choose?
www.avrfreaks.com/Freaks/Articles/AdamJohnson/intro.php
I have heard that IAR is the best, but it is also the most expensive. IAR was actuallly involved in the development of the AVR: www.atmel.com/dyn/resources/prod_documents/COMPILER.pdf
Fine tuning AVR
There are several advantages in using HLLs in stead of using Assembly language when
developing microcontroller applications. There has, however, traditionally been one
major disadvantage: the size of the code increases. The AVR microcontroller was
developed with the C language in mind in order to make it possible to construct a code
efficient C compiler for AVR. To improve this feature even more, the development of
the C compiler was started before the architecture and the instruction set were
completed. By allowing professional compiler developers at IAR Systems in Sweden
to comment on the architecture and instruction set, we were able to make a
microcontroller very well suited for C compiler generated code.
|
|
| Back to top |
|
 |
ME
Joined: 14 Mar 2002 Posts: 1771 Helped: 11
|
25 May 2003 20:55 |
|
|
|
AVR Compiler overview:
www.omegav.ntnu.no/~karlto/avr/ccomp.html
|
|
| Back to top |
|
 |
Antharax
Joined: 01 Jan 1970 Posts: 293 Helped: 13
|
25 May 2003 23:14 |
|
|
|
The best compiler for AVR is the gcc port for AVR (FREE, available on windows and linux)
But it might be a bit hard to learn if you're used to gui's and stuff.
Compared to code size and efficiency it beats the imagecraft compiler. (i've heard it beats the IAR compiler too but i cannot confirm that one)
When you need an "easy" compiler, IAR is probably the best for AVR (as keil is the best for 8051). Imagecraft is OK although the gui sucks (especialy the editor and project management have lack of gui features!!! When you use it, you'd probably wanna use a descent editor because even my scrollmouse doesn't work with it!)
Antharax
|
|
| Back to top |
|
 |
ME
Joined: 14 Mar 2002 Posts: 1771 Helped: 11
|
25 May 2003 23:57 |
|
|
|
CodeVision is probably the easiest compiler to use with its CodeWizard to start new projects in no time.
I would choose between these four compilers:
IAR www.IAR.com - Very expensive but very professional and supports almost every other MCU families, which makes it easy to change to another MCU family.
CodeVison www.hpinfotech.ro - Good price. Easy CodeWizard
ImageCraft www.imagecraft.com/software - Fairly priced. Make compilers for Motorola, Texas Instruments & Cypress Micros as well
WinAVR (Windows version of AVR GCC) www.avrfreaks.com/AVRGCC/index.php - Free and very good despite of that.
Last edited by ME on 26 Oct 2003 10:06; edited 2 times in total |
|
| Back to top |
|
 |
visualart
Joined: 21 Dec 2001 Posts: 582 Helped: 26
|
26 May 2003 4:25 |
|
|
|
| I surpport that IAR is the best, It is all-sided.
|
|
| Back to top |
|
 |
Victory1981
Joined: 21 May 2003 Posts: 12
|
31 May 2003 4:41 WinAVR is very good |
|
|
|
WinAVR is very good, and is updated almost every month.
The only problem is WinAVR doesn't have it's own IDE, and you have to write"makefile", so it maybe difficult for beginner. But , writing "makefile" is not very difficult (you can just modify the sample makefile a bit), and you can make your own IDE with UltraEditor or SourceInsight. So, I recommend WinAVR.
|
|
| Back to top |
|
 |
cancel
Joined: 27 May 2001 Posts: 283 Helped: 11
|
31 May 2003 15:16 avr compiller |
|
|
|
hi ...
i tried iar,icc,cvavr and gcc ... i preffer iar because of very good code produced. Besides of this i also found it very strict iow it does what you programmed it for. Also gui is very fine .Icc has some undescribed bugs,
gcc is quite late with support of new devices and cvavr is very good for small easy project .. when you plan large project go fo iar .. when you programm small chip go for cvavr. You can integrate AVREAL32 programmer to it very easy .. it is very good combination
regards
cancel
|
|
| Back to top |
|
 |
John Tonny
Joined: 28 Apr 2003 Posts: 7
|
03 Sep 2003 6:22 |
|
|
|
| IAR is the best,i agree
|
|
| Back to top |
|
 |
nooknikz
Joined: 22 Apr 2002 Posts: 401 Helped: 21 Location: thailand
|
03 Sep 2003 7:17 |
|
|
|
I choose CodevisionAVR to Avr develop.
Last edited by nooknikz on 03 Sep 2003 7:29; edited 1 time in total |
|
| Back to top |
|
 |
ek74
Joined: 18 Jun 2003 Posts: 2
|
03 Sep 2003 7:24 |
|
|
|
| I choose WinAVR
|
|
| Back to top |
|
 |
w074n
Joined: 04 Apr 2003 Posts: 3
|
08 Sep 2003 5:15 |
|
|
|
Just now I'm deciding what to use as a main C compiler for AVR and what I can say based in what I've played is:
IAR
Pro: OK for medium-big-HUGE, or if you plan to work in various uP (ARM/PIC/AVR)
Con: not very user friendly, no appwizards, expensive
ICC
pro: OK for little-medium, user friendly, lot of code in the web, appwizard
con: project support
GNU:
pro:gnu
con: cmdline
I like ICC, I think IAR will be more useful in a long time basis
Only my 2c, you know.
/W
|
|
| Back to top |
|
 |
jivega
Joined: 26 Oct 2001 Posts: 35 Location: South-America
|
08 Sep 2003 16:40 |
|
|
|
| I choose IAR + Proteus for simulation and debug.
|
|
| Back to top |
|
 |
vkem
Joined: 09 Sep 2003 Posts: 2
|
09 Sep 2003 14:06 |
|
|
|
I've found WinAVR from AVR Freaks fine for small to medium scale projects. Theres plenty of people around who know a lot about it and are prepared to help for free.
vkem
|
|
| Back to top |
|
 |
lzgq
Joined: 25 Apr 2003 Posts: 5
|
10 Sep 2003 3:06 |
|
|
|
| I choose cvavr
|
|
| Back to top |
|
 |
senthils2k
Joined: 24 Sep 2003 Posts: 4
|
24 Sep 2003 10:10 |
|
|
|
hai,
i choose icc compiler .its easy to use.and also its has code generatos.
|
|
| Back to top |
|
 |