Gerd's AVR Assembler
I spend some time to get the opensource avr assembler from Gerd working on my Macbook. It was not to hard to get up and running, and without much work and errors! Below there are some instructions and a Makefile to make your own universal binary.
First download the linux source from Gerd's site and create the Makefile with the contents below. Then invoke make on the commandline and your binary should be build and ready to run. I don't know if you have make installed by default, else install XCode SDK which is free downloadable from Apple.
In the zip archive you find a bin directory which holds the executables, they should be copied in your path. For example in /usr/bin or /usr/local/bin. Or execute them directly with ./gavrasm
You can download the precompiled universal executables and sourcecode which I made on Mac OS X Snow Leopard 10.6.6 here:
- makefile.osx
## # First install the FreePascal compiler ! # # Makefile for Gerd's AVR assembler on Apple Mac OSX # The combine label will combine all the executables for different # arches to one universal binary file. # # url: http://www.xor-gate.org/writings/software/gavrasm # url: http://www.avr-asm-tutorial.net/gavrasm ## all: prepare english powerpc i386 x86_64 universal finish prepare: mkdir -p bin english: cp gavrlang_en.pas gavrlang.pas powerpc: fpc -Ppowerpc gavrasm.pas mv gavrasm gavrasm-powerpc i386: fpc -Pi386 gavrasm.pas mv gavrasm gavrasm-i386 x86_64: fpc -Px86_64 gavrasm.pas mv gavrasm gavrasm-x86_64 universal: lipo -create gavrasm-powerpc gavrasm-i386 gavrasm-x86_64 -output gavrasm finish: mv gavrasm* bin clean: rm *.o rm *.ppu