AVR MacPack: AVR development on Mac

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

AVR MacPack: AVR development on Mac

Post by christian » Mon Nov 26, 2007 3:29 pm

We have created a binary distribution of AVR GCC and associated tools for all Mac users. The package offers both, GCC version 3 and 4 because version 3 generates more efficient code. All software is compiled as universal binaries for Intel and PowerPC Macs.

See http://www.obdev.at/avrmacpack/ for more information.

qubit
Posts: 3
Joined: Sun Dec 02, 2007 2:51 pm

Post by qubit » Sun Dec 02, 2007 3:16 pm

Brilliant! It installed perfectly for me. Congratulations on the project.

Just one question: What is the deal with gcc3 creating smaller code? I tried it and indeed gcc3 makes smaller code for the few projects i tried. So do you recommend using gcc3?

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Sun Dec 02, 2007 3:40 pm

It's a matter of personal preference. Newer versions are not always better.

I, personally, prefer gcc 3 because of the somewhat smaller code and because I'm used to its behavior (which warnings are on by default and so on).

On the other hand, new features are only added to gcc 4. If you want any of these, you probably want gcc 4. In some situations, gcc 4 generates even more efficient code than gcc 3 and there is hope that code generation will be improved in the future.

andrewbenson
Posts: 4
Joined: Thu Nov 15, 2007 11:18 am

Post by andrewbenson » Tue Dec 04, 2007 8:57 am

This is really well put together. Thanks!
I particularly like the way you can switch over to gcc 3 for tighter code compiling, and the automatic creation of the project files.

This is the first packaging of AVR dev stuff for Mac that I has got me seriously considering doing my AVR development on the Mac side.

Andrew

aerodiver

AVR MacPack experience with XCode 3

Post by aerodiver » Tue Jan 08, 2008 1:02 am

Nice install, works great from the command line, but when using XCode 3 the PATH is missing for make. When clicking Build in XCode avr-gcc is not found.

Adding a PATH variable to the build target and ticking "pass build settings in environment" works.
PATH = "/usr/local/AVRMacPack/bin/:$PATH"



Is there a way I can configure XCode or your templates to set the PATH to avr-gcc by default?


Thanks,
Paul

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Tue Jan 08, 2008 1:12 pm

Yes, I just found that out yesterday! We will release a new version with a fixed template soon.

If you want to fix your template, load the template project at /usr/local/AVRMacPack/etc/templates/TemplateProject and change it. You may have to be root in order to edit the template.

Post Reply