🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.functional
3 messages
3 total messages Started by Grass Tue, 24 Jul 1990 11:49
help request on edml installation
#371
Author: Grass
Date: Tue, 24 Jul 1990 11:49
17 lines
1211 bytes
Has anybody successfully ported Edinburgh SML to Apollo (SR 9.7 software) ?

Our problem is the following: starting SML in its raw state from
smlcore.exp.backup (step 3 in the README instructions) crashes immediately
with the message "Memory fault".
Invoking the program explicitly (by typing:
  /fam.src/fam -h 2000 smlcore.exp.backup smlcore.exp
) seems to work, but any simple input (e.g. - 3+2;) crashes with an access
violation in routine "RunState" at line 547.

Please can anybody give us a hint what might be wrong?

---
Wolf-Dieter Tiedemann    please email to:
Universitaet Passau      grass@unipas.fmi.uni-passau.de (Werner Grass)
Innstrasse 33
D-8390 Passau
Re: help request on edml installation
#381
Author: Nick Rothwell
Date: Wed, 25 Jul 1990 09:29
28 lines
1824 bytes
In article <1990Jul24.114932.6727@forwiss.uni-passau.de>, grass@unipas (Grass) writes:
>Has anybody successfully ported Edinburgh SML to Apollo (SR 9.7 software) ?

Apollo's are horrible. We spent a week battling with the software when
doing the initial EdML port.

>Our problem is the following: starting SML in its raw state from
>smlcore.exp.backup (step 3 in the README instructions) crashes immediately
>with the message "Memory fault".
>Invoking the program explicitly (by typing:
>  /fam.src/fam -h 2000 smlcore.exp.backup smlcore.exp
>) seems to work, but any simple input (e.g. - 3+2;) crashes with an access
>violation in routine "RunState" at line 547.

My first guess: bugs in the C compiler. I've often had to simplify
expressions in the EdML interpreter to get correct behaviour. The
other thing to check is all the byte-sex flags and so on in the
configuration header file, but since it's getting as far as relocating
the heap and giving you a prompt, I doubt this is wrong.

>Wolf-Dieter Tiedemann

		Nick.
--
Nick Rothwell,	Laboratory for Foundations of Computer Science, Edinburgh.
		nick@lfcs.ed.ac.uk    <Atlantic Ocean>!mcsun!ukc!lfcs!nick
~ ~~ ~~ ~~ ~~ Hey, son, get that DeLorean off the track! And ~~ ~~ ~~ ~~ ~
            what have you done with all my lovely harpsichords?
Re: help request on edml installation
#384
Author: Lars Bo Nielsen
Date: Thu, 26 Jul 1990 08:15
47 lines
2560 bytes
In article <5301@castle.ed.ac.uk> nick@lfcs.ed.ac.uk (Nick Rothwell) writes:
>In article <1990Jul24.114932.6727@forwiss.uni-passau.de>, grass@unipas (Grass) writes:
>>Our problem is the following: starting SML in its raw state from
>>smlcore.exp.backup (step 3 in the README instructions) crashes immediately
>>with the message "Memory fault".
>>Invoking the program explicitly (by typing:
>>  /fam.src/fam -h 2000 smlcore.exp.backup smlcore.exp
>>) seems to work, but any simple input (e.g. - 3+2;) crashes with an access
>>violation in routine "RunState" at line 547.
>
>My first guess: bugs in the C compiler. I've often had to simplify
>expressions in the EdML interpreter to get correct behaviour. The
>other thing to check is all the byte-sex flags and so on in the
>configuration header file, but since it's getting as far as relocating
>the heap and giving you a prompt, I doubt this is wrong.
>
>>Wolf-Dieter Tiedemann
>
>  Nick.

I had a similar problem when I ported edml to the Atari ST. I found
the problem was in the macro isatty_() defined in system.h. I was
compiling with Gnu CC. It defines __STDC__ and isatty_() then gets
defined to always return 0.

So what I did in the port to the Atari ST was to place this in the end
of system.h:

	#ifdef atarist
	/* isatty_() was defined to 0 in #ifdef __STDC__. This is bad, as fam 
	   will just exit when an error is encountered (fam thinks that stdin 
	   is a file).
	   We set isatty_(fp) true, if fp is stdin, stdout or stderr. */
	#undef isatty_
	#include <stdio.h>
	#define isatty_(fp) (fileno(fp)==fileno(stdin)      \
			     || fileno(fp)==fileno(stdout)  \
			     || fileno(fp)==fileno(stderr))
	#endif

BTW. If somebody is interested in running edml on an Atari ST let me
know. I could post the a diff file (5K) or the executable (70K).

---
 Lars Bo Nielsen @ Aalborg University - Denmark
 lbn@iesd.auc.dk  -**-  {...}!mcsun!dkuug!auc!iesd!lbn
---
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads