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; On Fri, 05 Oct 2007 21:14:50 +0100, Gaius Mulley wrote: [snipped] > > > Hi Terry, [snipped] > > (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 OK Gaius, thanks. I'll give it a try this weekend and see what I can do. 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...

Go Back   Application Development Forum > Programming Languages > modula

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #11  
Old 10-06-2007, 02:45 AM
Terry Ross
Guest
 
Default Re: Modula-2 compiler for Nokia N800

On Fri, 05 Oct 2007 21:14:50 +0100, Gaius Mulley wrote:
[snipped]
>
>
> Hi Terry,

[snipped]
>
> (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


OK Gaius, thanks. I'll give it a try this weekend and see what I can do.

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
  #12  
Old 10-14-2007, 03:45 PM
Terry Ross
Guest
 
Default Re: Modula-2 compiler for Nokia N800

Gaius,

Just as a followup, it looks like I won't be able to do it. All the
compilation for the machine is done in the SDK on a desktop. So even if
managed to get gm2 over to it (which I could) I wouldn't be able to
accomplish what I desired. However, that won't keep me from generating
Modula-2 programs for it with the cross compilation - Actually, there
probably is a way to compile on in, since I've extended the systme on to
a 4G card, but I'll hold off on that for a while.


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
  #13  
Old 10-15-2007, 05:34 AM
Gaius Mulley
Guest
 
Default Re: Modula-2 compiler for Nokia N800

Terry Ross <terry@aliboom.com> writes:

> Gaius,
>
> Just as a followup, it looks like I won't be able to do it. All the
> compilation for the machine is done in the SDK on a desktop. So even if
> managed to get gm2 over to it (which I could) I wouldn't be able to
> accomplish what I desired. However, that won't keep me from generating
> Modula-2 programs for it with the cross compilation - Actually, there
> probably is a way to compile on in, since I've extended the systme on to
> a 4G card, but I'll hold off on that for a while.
>


Hi Terry,

I've just finished building GNU Modula-2 as a cross compiler hosted on
i386, amd64 or ppc64 (ps3) and have built them as debian packages. If
you want to try these out on a debian etch system you would need to
add these lines to your /etc/apt/sources.list


#
# GNU Modula-2 repo
#


deb http://floppsie.comp.glam.ac.uk/debian/ etch main non-free contrib
deb-src http://floppsie.comp.glam.ac.uk/debian/ etch main non-free contrib


and as root

# apt-get update
# apt-get install gm2-arm

This will install the GNU Modula-2 compiler and also the GNU C
Compiler. (It will also install dependencies such as binutils-arm and
various libraries and the limited GNU Modula-2 documentation). The
compilers can be invoked by:

$ arm-linux-gnu-gm2

regards,
Gaius
Reply With Quote
  #14  
Old 10-15-2007, 12:17 PM
Terry Ross
Guest
 
Default Re: Modula-2 compiler for Nokia N800

On Mon, 15 Oct 2007 10:34:22 +0100, Gaius Mulley wrote:
[snipped]
>
> Hi Terry,
>
> I've just finished building GNU Modula-2 as a cross compiler hosted on
> i386, amd64 or ppc64 (ps3) and have built them as debian packages. If
> you want to try these out on a debian etch system you would need to
> add these lines to your /etc/apt/sources.list


[Debian info snipped]

>
> regards,
> Gaius


Thanks Gaius, I'll keep the info for my Debian friends, but I build it in
a source based distro called Source Mage.

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
  #15  
Old 10-16-2007, 05:22 AM
Jürgen Lerch
Guest
 
Default (N)Curses & gm2 (was: Modula-2 compiler for Nokia N800)

Saluton!

On 15 Oct 2007 10:34:22 +0100, Gaius Mulley wrote:
> deb http://floppsie.comp.glam.ac.uk/debian/ etch main non-free contrib
> deb-src http://floppsie.comp.glam.ac.uk/debian/ etch main non-free contrib


A few days ago I got the debs (for a normal i386 Etch),
and while there are a few things to get used to (the only
other M2 compiler I (still) use is M2Amiga), up to now I
got everything working that I wanted to (nothing really
fancy, though).

Now the questions:

First, did someone do an (N)Curses interface for Modula-2,
preferably of course for gm2 itself? (I'm interested in
writing rogue-likes, and Curses is their favourite way of
doing their traditional ASCII UI. (Generally speaking I'm
interested in opening a window on X and then doing text IO
in there.))

Second, am I right that there's no ,,native'' WriteString
for the String type from DynamicStrings?

Uh, third: Probably I need to read up on this a bit more,
but as UTF<whatever> is (rightfully) becoming more and more
common, what about multibyte CHARs? Do we just switch over
to strings completely?

Ad Astra!
JuL

--
jynwyn@gmx.de / L'état, c'est toi. (Moi)
Jürgen ,,JuL'' Lerch /

Reply With Quote
  #16  
Old 10-17-2007, 10:48 AM
john o goyo
Guest
 
Default Re: (N)Curses & gm2

Jürgen Lerch wrote:
> Saluton!

[...]
> First, did someone do an (N)Curses interface for Modula-2,
> preferably of course for gm2 itself? (I'm interested in
> writing rogue-likes, and Curses is their favourite way of
> doing their traditional ASCII UI. (Generally speaking I'm
> interested in opening a window on X and then doing text IO
> in there.))


Look in the directory gm2/examples/ncurses. Not all of (n)curses
is implemented but what is there works (on both Unix and Linux)
and adding in the missing functions is straightforward.

john

Postscript: You may wish to subscribe to the gm2 mailing list at
http://lists.nongnu.org/mailman/listinfo/gm2.

[...]
>
> Ad Astra!
> JuL
>

Reply With Quote
  #17  
Old 10-17-2007, 11:25 AM
Gaius Mulley
Guest
 
Default Re: (N)Curses & gm2 (was: Modula-2 compiler for Nokia N800)

"Jürgen Lerch" <jynwyn@gmx.de> writes:

> Saluton!
>
> On 15 Oct 2007 10:34:22 +0100, Gaius Mulley wrote:
> > deb http://floppsie.comp.glam.ac.uk/debian/ etch main non-free contrib
> > deb-src http://floppsie.comp.glam.ac.uk/debian/ etch main non-free contrib

>
> A few days ago I got the debs (for a normal i386 Etch),
> and while there are a few things to get used to (the only
> other M2 compiler I (still) use is M2Amiga), up to now I
> got everything working that I wanted to (nothing really
> fancy, though).
>
> Now the questions:
>
> First, did someone do an (N)Curses interface for Modula-2,
> preferably of course for gm2 itself? (I'm interested in
> writing rogue-likes, and Curses is their favourite way of
> doing their traditional ASCII UI. (Generally speaking I'm
> interested in opening a window on X and then doing text IO
> in there.))


Hi,

yes there is a basic ncurses.def inside the gm2/examples/ncurses
directory of the source release. I guess it would be good to
finish this and install it (with the other library files :-)

> Second, am I right that there's no ,,native'' WriteString
> for the String type from DynamicStrings?


from DynamicStrings this is true, but you can use SFIO and
send/receive a DynamicString to/from any file descriptor.

> Uh, third: Probably I need to read up on this a bit more,
> but as UTF<whatever> is (rightfully) becoming more and more
> common, what about multibyte CHARs? Do we just switch over
> to strings completely?


at present UTF isn't supported, but it clearly needs to be in the
future.. Likewise I need to read up on this topic - at present I'm a
little unsure what to do here - I'll examine carefully the route GCC
has taken..

regards,
Gaius
Reply With Quote
  #18  
Old 10-17-2007, 09:03 PM
Jürgen Lerch
Guest
 
Default Re: (N)Curses & gm2 (was: Modula-2 compiler for Nokia N800)

Saluton!

(I take this one to answer, but thanks, John, too (and I'll
consider the mailing list later, wanting to follow to many
things at once anyway).)

On 17 Oct 2007 16:25:31 +0100, Gaius Mulley wrote:
> "Jürgen Lerch" <jynwyn@gmx.de> writes:
> > On 15 Oct 2007 10:34:22 +0100, Gaius Mulley wrote:
> > > deb http://floppsie.comp.glam.ac.uk/debian/ etch main non-free contrib
> > > deb-src http://floppsie.comp.glam.ac.uk/debian/ etch main non-free contrib

> > First, did someone do an (N)Curses interface for Modula-2,
> > preferably of course for gm2 itself? (I'm interested in
> > writing rogue-likes, and Curses is their favourite way of
> > doing their traditional ASCII UI. (Generally speaking I'm
> > interested in opening a window on X and then doing text IO
> > in there.))

> yes there is a basic ncurses.def inside the gm2/examples/ncurses
> directory of the source release. I guess it would be good to
> finish this and install it (with the other library files :-)


Would be nice, yes. :-)

However this is strange: I have both those entrys in my
/etc/apt/sources.list, but I can't find any gm2 sources
package(s) in aptitude, and so no examples either.

> > Second, am I right that there's no ,,native'' WriteString
> > for the String type from DynamicStrings?

> from DynamicStrings this is true, but you can use SFIO and
> send/receive a DynamicString to/from any file descriptor.


Okay, Unix' ,,everything is a file'', I guess. I saw SFIO but
thought it's for ,,real'' file IO only. But what do I open?
"stdout"? (Probably there's something in these examples again
....)

Btw., in case someone's interested: I did a little Modula-2
language file for gtksourceview-1.0 (based largely on the
Pascal & Ada .lang files I found there).

Ad Astra!
JuL

--
jynwyn@gmx.de / L'état, c'est toi. (Moi)
Jürgen ,,JuL'' Lerch /

Reply With Quote
  #19  
Old 10-18-2007, 05:02 AM
Gaius Mulley
Guest
 
Default Re: (N)Curses & gm2 (was: Modula-2 compiler for Nokia N800)

"Jürgen Lerch" <jynwyn@gmx.de> writes:

> However this is strange: I have both those entrys in my
> /etc/apt/sources.list, but I can't find any gm2 sources
> package(s) in aptitude, and so no examples either.


odd, can you test apt-get via:

$ apt-get source gm2
Reading package lists... Done
Building dependency tree... Done
Need to get 54.0MB of source archives.
Get: 1 http://floppsie.comp.glam.ac.uk etch/main gm2 0.6.1-1.3 (dsc) [312B]
Get: 2 http://floppsie.comp.glam.ac.uk etch/main gm2 0.6.1-1.3 (tar) [54.0MB]
Fetched 54.0MB in 4s (11.6MB/s)


> > > Second, am I right that there's no ,,native'' WriteString
> > > for the String type from DynamicStrings?

> > from DynamicStrings this is true, but you can use SFIO and
> > send/receive a DynamicString to/from any file descriptor.

>
> Okay, Unix' ,,everything is a file'', I guess. I saw SFIO but
> thought it's for ,,real'' file IO only. But what do I open?
> "stdout"? (Probably there's something in these examples again
> ...)


yes SFIO.WriteS(Stdout, s)

will do fine.

> Btw., in case someone's interested: I did a little Modula-2
> language file for gtksourceview-1.0 (based largely on the
> Pascal & Ada .lang files I found there).


excellent - did you submit your .lang files added to the gtksourceview
project?

regards,
Gaius
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:28 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, 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.