[Top][All Lists]

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

[Gm2] GNU Modula-2 cross compiler for AVR debian packages

From: Gaius Mulley
Subject: [Gm2] GNU Modula-2 cross compiler for AVR debian packages
Date: Thu, 09 Aug 2007 13:23:11 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)


I've taken a step into producing debian packages for GNU Modula-2.
As a first step (and an easier one than producing a native gm2) I've
build GNU Modula-2 as a cross compiler for the avr.  The packages
available are i386, amd64 and of course the source packages.

I'll will work on making native gm2 as a debian package as well.
However if you want to try out these packages (and are running Debian
Etch) or a distro built upon Debian Etch then the instructions can
be found here:

Basically you need to add these lines to your /etc/apt/sources.list

#  GNU Modula-2 repo
deb file:///var/www/debian/ etch main non-free contrib
deb-src file:///var/www/debian/ etch main non-free contrib

and then as root, type:

# apt-get update
# apt-get remove gcc-avr
# apt-get remove gcc-doc
# apt-get install gm2-avr

There is a tiny example avr project which demonstrates how to build
a minimal application using GNU Modula-2.

Note that this GNU Modula-2 cross compiler is using gcc-4.1.2 and also
that it is gm2-0.6.  The avr cross compiler comes with the minimal set
of libraries prebuilt (really minimal - SYSTEM and M2RTS).  All the
library sources are installed (from the binary packages) but it is
left to the user to build which libraries they need.  Some of the avr
family of processors have 8k ram 1k rom (although many have more) -
but I think users will need to browse the library source before using
it anyway.  I'll happily modify the package to include extra libraries
if demand requires..


reply via email to

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