Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What is the best C compiler for AVR?

Status
Not open for further replies.

maziar

Full Member level 4
Joined
Jun 6, 2001
Messages
195
Helped
5
Reputation
10
Reaction score
1
Trophy points
1,298
Location
Islamic republic of Iran
Activity points
1,564
post compile optimizer

i try select best c compile for avr for :

1. optimization (Size & Speed) [most important]
2. Bug free
3. good library
4. popular
5. good IDE

which of c compiler avr is better ? can help in compare ?
 

ramesh

Advanced Member level 1
Joined
Jan 19, 2003
Messages
424
Helped
14
Reputation
28
Reaction score
14
Trophy points
1,298
Activity points
2,943
Re: Best C compiler for AVR

Most compilers are nearly bug free. But very difficult to expect and ensure zero bugs? Only by using!
 

C-Man

Advanced Member level 4
Joined
Jul 19, 2001
Messages
1,059
Helped
90
Reputation
180
Reaction score
17
Trophy points
1,318
Activity points
10,189
Re: Best C compiler for AVR

Also look here:
**broken link removed**

best regards
 

sadat007

Full Member level 4
Joined
Dec 31, 1999
Messages
235
Helped
13
Reputation
26
Reaction score
7
Trophy points
1,298
Location
Pakistan
Activity points
1,773
Re: Best C compiler for AVR

GCC C compiler have power full libs, no experience
 

7rots51

Advanced Member level 4
Joined
May 17, 2002
Messages
1,184
Helped
25
Reputation
50
Reaction score
12
Trophy points
1,318
Activity points
9,635
Re: Best C compiler for AVR

I worked with im@gecraft but its IDE is not good,I can say it have no IDE!

I think I@R c c0mpiler is the best for @VR.But you can not find a compiler of @vr Like as KKKKKeeeeeiiiillllll for 8o51.


bye
 

tvdd43

Junior Member level 2
Joined
Jul 13, 2002
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
98
Re: Best C compiler for AVR

I think that I@R C compiler is a good choice
 

ME

Advanced Member level 4
Joined
Mar 14, 2002
Messages
1,309
Helped
55
Reputation
112
Reaction score
40
Trophy points
1,328
Activity points
14,861
I would choose IAR or CodeVision.
 

petertang

Newbie level 5
Joined
Oct 26, 2003
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
71
Re: Best C compiler for AVR

If your code is not big, use codevision. Otherwise use IAR.
 

konglong

Junior Member level 1
Joined
Jul 8, 2002
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
20
My opinion is -->Codevision
 

andyyau

Junior Member level 2
Joined
Jul 12, 2002
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
116
Re: Best C compiler for AVR

My experience,

a program for AVR Tiny26

Imagecraft: code size 83%

IAR: 61%

See the difference?
 

ramesh

Advanced Member level 1
Joined
Jan 19, 2003
Messages
424
Helped
14
Reputation
28
Reaction score
14
Trophy points
1,298
Activity points
2,943
Re: Best C compiler for AVR

Hi andyyau
Did you check with Imagecraft Professional or Standard Version?
The Professional version incorporates code optimization and claims about 15% code size reduction!
 

maziar

Full Member level 4
Joined
Jun 6, 2001
Messages
195
Helped
5
Reputation
10
Reaction score
1
Trophy points
1,298
Location
Islamic republic of Iran
Activity points
1,564
Re: Best C compiler for AVR

andyyau said:
My experience,

a program for AVR Tiny26

Imagecraft: code size 83%

IAR: 61%

See the difference?


please more comment
i no undestand Iar better or imagecraft for optimization ?
 

ME

Advanced Member level 4
Joined
Mar 14, 2002
Messages
1,309
Helped
55
Reputation
112
Reaction score
40
Trophy points
1,328
Activity points
14,861
Re: Best C compiler for AVR

maziar said:
andyyau said:
My experience,

a program for AVR Tiny26

Imagecraft: code size 83%

IAR: 61%

See the difference?


please more comment
i no undestand Iar better or imagecraft for optimization ?
I guess he means that his program ueses 83% of the Flash mem when he compiles it with Imagecraft and 61% when compiled with IAR.
So IAR makes the most compact code of the two, at least in this case.

I don't know how CodeVision compares to these two compilers.
 

robotman

Member level 3
Joined
Jan 11, 2002
Messages
60
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
693
Re: Best C compiler for AVR

What ramesh is refering to is the version of im@gecraft. The pro version has a post compile optimizer, the standard version does not. If he compiled under the standard version, that might be the size discrepancy. At one point in time, I looked at the difference in the generation of the two different versions. It was just an easy way of generating more money.

As for my two cents, I have used GCC and Im@gecraft. I would pick Im@gecraft any day of the week. GCC has so many quirks. If the code is not written just right (and I am referring to how the compiler wants to see it, not C standard) all sorts of unexpected things happen.

robotman
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top