| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#11
| |||
| |||
| 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 |
|
#12
| |||
| |||
| 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, thereprobably 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 |
|
#13
| |||
| |||
| 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 |
|
#14
| |||
| |||
| 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 |
|
#15
| |||
| |||
| 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 / |
|
#16
| |||
| |||
| 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 > |
|
#17
| |||
| |||
| "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 |
|
#18
| |||
| |||
| 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 / |
|
#19
| |||
| |||
| "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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.