Modula-2 compiler for Nokia N800

This is a discussion on Modula-2 compiler for Nokia N800 within the modula forums in Programming Languages category; I'm looking for a Modula-2 compiler for my N800. It uses the 330 MHZ TI OMAP 2420 processor (basically, an ARM processor) and a GNU/Linux OS. Does anyone have any idea where I might be able find a suitable compiler, or have any recommendations on the best resource for guiding me in creating my own? -- Terry "qnr" Ross | http://www.aliboom.com 1024D/E5796C4D | Key BE84 EC1D FC94 D97B 9063 AD15 0F38 193A E579 6C4D Source Mage GNU/Linux http://www.sourcemage.org...

Go Back   Application Development Forum > Programming Languages > modula

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-27-2007, 02:31 PM
Terry Ross
Guest
 
Default Modula-2 compiler for Nokia N800

I'm looking for a Modula-2 compiler for my N800. It uses the 330 MHZ TI
OMAP 2420 processor (basically, an ARM processor) and a GNU/Linux OS. Does
anyone have any idea where I might be able find a suitable compiler, or
have any recommendations on the best resource for guiding me in creating
my own?

--
Terry "qnr" Ross | http://www.aliboom.com
1024D/E5796C4D | Key BE84 EC1D FC94 D97B 9063 AD15 0F38 193A E579 6C4D
Source Mage GNU/Linux http://www.sourcemage.org
Reply With Quote
  #2  
Old 09-27-2007, 04:52 PM
Marco van de Voort
Guest
 
Default Re: Modula-2 compiler for Nokia N800

On 2007-09-27, Terry Ross <terry@aliboom.com> wrote:
> anyone have any idea where I might be able find a suitable compiler, or
> have any recommendations on the best resource for guiding me in creating
> my own?


1. GNU Modula2.
2. Add Modula2 dialect to Free Pascal :-)
Reply With Quote
  #3  
Old 09-27-2007, 08:30 PM
Terry Ross
Guest
 
Default Re: Modula-2 compiler for Nokia N800

On Thu, 27 Sep 2007 20:52:00 +0000, Marco van de Voort wrote:

> On 2007-09-27, Terry Ross <terry@aliboom.com> wrote:
>> anyone have any idea where I might be able find a suitable compiler, or
>> have any recommendations on the best resource for guiding me in creating
>> my own?

>
> 1. GNU Modula2.
> 2. Add Modula2 dialect to Free Pascal :-)


Hmmmm... ok. I knew I could cross-compile to the ARM, didn't know that I
could actually use the compiler on the machine itself.

Thanks.

--
Terry "qnr" Ross | http://www.aliboom.com
1024D/E5796C4D | Key BE84 EC1D FC94 D97B 9063 AD15 0F38 193A E579 6C4D
Source Mage GNU/Linux http://www.sourcemage.org
Reply With Quote
  #4  
Old 09-28-2007, 02:54 AM
Marco van de Voort
Guest
 
Default Re: Modula-2 compiler for Nokia N800

On 2007-09-28, Terry Ross <terry@aliboom.com> wrote:
> On Thu, 27 Sep 2007 20:52:00 +0000, Marco van de Voort wrote:
>
>> On 2007-09-27, Terry Ross <terry@aliboom.com> wrote:
>>> anyone have any idea where I might be able find a suitable compiler, or
>>> have any recommendations on the best resource for guiding me in creating
>>> my own?

>>
>> 1. GNU Modula2.
>> 2. Add Modula2 dialect to Free Pascal :-)

>
> Hmmmm... ok. I knew I could cross-compile to the ARM, didn't know that I
> could actually use the compiler on the machine itself.


My bad. I meant they could be starting points, no guarantees that it
actually works.

I can confirm that FPC works on ARM (little endian, the more common variety)
natively. And I also see no reasons why GNU M2 couldn't.
Reply With Quote
  #5  
Old 10-04-2007, 02:08 PM
Gaius Mulley
Guest
 
Default Re: Modula-2 compiler for Nokia N800

Marco van de Voort <marcov@stack.nl> writes:

> On 2007-09-28, Terry Ross <terry@aliboom.com> wrote:
> > On Thu, 27 Sep 2007 20:52:00 +0000, Marco van de Voort wrote:
> >
> >> On 2007-09-27, Terry Ross <terry@aliboom.com> wrote:
> >>> anyone have any idea where I might be able find a suitable compiler, or
> >>> have any recommendations on the best resource for guiding me in creating
> >>> my own?
> >>
> >> 1. GNU Modula2.
> >> 2. Add Modula2 dialect to Free Pascal :-)

> >
> > Hmmmm... ok. I knew I could cross-compile to the ARM, didn't know that I
> > could actually use the compiler on the machine itself.

>
> My bad. I meant they could be starting points, no guarantees that it
> actually works.
>
> I can confirm that FPC works on ARM (little endian, the more common variety)
> natively. And I also see no reasons why GNU M2 couldn't.


Hi,

yes GNU M2 should be able to do this - it could a couple of releases
ago and now it is supporting more esoteric cross compilation platforms
(Atmega8). I'll have a go at producing a gm2-arm cross compiler .deb
package. Out of interest what package format (rpm, deb, other) does
your (GNU/Linux) phone use?

regards,
Gaius
Reply With Quote
  #6  
Old 10-04-2007, 02:35 PM
Marco van de Voort
Guest
 
Default Re: Modula-2 compiler for Nokia N800

On 2007-10-04, Gaius Mulley <gaius@glam.ac.uk> wrote:
>
> yes GNU M2 should be able to do this - it could a couple of releases
> ago and now it is supporting more esoteric cross compilation platforms
> (Atmega8). I'll have a go at producing a gm2-arm cross compiler .deb
> package. Out of interest what package format (rpm, deb, other) does
> your (GNU/Linux) phone use?


(if that is to me, at the busiest time, Zaurus with OpenZaurus at the time.
Now PocketPC 2003 (WinCE) on ipaq)


Reply With Quote
  #7  
Old 10-04-2007, 05:44 PM
Gaius Mulley
Guest
 
Default Re: Modula-2 compiler for Nokia N800

Marco van de Voort <marcov@stack.nl> writes:

> On 2007-10-04, Gaius Mulley <gaius@glam.ac.uk> wrote:
> >
> > yes GNU M2 should be able to do this - it could a couple of releases
> > ago and now it is supporting more esoteric cross compilation platforms
> > (Atmega8). I'll have a go at producing a gm2-arm cross compiler .deb
> > package. Out of interest what package format (rpm, deb, other) does
> > your (GNU/Linux) phone use?

>
> (if that is to me, at the busiest time, Zaurus with OpenZaurus at the time.
> Now PocketPC 2003 (WinCE) on ipaq)


Hi Marco,

ok thanks - actually I (incorrectly followed up) was wondering about
Terry's Nokia N800. Although I built gm2 a cross compiler for my iPAQ
a couple of years ago (running 'familiar').

I guess producing a .deb/.rpm package for gm2 as an arm cross compiler
might be potentially useful for both iPAQ and N800. I've someone
enquiring about an arm cross compiler at work - so I think its time to
kill a few birds with a single stone.

regards,
Gaius
Reply With Quote
  #8  
Old 10-05-2007, 10:48 AM
Terry Ross
Guest
 
Default Re: Modula-2 compiler for Nokia N800

On Thu, 04 Oct 2007 19:08:57 +0100, Gaius Mulley wrote:

[snipped]
>
> Hi,
>
> yes GNU M2 should be able to do this - it could a couple of releases
> ago and now it is supporting more esoteric cross compilation platforms
> (Atmega8). I'll have a go at producing a gm2-arm cross compiler .deb
> package. Out of interest what package format (rpm, deb, other) does
> your (GNU/Linux) phone use?
>
> regards,
> Gaius


Hi Gaius,

It uses .deb packages. Actually, even though it's a Nokia, and it has
Skype, it's not primarily a phone, but an ultra-micro Linux handheld. A
cross compiler would be great! Though I'd really like one where I could
compile on the machine at home, to keep myself occupied while my wife is
busy at appointments or shopping. Currently, I generate the code on the
N800, then use ssh to compile it on one of my desktop machines (which is
where the cross compilation would be nice, since naturally, that compiles
for my desktop).

Terry

--
Terry "qnr" Ross | http://www.aliboom.com
1024D/E5796C4D | Key BE84 EC1D FC94 D97B 9063 AD15 0F38 193A E579 6C4D
Source Mage GNU/Linux http://www.sourcemage.org
Reply With Quote
  #9  
Old 10-05-2007, 10:54 AM
Terry Ross
Guest
 
Default Re: Modula-2 compiler for Nokia N800

On Thu, 04 Oct 2007 19:08:57 +0100, Gaius Mulley wrote:

>
> Hi,
>
> yes GNU M2 should be able to do this - it could a couple of releases
> ago and now it is supporting more esoteric cross compilation platforms
> (Atmega8). I'll have a go at producing a gm2-arm cross compiler .deb
> package. Out of interest what package format (rpm, deb, other) does
> your (GNU/Linux) phone use?
>
> regards,
> Gaius


Oops, I replied to the wrong post, the previous one should have been a
follow-up here.

Terry

--
Terry "qnr" Ross | http://www.aliboom.com
1024D/E5796C4D | Key BE84 EC1D FC94 D97B 9063 AD15 0F38 193A E579 6C4D
Source Mage GNU/Linux http://www.sourcemage.org
Reply With Quote
  #10  
Old 10-05-2007, 04:14 PM
Gaius Mulley
Guest
 
Default Re: Modula-2 compiler for Nokia N800

Terry Ross <terry@aliboom.com> writes:

> On Thu, 04 Oct 2007 19:08:57 +0100, Gaius Mulley wrote:
>
> [snipped]
> >
> > Hi,
> >
> > yes GNU M2 should be able to do this - it could a couple of releases
> > ago and now it is supporting more esoteric cross compilation platforms
> > (Atmega8). I'll have a go at producing a gm2-arm cross compiler .deb
> > package. Out of interest what package format (rpm, deb, other) does
> > your (GNU/Linux) phone use?
> >
> > regards,
> > Gaius

>
> Hi Gaius,
>
> It uses .deb packages. Actually, even though it's a Nokia, and it has
> Skype, it's not primarily a phone, but an ultra-micro Linux handheld. A
> cross compiler would be great! Though I'd really like one where I could
> compile on the machine at home, to keep myself occupied while my wife is
> busy at appointments or shopping. Currently, I generate the code on the
> N800, then use ssh to compile it on one of my desktop machines (which is
> where the cross compilation would be nice, since naturally, that compiles
> for my desktop).
>
> Terry



Hi Terry,

ok, if you have a Debian based GNU/Linux and have 50 Mb spare disk
space and you have an /etc/apt/sources.list which points to an http
(or ftp) server. Then you should be able to:

# apt-get install gcc bison flex

then you might be able to download gm2 and build it using:

wget http://floppsie.comp.glam.ac.uk/down...0070818.tar.gz

as a normal user:

tar zxf gcc-4.1.2*z
mkdir build
cd build
../gcc-4.1.2+gm2-20070818/configure --disable-multilib \
--enable-languages=c,gm2 --enable-checking=all --prefix=$HOME/opt

su
make install

(hopefully at this point you would have a 'gm2' executable in your
path). Obviously you could remove the build and source tree to
free up valuable space..

regards,
Gaius
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:50 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.