Article View: net.lang.prolog
Article #778C-Prolog Porting Problems
From: Thomas C Crayner
Date: Wed, 15 Oct 1986 00:59
Date: Wed, 15 Oct 1986 00:59
22 lines
1724 bytes
1724 bytes
We are attempting to port "C Prolog", Version 1.3, from the Vax
version to the Computer Consoles Inc. 6/32 machine (running 4.3BSD). The
machine is quite similar to the Vax in architecture, but there are minor
differences which often cause major problems.
C-Prolog compiles with no unusual errors, but running the program
in boot mode ("prolog -b pl/init <bootcmds") gives either a memory fault
or address error in deref() (in unify.c). Adb reveals that this is caused
by a reference in the 0x40000000 range, the same range used by "input
variables." It seems to have been near the end of "pl/grammar" when this
occurred.
One change that was made was to modify the bit masks (PRIM_TAG, etc.)
so that primitives start at 0xc0000000 instead of 0x80000000, because
the stack in this Unix version is based there. Is this necessary, i.e. is
any use of pointers to stack locals (which would be "negative" on the CCI) done,
or can the masks be left alone?
Other than the stack, memory is organized very similarly to the
Vax port. Any assistance would be most appreciated.
-Peter S. Housel-
housel@ei.ecn.purdue.edu
...!{decvax,ihnp4,inuxc}!pur-ee!housel
Technical Details
Message-ID:
<4790@pur-ee.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!bellcore!ulysses!mhuxr!mhuxt!houxm!ihnp4!inuxc!pur-ee!tcShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!bellcore!ulysses!mhuxr!mhuxt!houxm!ihnp4!inuxc!pur-ee!tc From: tc@pur-ee.UUCP (Thomas C Crayner) Newsgroups: net.lang.prolog Subject: C-Prolog Porting Problems Message-ID: <4790@pur-ee.UUCP> Date: Tue, 14-Oct-86 20:59:34 EDT Article-I.D.: pur-ee.4790 Posted: Tue Oct 14 20:59:34 1986 Date-Received: Mon, 20-Oct-86 23:01:07 EDT Reply-To: housel@pur-ee.UUCP (Peter S Housel) Organization: Electrical Engineering Department , Purdue University Lines: 22