Guillermo J. Rozas [Fri, 4 May 1990 15:15:18 +0000 (15:15 +0000)]
Fix a bug in walk-procedure that manifested itself in sf/subst.
The free variables in closures are determined exclusively by the
closure block, not by the free variables of the procedure block.
Guillermo J. Rozas [Thu, 3 May 1990 15:22:29 +0000 (15:22 +0000)]
Add support for multi-closures, ie. closures with multiple (or no)
entry points that share the environment "frame".
Guillermo J. Rozas [Thu, 3 May 1990 15:06:40 +0000 (15:06 +0000)]
Change generate/sequence to process forms in order (left to right).
In this way, compilation by procedures compiles the procedures in the
order in which they appear in the file, producing predictable output.
Guillermo J. Rozas [Thu, 3 May 1990 15:03:49 +0000 (15:03 +0000)]
Fix the lap->code example.
procedure-variables are now cleaned up after phase/setup-block-types
rather than phase/identify-closure-limits, since the multi-closure
code in phase/setup-block-types needs this information.
Guillermo J. Rozas [Thu, 3 May 1990 14:59:34 +0000 (14:59 +0000)]
Increase the size of symbol tables. Symbol tables should be growing
(re-hashing) hash tables, but are currently fixed. The previous value
was too small for large compilation units. The current one may be too
large for small units, but oh well.
Guillermo J. Rozas [Fri, 27 Apr 1990 23:43:27 +0000 (23:43 +0000)]
One more step of making file-touch work better in a distributed
environment. Some changes for NFS (addition of special handling of
ESTALE), and better handling of some other conditions.
Guillermo J. Rozas [Mon, 23 Apr 1990 02:43:10 +0000 (02:43 +0000)]
Add ADJUST_CLOSURE_AT_CALL.
Guillermo J. Rozas [Mon, 23 Apr 1990 02:36:21 +0000 (02:36 +0000)]
Remove the interrupt multiclosure register setup and special entry
point.
Guillermo J. Rozas [Mon, 23 Apr 1990 02:35:49 +0000 (02:35 +0000)]
Add ADJUST_CLOSURE_AT_CALL.
Remove the interrupt multiclosure register setup.
Guillermo J. Rozas [Mon, 23 Apr 1990 02:35:00 +0000 (02:35 +0000)]
Eliminate comutil_interrupt_multiclosure. It was not correct.
Modify comutil_interrupt_closure to accomodate closures in machines
where the environment pointer does not match the entry point.
This is done using a new macro ADJUST_CLOSURE_AT_CALL from
cmpint-xxx.h
Jim Miller [Sat, 21 Apr 1990 17:18:08 +0000 (17:18 +0000)]
Fixed bug in comutil_interrupt_dlink (passing 2 instead of 3 arguments
to compiler_interrupt_common).
Guillermo J. Rozas [Sat, 21 Apr 1990 16:26:47 +0000 (16:26 +0000)]
New information in closure dbg blocks to accomodate multiclosures and
make the accessors/mutators architecture independent.
Guillermo J. Rozas [Sat, 21 Apr 1990 15:20:05 +0000 (15:20 +0000)]
New information in closure dbg blocks to accomodate multiclosures and
make the accessors/mutators architecture independent.
Guillermo J. Rozas [Thu, 19 Apr 1990 19:09:56 +0000 (19:09 +0000)]
- Change "link.l" into "link" because Asmcvt does not understand it.
- Change "jmp(%a0)" into "jmp (%a0)" because Asmcvt does not parse
it correctly.
Chris Hanson [Tue, 17 Apr 1990 22:20:34 +0000 (22:20 +0000)]
*** empty log message ***
Chris Hanson [Tue, 17 Apr 1990 22:20:00 +0000 (22:20 +0000)]
For hp-ux 7.0, must define _HPUX_SOURCE if the compiler is ANSI C.
Chris Hanson [Tue, 17 Apr 1990 22:16:44 +0000 (22:16 +0000)]
Eliminate (now incorrect) declarations for various procedures defined
in the C library.
Chris Hanson [Tue, 17 Apr 1990 21:56:23 +0000 (21:56 +0000)]
Eliminate (now incorrect) declarations for various procedures defined
in the C library.
Chris Hanson [Tue, 17 Apr 1990 21:54:56 +0000 (21:54 +0000)]
Fix conversion of Scheme argument to fopen.
Chris Hanson [Tue, 17 Apr 1990 19:16:28 +0000 (19:16 +0000)]
"bignum.o" depends on "limits.h".
Mark Friedman [Fri, 13 Apr 1990 14:14:58 +0000 (14:14 +0000)]
Added LOAD-LATEST and FASLOAD-LATEST to load the most recently
modified of the LOAD/DEFAULT-TYPES (or FASLOAD/DEFAULT-TYPES). Also
added a LOAD/DEFAULT-FIND-PATHNAME-WITH-TYPE variable which LOAD and
FASLOAD will use (indirectly) to determine what file type to load. See
the rcs log for load.scm for more info.
Chris Hanson [Thu, 12 Apr 1990 22:54:21 +0000 (22:54 +0000)]
Don't treat `restore-value' frame as a subproblem.
Guillermo J. Rozas [Thu, 12 Apr 1990 22:51:15 +0000 (22:51 +0000)]
Rewrite file_touch to use fstat after open rather than stat and then
open. This seems to reduce the problems with stale NFS handles, and
should affect nothing else.
Mark Friedman [Thu, 12 Apr 1990 22:50:28 +0000 (22:50 +0000)]
Oops, forgot some initializations for the LOAD-LATEST stuff. See the
log for the last version for more info.
Guillermo J. Rozas [Thu, 12 Apr 1990 22:47:59 +0000 (22:47 +0000)]
Add multi closure interrupt support.
Merge in some MIPS changes (bug fix to bitstrings, and file_touch).
Guillermo J. Rozas [Thu, 12 Apr 1990 22:46:59 +0000 (22:46 +0000)]
Add asm_interrupt_multiclosure.
Guillermo J. Rozas [Thu, 12 Apr 1990 22:46:26 +0000 (22:46 +0000)]
Add comutil_interrupt_multiclosure.
Mark Friedman [Thu, 12 Apr 1990 21:56:31 +0000 (21:56 +0000)]
Added LOAD-LATEST and FASLOAD-LATEST to load the most recently
modified version among the LOAD/DEFAULT-TYPES.
Added a variable LOAD/DEFAULT-FIND-PATHNAME-WITH-TYPE which may be set
to a procedure which tells load how to decide which file type to use.
The procedure accepts a pathname and a list of file type strings
(usually this will be LOAD/DEFAULT-TYPES) and should return the
complete pathname for load to use.
Guillermo J. Rozas [Thu, 12 Apr 1990 21:12:22 +0000 (21:12 +0000)]
Fix a bug in BIT_STRING_INDEX_PAIR_TO_INDEX for machines with vax byte
order.
Guillermo J. Rozas [Thu, 12 Apr 1990 21:08:14 +0000 (21:08 +0000)]
Forgot to change the copyright date.
Guillermo J. Rozas [Thu, 12 Apr 1990 21:07:04 +0000 (21:07 +0000)]
Add `#undef ultrix' for unknown reasons -- JMiller.
Guillermo J. Rozas [Thu, 12 Apr 1990 21:05:34 +0000 (21:05 +0000)]
Bump the default space parameters on the MIPS when there is compiler
support.
Guillermo J. Rozas [Thu, 12 Apr 1990 21:04:06 +0000 (21:04 +0000)]
Add 6 bit type codes and an optimizer switch to be able to handle
interp.c
Chris Hanson [Tue, 10 Apr 1990 20:10:04 +0000 (20:10 +0000)]
Change `file-open-channel' primitive to permit opening a file in
append mode. The second argument to this primitive is now interpreted
as follows:
#F => open for input
#T => open for output
else => open for append
Chris Hanson [Tue, 10 Apr 1990 20:05:26 +0000 (20:05 +0000)]
Add optional second argument to `open-output-file': if supplied and
not false, the file is opened for append.
Chris Hanson [Tue, 10 Apr 1990 16:03:03 +0000 (16:03 +0000)]
Rename local variable to prevent confusion during debugging.
Chris Hanson [Tue, 10 Apr 1990 15:53:35 +0000 (15:53 +0000)]
Detect and signal error for `(let 3 4)'.
Chris Hanson [Tue, 10 Apr 1990 15:53:06 +0000 (15:53 +0000)]
Force top-level syntax definitions to be local to the file in which
they appear.
Chris Hanson [Tue, 10 Apr 1990 15:46:39 +0000 (15:46 +0000)]
Force top-level syntax definitions to be local to the file in which
they appear.
Chris Hanson [Mon, 9 Apr 1990 21:21:01 +0000 (21:21 +0000)]
Fix broken movb and movib instruction definitions.
Chris Hanson [Mon, 9 Apr 1990 21:07:36 +0000 (21:07 +0000)]
Fix broken qualifier.
Chris Hanson [Mon, 9 Apr 1990 20:35:44 +0000 (20:35 +0000)]
Fix definition of type-scale-factor.
Guillermo J. Rozas [Mon, 9 Apr 1990 15:10:07 +0000 (15:10 +0000)]
Fix macro definition from last change.
Guillermo J. Rozas [Mon, 9 Apr 1990 14:52:57 +0000 (14:52 +0000)]
Add code to flush the I-cache at the right times: After storing an
execute cache entry, and after major relocations (GC and
disk-restore).
Guillermo J. Rozas [Wed, 4 Apr 1990 19:47:29 +0000 (19:47 +0000)]
Remove check window by using file-touch, that returns #t or #f
depending on whether the file existed or not.
Guillermo J. Rozas [Wed, 4 Apr 1990 18:52:12 +0000 (18:52 +0000)]
Change file-touch to return #t if the file did not exist previously
and was succesfully created, #f if it existed, and was succesfully
modified, and an error string otherwise.
Guillermo J. Rozas [Wed, 4 Apr 1990 18:51:37 +0000 (18:51 +0000)]
Change file-touch to return #t if the file did not exist previously
and was succesfully created, #f if it existed, and was succesfully
modified, and an error string otherwise.
Guillermo J. Rozas [Wed, 4 Apr 1990 18:23:16 +0000 (18:23 +0000)]
Change file-touch to give an error only if the result of the primitive
is an error string.
Guillermo J. Rozas [Tue, 3 Apr 1990 23:21:21 +0000 (23:21 +0000)]
Allow (pseudo) instructions to expand into no code.
Guillermo J. Rozas [Tue, 3 Apr 1990 23:20:52 +0000 (23:20 +0000)]
Make BSR to the following instruction cause an error at assembly time.
Guillermo J. Rozas [Tue, 3 Apr 1990 23:20:21 +0000 (23:20 +0000)]
Prevent the diamond rule for pblocks from generating the same block on
both branches, the assembler will then complain because of duplicate
labels.
Guillermo J. Rozas [Tue, 3 Apr 1990 19:57:05 +0000 (19:57 +0000)]
Forgot to change > to != in last change.
Guillermo J. Rozas [Tue, 3 Apr 1990 19:53:47 +0000 (19:53 +0000)]
Eliminate dependency on byte order from BIT-SUBSTRING-FIND-NEXT-SET-BIT.
Use INC_BIT_STR_PTR rather than pre-decrementing.
Guillermo J. Rozas [Tue, 3 Apr 1990 06:17:26 +0000 (06:17 +0000)]
Fix load-interface-args! which was clearing the wrong registers.
Fix rulrew which was constant folding object->type and object->datum
incorrectly.
Improve code sequences generated for inline-coded generic arithmetic
in reduction position when arguments are constant.
Make compiler declarations propagate when compile-by-procedures? is
on.
Guillermo J. Rozas [Tue, 3 Apr 1990 06:10:06 +0000 (06:10 +0000)]
Fix load-interface-args! which was clearing the wrong registers.
Guillermo J. Rozas [Tue, 3 Apr 1990 06:01:54 +0000 (06:01 +0000)]
Patch inline code so that inliners that call out of line will see
constant operands rather than stack locations.
Guillermo J. Rozas [Tue, 3 Apr 1990 04:52:59 +0000 (04:52 +0000)]
Fix broken rewrite rules by which generic arithmetic with a constant
argument was always calling off-line.
Guillermo J. Rozas [Tue, 3 Apr 1990 04:51:16 +0000 (04:51 +0000)]
Make top level declarations propagate when compile-by-procedures is
turned on.
Guillermo J. Rozas [Tue, 3 Apr 1990 04:50:08 +0000 (04:50 +0000)]
Fix bugs in rulrew by which generic arithmetic with a constant
argument was always calling off-line.
Make top level declarations propagate when compile-by-procedures is
turned on.
Guillermo J. Rozas [Tue, 3 Apr 1990 00:15:53 +0000 (00:15 +0000)]
Add MIPS compiler support, and remove nesting of #if's on PROC_TYPE.
Guillermo J. Rozas [Tue, 3 Apr 1990 00:04:44 +0000 (00:04 +0000)]
Add typedef of format_word when not HAS_COMPILER_SUPPORT.
It should never be used, but the macro stubs should guarantee this.
Guillermo J. Rozas [Mon, 2 Apr 1990 15:32:24 +0000 (15:32 +0000)]
Update to match 68k.
lap:make-unconditional-branch returns an instruction sequence rather
than a single instruction because on machines with branch delay slots
and no nullification, a NOP must appear as well.
Comment out uses of expt, since compiler declarations don't work with
compile-by-procedures?
Add a test on endianness to expand-fields so that the same macros can
be used for all RISC machines.
Guillermo J. Rozas [Mon, 2 Apr 1990 15:30:54 +0000 (15:30 +0000)]
Add a test on endianness to expand-fields so that the same macros can
be used for all RISC machines.
Guillermo J. Rozas [Mon, 2 Apr 1990 15:30:02 +0000 (15:30 +0000)]
Comment out uses of expt, since compiler declarations don't work with
compile-by-procedures?
Guillermo J. Rozas [Mon, 2 Apr 1990 15:28:32 +0000 (15:28 +0000)]
lap:make-unconditional-branch returns an instruction sequence rather
than a single instruction because on machines with branch delay slots
and no nullification, a NOP must appear as well.
Comment out uses of expt, since compiler declarations don't work with
compile-by-procedures?
Guillermo J. Rozas [Sun, 1 Apr 1990 22:31:56 +0000 (22:31 +0000)]
Major change:
- New drifting/undrifting code and closure analysis.
Minor changes:
- lap:make-uncoditional-branch now returns a sequence of instructions,
rather than a single instruction.
- Uses of `expt' in machin and lapgen have temporarily been commented
out because the `usual-definition' declaration does not work when
`compile-by-procedures?' is turned on.
- letrec-value now gives only a warning when binding a trivial
closure.
- close-procedure! in blktyp now only gives a warning when a
non-trivial closure becomes trivial.
Guillermo J. Rozas [Sun, 1 Apr 1990 22:28:28 +0000 (22:28 +0000)]
Substitute constants for expressions computed with `expt'. The expt
constant-folding declaration is currently ignored (because of
compile-by-procedures? breaking compiler declarations) and since the
values are integrated, they were being computed in a zillion places.
Guillermo J. Rozas [Sun, 1 Apr 1990 22:26:21 +0000 (22:26 +0000)]
lap:make-unconditional-branch now returns a sequence rather than a
single instructions. On machines with branch delay slots and no
nullification, a nop must be returned in addition to the branch
instruction.
Guillermo J. Rozas [Sun, 1 Apr 1990 22:26:01 +0000 (22:26 +0000)]
lap:make-unconditional-branch now returns a sequence rather than a
single instructions. On machines with branch delay slots and no
nullification, a nop must be returned in addition to the branch
instruction.
Guillermo J. Rozas [Sun, 1 Apr 1990 22:24:35 +0000 (22:24 +0000)]
letrec-value no longer errors if a binding is a trivial closure.
There are perfectly legal programs where this happens, although they
are written in poor style. It now just gives a warning.
Guillermo J. Rozas [Sun, 1 Apr 1990 22:23:16 +0000 (22:23 +0000)]
Nth revision of this code.
Improve the closing and undrifting code significantly. Many of the
procedures that were (needlessly) closed by the previous version are
no longer closed.
Undrifting constraints are computed more precisely.
Additionally, closing checks connectivity of the environment chain
(generating undrifting constraints as necessary) to ensure that all
the free variables captured are in fact available, and it also ensures
that disowned children (spliced out by the drifting code) are
undrifted if they depend on the closed-over variables.
One potential non-improvement introduced: Undrifting any procedure
forces its compatibility class to close, in order to avoid a harder
analysis. This is a cop-out for now.
Guillermo J. Rozas [Sun, 1 Apr 1990 22:19:41 +0000 (22:19 +0000)]
Get rid of funny drifting rules. Let-like procedures and others that
were previously not allowed to drift are now allowed to. The
undrifting code takes care of them.
Guillermo J. Rozas [Sun, 1 Apr 1990 22:18:32 +0000 (22:18 +0000)]
It's OK for a non-trivial closure to become trivial, not the other way
around. The previous error is now split into a warning (in the
unexpected but bad case), and an error (in the bad case).
Guillermo J. Rozas [Sun, 1 Apr 1990 20:32:02 +0000 (20:32 +0000)]
Fix bch system to run on machines with floating alignment.
Guillermo J. Rozas [Sun, 1 Apr 1990 20:19:57 +0000 (20:19 +0000)]
Initial revision
Guillermo J. Rozas [Sun, 1 Apr 1990 20:14:51 +0000 (20:14 +0000)]
Initial revision
Guillermo J. Rozas [Sun, 1 Apr 1990 20:10:29 +0000 (20:10 +0000)]
Add MIPS compiler support.
Guillermo J. Rozas [Wed, 28 Mar 1990 22:05:00 +0000 (22:05 +0000)]
Initial revision
Guillermo J. Rozas [Wed, 28 Mar 1990 06:11:39 +0000 (06:11 +0000)]
Add new method for finding variable that is used by stack-overwrite
mechanism. This new method does not use any tricks like variable
indirection to find the value, but produces a locative for that
particular variable.
Guillermo J. Rozas [Wed, 28 Mar 1990 06:07:59 +0000 (06:07 +0000)]
Undrifting constraints must propagate transitively to free callers.
Undrifted procedures must be re-analyzed for Exporting.
Guillermo J. Rozas [Tue, 27 Mar 1990 00:50:00 +0000 (00:50 +0000)]
Move switch.scm back to compiler/base, so it can be shared.
Update to match 68k version.
Guillermo J. Rozas [Mon, 26 Mar 1990 23:46:08 +0000 (23:46 +0000)]
Add compiler:noisy?
Move switch.scm back to compiler/base, so it can be shared.
Update to match 68k version.
Guillermo J. Rozas [Mon, 26 Mar 1990 23:45:38 +0000 (23:45 +0000)]
Add compiler:noisy?
Guillermo J. Rozas [Mon, 26 Mar 1990 23:45:05 +0000 (23:45 +0000)]
Add compiler:noisy?
Guillermo J. Rozas [Mon, 26 Mar 1990 23:36:42 +0000 (23:36 +0000)]
Move switch.scm back to compiler/base, so it can be shared.
Update to match 68k version.
Guillermo J. Rozas [Mon, 26 Mar 1990 23:27:32 +0000 (23:27 +0000)]
Move switch.scm back to compiler/base, so it can be shared.
Guillermo J. Rozas [Mon, 26 Mar 1990 20:49:53 +0000 (20:49 +0000)]
Add sf:noisy? flag, and syntax&integrate global procedure.
Guillermo J. Rozas [Mon, 26 Mar 1990 19:42:44 +0000 (19:42 +0000)]
Modify gc-statistic/meter so that gcnote will not be confused.
Guillermo J. Rozas [Mon, 26 Mar 1990 19:38:43 +0000 (19:38 +0000)]
Add gc-timestamp for data structures that need to be updated after
gcs, but not necessarily after each gc.
Guillermo J. Rozas [Sat, 24 Mar 1990 19:14:13 +0000 (19:14 +0000)]
Add arities to primitive definitions so that the file will syntax and
load in systems with no process primitives.
Guillermo J. Rozas [Sat, 24 Mar 1990 13:22:42 +0000 (13:22 +0000)]
Fix register*constant methods for plus-fixnum and minus-fixnum.
When adding 0 with overflow tests, they were not loading the target.
Chris Hanson [Wed, 21 Mar 1990 02:12:51 +0000 (02:12 +0000)]
When accessing `block-procedure', make sure it is a procedure before
using it as such; it might be an expression instead.
Chris Hanson [Fri, 16 Mar 1990 22:43:33 +0000 (22:43 +0000)]
Fix unbound variable in `delete-process'. The `process/to-port' is an
output port, not an input port, so use the appropriate operation to
close it. Also do some slight reformatting.
Chris Hanson [Wed, 14 Mar 1990 21:06:31 +0000 (21:06 +0000)]
*** empty log message ***
Chris Hanson [Wed, 14 Mar 1990 21:06:06 +0000 (21:06 +0000)]
In `decode-ordinary-floating-instruction', always specify at least two
operands in the result, because the assembler does not understand the
one-operand syntax.
Chris Hanson [Wed, 14 Mar 1990 21:05:05 +0000 (21:05 +0000)]
In `two-arg-register-operation', don't delete reused alias of first
operand until the second operand's reference has been computed. This
prevents the reused alias from being mistakenly re-allocated for use
by the second operand.
Chris Hanson [Tue, 13 Mar 1990 00:27:17 +0000 (00:27 +0000)]
*** empty log message ***
Chris Hanson [Tue, 13 Mar 1990 00:20:45 +0000 (00:20 +0000)]
Conditionalize floating-point register load instructions to give
source type if loading from memory.
Chris Hanson [Mon, 12 Mar 1990 23:20:01 +0000 (23:20 +0000)]
Conditionalize binary floating-point open-coded operations on whether
the source is a register or not.
Chris Hanson [Mon, 12 Mar 1990 21:38:18 +0000 (21:38 +0000)]
Remove duplicate entry for fp6 from the list of initially available
registers.