Commit Graph

33 Commits

Author SHA1 Message Date
Bert Thompson
fd811ddee7 For consistency with the rest of Mercury, we use an Mmakefile in
Estimated hours taken: 2

For consistency with the rest of Mercury, we use an Mmakefile in
the bytecode directory.

bytecode/Mmakefile:
	Added Mmakefile.
1997-03-26 07:25:38 +00:00
Bert Thompson
eb454beb95 Fixed error in comment. 1997-03-25 03:53:19 +00:00
Bert Thompson
35498c8e44 Made some changes suggested by bromages's code review. 1997-03-25 03:10:28 +00:00
Bert Thompson
4202468422 Made some changes suggested by bromages's code review. 1997-03-25 02:15:45 +00:00
Bert Thompson
12eae5e466 Various inconsequential changes.
This module is still a half-munched Twistie. 8^)
1997-03-25 02:11:01 +00:00
Bert Thompson
3cde83e386 Initial revision 1997-03-20 08:17:33 +00:00
Bert Thompson
caeef88a38 Changed calls to malloc and free etc to calls to mem_malloc, mem_free.
In bytecode stream, cons_id's are now module-qualified.
Made changes to accomodate this.
1997-03-20 08:16:50 +00:00
Bert Thompson
5addf0844f In bytecode stream, cons_id's are now module-qualified.
Made changes to accomodate this.
Added `noop' bytecode.
1997-03-20 08:15:46 +00:00
Bert Thompson
7444bfa1e7 Initial revision 1997-02-13 06:00:17 +00:00
Bert Thompson
52c99f2052 Initial revision 1997-02-11 09:15:43 +00:00
Bert Thompson
00ad612b06 Added rcs_id static string 1997-02-11 08:06:37 +00:00
Bert Thompson
229af11390 Fixed typo. 1997-02-11 08:03:55 +00:00
Bert Thompson
6e17d431d3 Added rcs_id static string 1997-02-11 07:52:16 +00:00
Bert Thompson
1e7c8d4ccf Added comment about freeing the bytecodes that are read. 1997-02-11 07:40:53 +00:00
Bert Thompson
c7f6988bcb Brought up-to-date with version 8 of the bytecode. 1997-02-04 02:24:05 +00:00
Bert Thompson
600f8f1240 Changed all ushorts to shorts. 1997-02-04 01:39:53 +00:00
Bert Thompson
3f47a61531 Replaced the stub quote_cstring with a proper implementation. 1997-02-03 08:02:42 +00:00
Bert Thompson
4498524dbb Nuked some crap. 1997-02-01 13:36:33 +00:00
Bert Thompson
61d3e53678 We use shorts rather than ushorts for most of the stuff in the
bytecode file. A label, for instance, may be negative in enter_disjunct.
(Specifically, in the last enter_disjunct in a disjunction, the
label is -1.)
1997-02-01 13:36:01 +00:00
Bert Thompson
b0a8799252 Moved a lot of definitions related to bytecode from here to
the bytecode module.
1997-02-01 09:22:13 +00:00
Bert Thompson
6f44799b92 Moved code related to printing bytecodes to here from the bytecode module. 1997-02-01 09:21:18 +00:00
Bert Thompson
4eae45fcc1 Made static everything that needn't be exported from this module.
Moved code related to printing out of here. Only code for
parsing the bytestream should be in here.
1997-02-01 09:21:04 +00:00
Bert Thompson
619f65a72e Commented disassemble(). 1997-02-01 09:15:02 +00:00
Bert Thompson
40949b41b9 Finished off everything needed for disassembler. 1997-01-31 04:27:17 +00:00
Bert Thompson
3a0fe363a6 Added tags target.
Added some CFLAGS for debugging and testing.
1997-01-31 04:24:03 +00:00
Bert Thompson
2e0d5ab8bc Bytecode version number is now a ushort, not an int. 1997-01-30 01:17:21 +00:00
Bert Thompson
f45dcafc54 We also define __STDC__ since we want to use assert.h, which is
part of ANSI C but not part of POSIX.
1997-01-29 06:17:05 +00:00
Bert Thompson
030c530b0a I've decided the `no typedefs for structs' programming convention
is indeed without good justification, hence we now use typedefs
for all the structs.
1997-01-29 01:41:04 +00:00
Bert Thompson
60fa414f19 Initial revision 1997-01-28 02:04:52 +00:00
Bert Thompson
34a6912e4a Brain-damaged debug tracing now switchable using #define DEBUGGING.
(XXX: Really should implement more tunable tracing.)
Added strdup().
Changed name of util_fatal_error() to fatal().
1997-01-28 02:02:10 +00:00
Bert Thompson
2ef308fbd1 Added strdup().
Changed util_fatal_error() to fatal().
1997-01-28 02:01:31 +00:00
Bert Thompson
1c43bef167 Added more stuff for interpreting bytestream. All still half-munged. 1997-01-28 01:59:57 +00:00
Bert Thompson
15b22fde95 Initial revision 1997-01-24 07:13:10 +00:00