Commit Graph

9 Commits

Author SHA1 Message Date
Fergus Henderson
a38a078a88 Add a new option `-dt' for use with the modes that
runtime/{engine.h,engine.mod,memory.c,wrapper.mod}:
	Add a new option `-dt' for use with the modes that
	don't use gcc non-local gotos.  If this option is
	enabled, the runtime system will use the slow driver
	loop rather than the unrolled one, and if a seg fault
	occurs it will print out the last 40 locations.
	(This is most useful in combination with -DDEBUG_LABELS,
	otherwise you'll just get hex addresses.)
1995-08-24 06:37:55 +00:00
Zoltan Somogyi
19bcfcbab4 Now memory diagnostics are printed on stderr.
memory.c:
	Now memory diagnostics are printed on stderr.

wrapper.mod, memory.c:
	Convert whens to cases and ors to else ifs.

other files:
	copyright notices.
1995-05-29 02:04:10 +00:00
Fergus Henderson
3fc5389b53 Add copyright notices.
runtime/*:
	Add copyright notices.
1995-03-30 21:57:11 +00:00
Fergus Henderson
5835cddc6a Cakefile dummy.c dummy.h engine.h engine.mod imp.h io.mod label.h wrapper.mod:
Make various changes required for using assembler labels.
1995-02-26 13:52:58 +00:00
Thomas Conway
90ce96d31f add a new debugging option: -dr which writes the values of
various:
	add a new debugging option: -dr which writes the values of
	the first 8 registers immediately after each goto.
1995-02-12 10:40:27 +00:00
Fergus Henderson
4ddd48d578 Remove an erroneous redundant ';'.
engine.h:
	Remove an erroneous redundant ';'.
1994-08-21 16:28:05 +00:00
Fergus Henderson
b2e9d840aa Bug fix.
engine.h:
	Bug fix.
1994-08-14 16:56:13 +00:00
Zoltan Somogyi
73d802662b Made the Cakefile import examples/Mercury to ensure consistency.
Changes to examples/Mercury required changes to some other files.

The most important such change is that mod2c and gnuc now take a speed
grade argument of the form -s{fast,reg,jump,none,init,debug}. The -s
option of mod2c supersedes the -g option which is retained for backward
compatibility.

Renamed test_harness to wrapper because underscores now separate grade names
from the rest of the file base name in cake rules.
1994-07-14 05:52:54 +00:00
Zoltan Somogyi
7e1123553a Reorganized header files: each system module now has its own header file.
Some of these are included in imp.h, some aren't; the criterion is whether
automatically generated modules need the information in them.

Created a system whereby Mercury programs can be automatically compiled.

One part is the Mercury cakefile in examples (and the Cakefile that uses it),
which defines two targets for each Mercury program. These are e.g. nrev_fast
and nrev_debug for nrev.nl. As usual with System, the file Conf has one
line for each program in the directory; the file Entry likewise contains
the default entry point. Mod2init now inserts the default entry point
into the xxx_init.c file, and test_harness picks it up from there.

The other part is the creation and installation of the files and tools
referred to by the Mercury cakefile. These include scripts in /usr/contrib/bin,
the system modules in /usr/contrib/lib/mercury/modules, the system header
files in /usr/contrib/lib/mercury/inc, and two libraries, lib{fast,debug}mer.a
in each of /usr/contrib/lib/mercury/{sun4,sgi}.
1994-07-12 10:41:11 +00:00