🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: net.lang.prolog
1 messages
1 total messages Started by Thomas C Crayner Wed, 15 Oct 1986 00:59
C-Prolog Porting Problems
#778
Author: Thomas C Crayner
Date: Wed, 15 Oct 1986 00:59
22 lines
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
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