Commit Graph

11 Commits

Author SHA1 Message Date
Fergus Henderson
3fc5389b53 Add copyright notices.
runtime/*:
	Add copyright notices.
1995-03-30 21:57:11 +00:00
Fergus Henderson
d4c7b3e54f Add new grades asm_*.
examples/Mercury:
	Add new grades asm_*.

wrapper.mod:
	Add a new -h (help) option.
	Change the behaviour of the -l option:
		Exit after printing the labels
		Don't use popen("sort -n"), since it's an unnecessary OS
		dependency and the user can do it anyway.
		[And because we weren't checking whether the call
		succeeded, and I didn't want to add checking code...]

io.mod, init.h, wrapper.mod, label.c:
	Remove support for automatically calling *_input.
	Optimize things so that we only call init_modules() if we
	are going to need the label names.
1995-02-26 17:50:40 +00:00
Fergus Henderson
f175dd9930 Don't source .gdbinit.arch, since it seems to have suffered
.gdbinit:
	Don't source .gdbinit.arch, since it seems to have suffered
	software rot.

aux.c, std.h, imp.h, access.c, iface.mod, prof.c:
	Make sure that all memory allocation goes through
	newmem(), resizemem() and oldmem().
	Fix those functions so that they work with conservative
	garbage collection.
1995-02-21 19:27:26 +00:00
Peter Ross
a05ed0ae3f Included prof.c and prof.h in the compile
Cakefile :
	Included prof.c and prof.h in the compile

CFLAGSFILE:
	Added the USE_PROFILING flag.

engine.mod:
	Added calls so that all the profiling info is dumped to a file

prof.*:
	Added some comments.

imp.h:
	Modified the call and localcall macros so that they save the
	callee-caller address pair if USE_PROFILING defined.

*.mod:
	Added the extra argument to all calls and local calls for the
	handwritten mod files.
1995-02-08 05:19:19 +00:00
Thomas Conway
f25ceb6faf Make the virtual machine registers map to an array of Words rather
*.h. memory.c:
	Make the virtual machine registers map to an array of Words rather
	than to descrete variables.

misc:
	Related changes.
1995-01-30 06:32:49 +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
Fergus Henderson
f3f7cce60b ANSIfy everything: use const, use assert(), use <stdlib.h>.
Replace uses of "Cast" with "void *".
In list.[ch], use a union instead of ugly non-portable casts.
1993-12-18 04:11:41 +00:00
Zoltan Somogyi
058036588b updated macros to conform to paper 1993-12-13 11:41:02 +00:00
Zoltan Somogyi
d8db7692e4 interface somewhat tested 1993-12-02 06:59:32 +00:00
Zoltan Somogyi
b582deb6e8 rudimentary functions of the interface working 1993-12-02 05:17:20 +00:00
Zoltan Somogyi
f5e3ecb098 adding first draft of interface code 1993-12-01 05:55:51 +00:00