mit-scheme.git
36 years agoFix defaulting of `interval' argument in `char-ready?'.
Chris Hanson [Mon, 11 Jul 1988 23:50:59 +0000 (23:50 +0000)]
Fix defaulting of `interval' argument in `char-ready?'.

36 years agoMake the default REPL value procedure write ";Value: " before the
Chris Hanson [Mon, 11 Jul 1988 18:53:25 +0000 (18:53 +0000)]
Make the default REPL value procedure write ";Value: " before the
value, to make this more like the Emacs interface.

36 years agoarray-search-value-tolerance-from
Panayotis Skordos [Sun, 10 Jul 1988 03:35:49 +0000 (03:35 +0000)]
array-search-value-tolerance-from

36 years agomodified the c_make_polar macro to return angle=0 for x,y=0,0
Panayotis Skordos [Sat, 9 Jul 1988 11:20:42 +0000 (11:20 +0000)]
modified the c_make_polar macro to return angle=0 for x,y=0,0

36 years ago1.array-make-polar returns angle=0 for x,y=0,0
Panayotis Skordos [Sat, 9 Jul 1988 11:18:24 +0000 (11:18 +0000)]
1.array-make-polar returns angle=0 for x,y=0,0
2.added procs: array-accumulate, array-cons-reals, array-read-2bint-file

36 years agoChange default radix of `string->number' to decimal.
Chris Hanson [Sat, 9 Jul 1988 02:24:02 +0000 (02:24 +0000)]
Change default radix of `string->number' to decimal.

36 years agoAdd new primitive to get memory usage statistics.
Chris Hanson [Fri, 8 Jul 1988 02:27:10 +0000 (02:27 +0000)]
Add new primitive to get memory usage statistics.
Change default size of constant space.

36 years agoAdd new primitive to get memory usage statistics.
Chris Hanson [Fri, 8 Jul 1988 02:26:36 +0000 (02:26 +0000)]
Add new primitive to get memory usage statistics.

36 years agoChange default size of constant space.
Chris Hanson [Thu, 7 Jul 1988 18:11:35 +0000 (18:11 +0000)]
Change default size of constant space.

36 years agoChange unparsing of compiled procedures and entries to more clearly
Chris Hanson [Thu, 7 Jul 1988 16:14:39 +0000 (16:14 +0000)]
Change unparsing of compiled procedures and entries to more clearly
indicate when the source file is shown.

36 years agoAdd option files and procedure `load-option' to load them.
Chris Hanson [Thu, 7 Jul 1988 16:13:39 +0000 (16:13 +0000)]
Add option files and procedure `load-option' to load them.

36 years agoFix various bugs having to do with naming of low level output
Chris Hanson [Thu, 7 Jul 1988 15:45:54 +0000 (15:45 +0000)]
Fix various bugs having to do with naming of low level output
operations.

36 years agoEliminate "unreferenced bound variable" warnings.
Chris Hanson [Thu, 7 Jul 1988 15:17:55 +0000 (15:17 +0000)]
Eliminate "unreferenced bound variable" warnings.

36 years agoInitial release for version 14.
Chris Hanson [Thu, 7 Jul 1988 15:13:22 +0000 (15:13 +0000)]
Initial release for version 14.

36 years agoIn `make-cmdl', change the point at which the cmdl continuation is
Chris Hanson [Wed, 6 Jul 1988 20:34:20 +0000 (20:34 +0000)]
In `make-cmdl', change the point at which the cmdl continuation is
saved so that aborting will disable interrupts again.

36 years agoChange the handling of the microcode version so that it is updated
Chris Hanson [Thu, 30 Jun 1988 22:23:49 +0000 (22:23 +0000)]
Change the handling of the microcode version so that it is updated
whenever the runtime system is restored.

36 years agoAdd procedures to modify the version and modification components of a
Chris Hanson [Thu, 30 Jun 1988 22:22:42 +0000 (22:22 +0000)]
Add procedures to modify the version and modification components of a
system.

36 years agoPortable multiply function Mul() was broken because of lack of unsignedness
Arthur Gleckler [Wed, 29 Jun 1988 08:05:42 +0000 (08:05 +0000)]
Portable multiply function Mul() was broken because of lack of unsignedness
and a fencepost error.

36 years agoProcedure fixnum-constant didn't realize that maximum-positive-fixnum is one
Arthur Gleckler [Tue, 28 Jun 1988 20:53:49 +0000 (20:53 +0000)]
Procedure fixnum-constant didn't realize that maximum-positive-fixnum is one
less than the absolute value of the least (negative) fixnum.

36 years agoExport `condition/internal?' (not `condition-type/internal?') from
Chris Hanson [Wed, 22 Jun 1988 21:34:22 +0000 (21:34 +0000)]
Export `condition/internal?' (not `condition-type/internal?') from
error handler package.

36 years agoChange the stack parser to ignore frames of type
Chris Hanson [Wed, 22 Jun 1988 21:25:16 +0000 (21:25 +0000)]
Change the stack parser to ignore frames of type
RESTORE-TO-STATE-POINT unless they contain a state point whose space
is the system state space.

36 years agoExport compiler-info/symbol-table from info-package.
Joe Marshall [Wed, 22 Jun 1988 21:09:42 +0000 (21:09 +0000)]
Export compiler-info/symbol-table from info-package.

36 years agoNo changes.
Joe Marshall [Wed, 22 Jun 1988 20:51:50 +0000 (20:51 +0000)]
No changes.
e

36 years ago*** empty log message ***
Chris Hanson [Tue, 21 Jun 1988 05:53:08 +0000 (05:53 +0000)]
*** empty log message ***

36 years agoVariety of changes to condition system, to generalize error reporting
Chris Hanson [Tue, 21 Jun 1988 05:51:30 +0000 (05:51 +0000)]
Variety of changes to condition system, to generalize error reporting
mechanism.  Trivial change to continuation parser.

36 years agoAdd new procedures:
Chris Hanson [Tue, 21 Jun 1988 05:50:40 +0000 (05:50 +0000)]
Add new procedures:

condition-type/internal?
condition-type/reporter
condition/report-string
condition/reporter
condition/write-report

Change name of condition-type "dependencies" to "generalizations".

36 years ago`format-error-message' now takes a port as a third argument.
Chris Hanson [Tue, 21 Jun 1988 05:48:48 +0000 (05:48 +0000)]
`format-error-message' now takes a port as a third argument.

36 years agoChange error reporting mechanism so that condition types have an
Chris Hanson [Tue, 21 Jun 1988 05:48:19 +0000 (05:48 +0000)]
Change error reporting mechanism so that condition types have an
explicit reporting procedure.  This procedure receives the condition
and an output port as arguments and can do anything it likes.

New procedure `condition/internal?' is used to filter out complicated
conditions.  If handlers always ignore conditions satisfying this
predicate they will never have to do anything hairy.

`format-error-message' now takes a port as a third argument.

36 years agoAdd `stack-frame/return-address' operation. This will be more useful
Chris Hanson [Tue, 21 Jun 1988 04:21:49 +0000 (04:21 +0000)]
Add `stack-frame/return-address' operation.  This will be more useful
when the stack parser is generalized to handle compiled code frames.

36 years agoChange to use new procedure `add-identification!'.
Chris Hanson [Thu, 16 Jun 1988 06:40:12 +0000 (06:40 +0000)]
Change to use new procedure `add-identification!'.

36 years agoAdd procedure `add-identification!' which provides all the interesting
Chris Hanson [Thu, 16 Jun 1988 06:39:36 +0000 (06:39 +0000)]
Add procedure `add-identification!' which provides all the interesting
functionality needed by most programs now.

36 years agoIncrease the number of primitives that are constant folded.
Chris Hanson [Thu, 16 Jun 1988 06:38:35 +0000 (06:38 +0000)]
Increase the number of primitives that are constant folded.

36 years agoMove some items from () to other packages, then export them back to
Chris Hanson [Thu, 16 Jun 1988 06:37:44 +0000 (06:37 +0000)]
Move some items from () to other packages, then export them back to
().  Introduce some new stuff.

36 years agoAdd initialization for (runtime compiler-info).
Chris Hanson [Thu, 16 Jun 1988 06:32:27 +0000 (06:32 +0000)]
Add initialization for (runtime compiler-info).

36 years agoComment out code for unused keyboard interrupts.
Chris Hanson [Thu, 16 Jun 1988 06:31:53 +0000 (06:31 +0000)]
Comment out code for unused keyboard interrupts.

36 years agoSeveral bug fixes.
Chris Hanson [Thu, 16 Jun 1988 06:31:04 +0000 (06:31 +0000)]
Several bug fixes.

36 years agoMove several definitions from here to more appropriate places.
Chris Hanson [Thu, 16 Jun 1988 06:30:22 +0000 (06:30 +0000)]
Move several definitions from here to more appropriate places.

36 years agoFlush occurrences of `make-named-tag'.
Chris Hanson [Thu, 16 Jun 1988 06:29:40 +0000 (06:29 +0000)]
Flush occurrences of `make-named-tag'.

36 years agoChange method of recording named structure descriptions to something
Chris Hanson [Thu, 16 Jun 1988 06:27:40 +0000 (06:27 +0000)]
Change method of recording named structure descriptions to something
that can be used at cold load time.

36 years agoFlush occurrences of `make-named-tag'.
Chris Hanson [Thu, 16 Jun 1988 06:26:59 +0000 (06:26 +0000)]
Flush occurrences of `make-named-tag'.

Change method of recording named structure descriptions to something
that can be used at cold load time.

36 years agoChanges to reflect changes in infutl
Joe Marshall [Wed, 15 Jun 1988 20:47:59 +0000 (20:47 +0000)]
Changes to reflect changes in infutl

36 years agoRemove loading of base/infutl as it is now in the runtime system.
Joe Marshall [Wed, 15 Jun 1988 20:40:34 +0000 (20:40 +0000)]
Remove loading of base/infutl as it is now in the runtime system.

36 years agoChange unparsing of compiled procedures to be more informative.
Joe Marshall [Wed, 15 Jun 1988 18:35:33 +0000 (18:35 +0000)]
Change unparsing of compiled procedures to be more informative.

36 years agoAdded compiler-info package.
Joe Marshall [Wed, 15 Jun 1988 18:24:01 +0000 (18:24 +0000)]
Added compiler-info package.

36 years agoInitial revision
Joe Marshall [Wed, 15 Jun 1988 18:21:19 +0000 (18:21 +0000)]
Initial revision

36 years agoAdd procedures DISCRIMINATE-COMPILED-ENTRY and
Joe Marshall [Wed, 15 Jun 1988 16:04:05 +0000 (16:04 +0000)]
Add procedures DISCRIMINATE-COMPILED-ENTRY and
COMPILED-CODE-BLOCK/MANIFEST-CLOSURE?

36 years agoDo not unsyntax a `make-environment' special form unless the last
Chris Hanson [Tue, 14 Jun 1988 14:45:31 +0000 (14:45 +0000)]
Do not unsyntax a `make-environment' special form unless the last
action in its body is `the-environment'.

36 years agoAlways load compiled if possible. Adjust version to agree with RCS
Chris Hanson [Tue, 14 Jun 1988 10:32:05 +0000 (10:32 +0000)]
Always load compiled if possible.  Adjust version to agree with RCS
version.

36 years agoAdjust formatting of package filenames.
Chris Hanson [Tue, 14 Jun 1988 10:29:46 +0000 (10:29 +0000)]
Adjust formatting of package filenames.

36 years agoMerge in vector range checking.
Chris Hanson [Tue, 14 Jun 1988 09:38:11 +0000 (09:38 +0000)]
Merge in vector range checking.

36 years agoMerge in vector range checking.
Chris Hanson [Tue, 14 Jun 1988 09:11:03 +0000 (09:11 +0000)]
Merge in vector range checking.

36 years agoInitial revision
Chris Hanson [Tue, 14 Jun 1988 08:58:17 +0000 (08:58 +0000)]
Initial revision

36 years agoFirst checkin for runtime system version 14.
Chris Hanson [Tue, 14 Jun 1988 08:55:55 +0000 (08:55 +0000)]
First checkin for runtime system version 14.

36 years agoFirst checkin for runtime system version 14.
Chris Hanson [Tue, 14 Jun 1988 08:48:58 +0000 (08:48 +0000)]
First checkin for runtime system version 14.

36 years agoFirst checkin for runtime version 14.
Chris Hanson [Tue, 14 Jun 1988 08:11:04 +0000 (08:11 +0000)]
First checkin for runtime version 14.

36 years ago*** empty log message ***
Chris Hanson [Mon, 13 Jun 1988 13:06:17 +0000 (13:06 +0000)]
*** empty log message ***

36 years ago*** empty log message ***
Chris Hanson [Mon, 13 Jun 1988 13:05:41 +0000 (13:05 +0000)]
*** empty log message ***

36 years agoInitial revision
Chris Hanson [Mon, 13 Jun 1988 12:38:37 +0000 (12:38 +0000)]
Initial revision

36 years agoFirst checkin for runtime system version 14.
Chris Hanson [Mon, 13 Jun 1988 12:31:31 +0000 (12:31 +0000)]
First checkin for runtime system version 14.

36 years agoFirst checkin for version 14.
Chris Hanson [Mon, 13 Jun 1988 12:07:50 +0000 (12:07 +0000)]
First checkin for version 14.

36 years agoFirst checkin for version 14.
Chris Hanson [Mon, 13 Jun 1988 12:00:56 +0000 (12:00 +0000)]
First checkin for version 14.

36 years ago*** empty log message ***
Chris Hanson [Mon, 13 Jun 1988 10:50:01 +0000 (10:50 +0000)]
*** empty log message ***

36 years agoFix nasty bug in tty interrupt code. The symptom of the bug was:
Chris Hanson [Fri, 10 Jun 1988 07:58:04 +0000 (07:58 +0000)]
Fix nasty bug in tty interrupt code.  The symptom of the bug was:
typing ^G while the microcode was in `TYI_Immediate' caused the next
read from the tty to get EOF; subsequently Scheme signalled TERM_EOF.
The problem was that there was local storage in `TYI_Immediate', which
contained trash after the interrupt performed a `longjmp' back into
the procedure.  According to the definition of `setjmp', it is illegal
to depend on such local storage.  We are unlucky in that only a little
bit of the local storage was affected so it took a long time to notice
this problem.

This was fixed by introducing a fluid-binding mechanism to allocate
and deallocate local state.  There may be a problem with the
interaction between `longjmp' and this mechanism.  If we `longjmp'
past the deallocation routine the world will be messed up.

36 years agoFix to bitstr.c
Joe Marshall [Wed, 8 Jun 1988 16:10:06 +0000 (16:10 +0000)]
Fix to bitstr.c

36 years agoAttempt to fix one path through copy bits. I think this works,
Joe Marshall [Wed, 8 Jun 1988 16:05:31 +0000 (16:05 +0000)]
Attempt to fix one path through copy bits.  I think this works,
but I make no claims about understanding why.

36 years agoAdd new escape sequence which tells Emacs to change the working
Chris Hanson [Tue, 7 Jun 1988 16:43:10 +0000 (16:43 +0000)]
Add new escape sequence which tells Emacs to change the working
directory of the Scheme process buffer.

36 years agoAdded complex number arithmetic (no trancendentals).
Henry M. Wu [Sun, 5 Jun 1988 00:59:25 +0000 (00:59 +0000)]
Added complex number arithmetic (no trancendentals).

36 years agoAdded complex number abstraction.
Henry M. Wu [Sat, 4 Jun 1988 23:23:21 +0000 (23:23 +0000)]
Added complex number abstraction.

36 years ago(cse/assign) Notice pops from stack and adjust stack pointer
Chris Hanson [Fri, 3 Jun 1988 23:54:57 +0000 (23:54 +0000)]
(cse/assign) Notice pops from stack and adjust stack pointer
accordingly.  Can't understand why this wasn't noticed before.

36 years agoVariety of bug fixes. Also revert this file so that the names
Chris Hanson [Fri, 3 Jun 1988 15:14:13 +0000 (15:14 +0000)]
Variety of bug fixes.  Also revert this file so that the names
exported from the compiler package are put directly in the global
environment, instead of the environment into which the file is loaded.

36 years ago(hash-table-insert!) If `hash' is false, do not link the resulting
Chris Hanson [Fri, 3 Jun 1988 14:58:15 +0000 (14:58 +0000)]
(hash-table-insert!) If `hash' is false, do not link the resulting
element into a hash bucket -- just save it in the value chain.

36 years ago(invalidate-memory-destination!) Optimize this -- if both class and
Chris Hanson [Fri, 3 Jun 1988 14:56:55 +0000 (14:56 +0000)]
(invalidate-memory-destination!) Optimize this -- if both class and
hash are not given, don't bother to insert the element in the hash
table, because it will have no useful effect.

36 years ago(assignment-memory-insertion) Do not perform CSE on the memory
Chris Hanson [Fri, 3 Jun 1988 14:54:29 +0000 (14:54 +0000)]
(assignment-memory-insertion) Do not perform CSE on the memory
address.  Doing that causes problems because the memory address cannot
be distinguished from a reference to that address.  The RTL should be
fixed so that these things are distinguished, and then we can
re-enable memory address CSE.

36 years ago(add-pseudo-register-alias) Delete the alias from the register map
Chris Hanson [Fri, 3 Jun 1988 14:51:51 +0000 (14:51 +0000)]
(add-pseudo-register-alias) Delete the alias from the register map
first.  This prevents the map from having two entries for the same
alias, one of which is incorrect.

36 years agoChange `compiler:write-rtl-file' to do defaulting of file type
Chris Hanson [Fri, 3 Jun 1988 14:50:41 +0000 (14:50 +0000)]
Change `compiler:write-rtl-file' to do defaulting of file type
differently, and to allow an optional output file argument.

36 years agoAdd new rule.
Chris Hanson [Sat, 28 May 1988 04:11:13 +0000 (04:11 +0000)]
Add new rule.

36 years ago*** empty log message ***
Chris Hanson [Fri, 20 May 1988 01:06:12 +0000 (01:06 +0000)]
*** empty log message ***

36 years agoOops. Small bug with fixnum additions and subtractions of constants.
Mark Friedman [Thu, 19 May 1988 18:37:36 +0000 (18:37 +0000)]
Oops. Small bug with fixnum additions and subtractions of constants.

36 years agoopen coded vector-ref and vector-set! for non-constant
Mark Friedman [Thu, 19 May 1988 15:39:50 +0000 (15:39 +0000)]
open coded vector-ref and vector-set! for non-constant
indices.

36 years agoAdded expression cost for FIXNUM->OBJECT.
Mark Friedman [Thu, 19 May 1988 15:32:53 +0000 (15:32 +0000)]
Added expression cost for FIXNUM->OBJECT.
Subtracted the boxing cost for the fixnum operations
because we now do the boxing explicitly via FIXNUM->OBJECT.

36 years agoFixed code for fixnum operations involving constants.
Mark Friedman [Thu, 19 May 1988 15:29:00 +0000 (15:29 +0000)]
Fixed code for fixnum operations involving constants.
Multiplication by a power of 2 becomes a shift.
If the fixnum operation is commutative and involves a
constant, better code may be generated by swaping the
order of the operands. This is now done.

36 years agoAdded support for FIXNUM->OBJECT rtl type.
Mark Friedman [Thu, 19 May 1988 15:26:57 +0000 (15:26 +0000)]
Added support for FIXNUM->OBJECT rtl type.
Removed the implicit boxing of fixnum operations
because it is now done explicitly by FIXNUM->OBJECT.

36 years agoAdded an explicit FIXNUM->OBJECT rtl type for eventual
Mark Friedman [Thu, 19 May 1988 15:22:46 +0000 (15:22 +0000)]
Added an explicit FIXNUM->OBJECT rtl type for eventual
support for reusing the unboxed results of fixnum operations

36 years agoOpen coded vector-ref and vector-set! with non-constant indices.
Mark Friedman [Thu, 19 May 1988 15:10:36 +0000 (15:10 +0000)]
Open coded vector-ref and vector-set! with non-constant indices.
No index range checking yet.
Commented out code for open codinf of system-... functions with
side effects. These were causing an esoteric GC problem.

36 years agoFix bug in INTERPRETER-REGISTER. It now checks whether the offset is
Guillermo J. Rozas [Thu, 19 May 1988 01:47:37 +0000 (01:47 +0000)]
Fix bug in INTERPRETER-REGISTER.  It now checks whether the offset is
a known offset directly, and if not, it tries the aligned version
instead.  The bug was noticed because interpreter entries are 6 bytes
long, so only half of them are aligned, and the others were not found.

36 years agoCharacter Stuff.
Henry M. Wu [Tue, 17 May 1988 16:57:01 +0000 (16:57 +0000)]
Character Stuff.

36 years agoDisassembler changes:
Guillermo J. Rozas [Sat, 14 May 1988 16:20:17 +0000 (16:20 +0000)]
Disassembler changes:

- Fix unbound variable bugs in the disassembler.
- Fix symbolic/numeric register bug.
- Fix bug backing out of undefined instructions.
- Make bad 68020 extended forms back out instead of causing errors.
- Add handlers for 68020 32/64 bit multiplication and division.

36 years agoAdd aliases for `object-new-type' and `primitive-object-new-type'.
Chris Hanson [Fri, 13 May 1988 03:01:07 +0000 (03:01 +0000)]
Add aliases for `object-new-type' and `primitive-object-new-type'.

36 years agoConditionalize phase error test so that it is ignored if
Chris Hanson [Thu, 12 May 1988 22:28:29 +0000 (22:28 +0000)]
Conditionalize phase error test so that it is ignored if
FLOATING_ALIGNMENT is defined.  This will eventually be fixed
correctly.

36 years agoBugs: `object-gc-type' was using `MAKE_UNSIGNED_FIXNUM' to compute its
Chris Hanson [Wed, 11 May 1988 17:21:16 +0000 (17:21 +0000)]
Bugs: `object-gc-type' was using `MAKE_UNSIGNED_FIXNUM' to compute its
result when in fact the result was signed.  `object-set-type' was
going to `Microcode_Termination' when its first argument was an
unknown type code, rather than signalling a bad-range error.

36 years agoInitial revision
Guillermo J. Rozas [Wed, 11 May 1988 04:20:07 +0000 (04:20 +0000)]
Initial revision

36 years agoAdd a REDUCE-OPERATOR declaration so that users can get the same
Guillermo J. Rozas [Wed, 11 May 1988 04:19:27 +0000 (04:19 +0000)]
Add a REDUCE-OPERATOR declaration so that users can get the same
functionality as the system already provides for +, -, list, etc.

Shorten some of the warning messages.

36 years agoAdded knowledge of byte/char operations
Henry M. Wu [Tue, 10 May 1988 19:53:41 +0000 (19:53 +0000)]
Added knowledge of byte/char operations

36 years agoChange type check on first argument to `dump-band' to include all
Chris Hanson [Tue, 10 May 1988 18:14:04 +0000 (18:14 +0000)]
Change type check on first argument to `dump-band' to include all
applicable types.

Change definitions of SMALLEST_FIXNUM and BIGGEST_FIXNUM to have
explicit casts to long type.  Previously this was automatically true
but ANSI C forces such constants to be unsigned long instead.

36 years agoChange type check on first argument to `dump-band' to include all
Chris Hanson [Tue, 10 May 1988 18:12:45 +0000 (18:12 +0000)]
Change type check on first argument to `dump-band' to include all
applicable types.

36 years agoChange definitions of SMALLEST_FIXNUM and BIGGEST_FIXNUM to have
Chris Hanson [Tue, 10 May 1988 17:34:41 +0000 (17:34 +0000)]
Change definitions of SMALLEST_FIXNUM and BIGGEST_FIXNUM to have
explicit casts to long type.  Previously this was automatically true
but ANSI C forces such constants to be unsigned long instead.

36 years agoMove `get-fluid-bindings' and `set-fluid-bindings!' into the normal
Chris Hanson [Tue, 10 May 1988 15:16:46 +0000 (15:16 +0000)]
Move `get-fluid-bindings' and `set-fluid-bindings!' into the normal
microcode.  This allows the new runtime system to have the hooks for
fluid-bindings even if they aren't in use.

36 years agoCHAR/STRING open-coding, bug fix
Henry M. Wu [Tue, 10 May 1988 00:38:45 +0000 (00:38 +0000)]
CHAR/STRING open-coding, bug fix

36 years agoCHAR/STRING open-coding, bug fix
Henry M. Wu [Tue, 10 May 1988 00:10:33 +0000 (00:10 +0000)]
CHAR/STRING open-coding, bug fix

36 years agoCHAR/STRING open-coding
Henry M. Wu [Mon, 9 May 1988 20:01:32 +0000 (20:01 +0000)]
CHAR/STRING open-coding