mit-scheme.git
17 years agoRewrite code to compile Scheme files; now "etc/compile.scm" contains
Chris Hanson [Thu, 3 May 2007 03:45:52 +0000 (03:45 +0000)]
Rewrite code to compile Scheme files; now "etc/compile.scm" contains
all of the compilation programs.  Each shell script loads
"etc/compile.scm" and invokes the appropriate entry point.
Additionally, differences between native compilation and liarc
compilation have been integrated, so that there are now fewer
necessary scripts.

17 years agoChange "Clean.sh" files to use common shell function to manage file removal.
Chris Hanson [Thu, 3 May 2007 03:40:27 +0000 (03:40 +0000)]
Change "Clean.sh" files to use common shell function to manage file removal.

17 years agoDon't clean "make.dylib"; we don't generate it any more.
Chris Hanson [Thu, 3 May 2007 03:35:36 +0000 (03:35 +0000)]
Don't clean "make.dylib"; we don't generate it any more.

17 years agoSet up "scheme" and "bchscheme" symlinks properly when installing.
Chris Hanson [Wed, 2 May 2007 13:51:56 +0000 (13:51 +0000)]
Set up "scheme" and "bchscheme" symlinks properly when installing.

17 years agoFix "(load-option 'compiler)" to work right with liarc.
Chris Hanson [Wed, 2 May 2007 13:51:03 +0000 (13:51 +0000)]
Fix "(load-option 'compiler)" to work right with liarc.

17 years agoSimplify: no need for SCHEME_COMPILER variable since this script
Chris Hanson [Wed, 2 May 2007 13:50:04 +0000 (13:50 +0000)]
Simplify: no need for SCHEME_COMPILER variable since this script
should always use the compiler we just built.

17 years agoEliminate unnecessary "(load-option 'sf)".
Chris Hanson [Wed, 2 May 2007 13:49:02 +0000 (13:49 +0000)]
Eliminate unnecessary "(load-option 'sf)".

17 years agoChange meaning of "make c-clean" to delete only those files created by
Chris Hanson [Wed, 2 May 2007 03:59:23 +0000 (03:59 +0000)]
Change meaning of "make c-clean" to delete only those files created by
"make c".  Clean up "Setup.sh" and "Clean.sh" scripts to use "set -e",
to avoid gratuitous uses of "exit", and to have consistent quoting.

17 years agoAdd new variable MICROCODE-ID/COMPILED-CODE-TYPE. Add optional ERROR?
Chris Hanson [Wed, 2 May 2007 00:11:10 +0000 (00:11 +0000)]
Add new variable MICROCODE-ID/COMPILED-CODE-TYPE.  Add optional ERROR?
argument to MICROCODE-IDENTIFICATION-VECTOR-SLOT and
MICROCODE-IDENTIFICATION-ITEM.

17 years agoHandle case where cc-arch isn't known. Change cc-arch names to match
Chris Hanson [Wed, 2 May 2007 00:09:29 +0000 (00:09 +0000)]
Handle case where cc-arch isn't known.  Change cc-arch names to match
the names used in "cmpintmd/".

17 years agoSimplify char_pointer_to_string.
Chris Hanson [Wed, 2 May 2007 00:07:51 +0000 (00:07 +0000)]
Simplify char_pointer_to_string.

17 years agoAdd identification item for compiled-code architecture.
Chris Hanson [Tue, 1 May 2007 19:52:32 +0000 (19:52 +0000)]
Add identification item for compiled-code architecture.

17 years agoEliminate output optimization for binary; it was breaking column
Chris Hanson [Tue, 1 May 2007 14:12:52 +0000 (14:12 +0000)]
Eliminate output optimization for binary; it was breaking column
tracking.

17 years agoUse output port's column tracking rather than computing it ourselves.
Chris Hanson [Tue, 1 May 2007 14:09:48 +0000 (14:09 +0000)]
Use output port's column tracking rather than computing it ourselves.
Simplify organization of code.

17 years agoEliminate "lib/shared"; move contents to "lib/lib".
Chris Hanson [Tue, 1 May 2007 04:55:22 +0000 (04:55 +0000)]
Eliminate "lib/shared"; move contents to "lib/lib".

17 years agoChange liarc system to use "mit-scheme-c" as name of executable and of
Chris Hanson [Mon, 30 Apr 2007 07:08:54 +0000 (07:08 +0000)]
Change liarc system to use "mit-scheme-c" as name of executable and of
library directory.  Otherwise "mit-scheme" is used as before.  The
installer needs some work to deal with symlinks for the "scheme" and
"bchscheme" names.

17 years agoIncrease heap size to eliminate weird compilation error.
Chris Hanson [Mon, 30 Apr 2007 01:49:30 +0000 (01:49 +0000)]
Increase heap size to eliminate weird compilation error.

17 years agoBuild only two bands: "runtime.com" and "all.com". Others aren't
Chris Hanson [Mon, 30 Apr 2007 01:42:54 +0000 (01:42 +0000)]
Build only two bands: "runtime.com" and "all.com".  Others aren't
nearly as useful as those two.

17 years agoPass --disable-native-code when setting up.
Chris Hanson [Mon, 30 Apr 2007 01:36:14 +0000 (01:36 +0000)]
Pass --disable-native-code when setting up.

17 years agoEliminate use of $(^:.o=.c) which is a GNU make extension.
Chris Hanson [Mon, 30 Apr 2007 01:35:41 +0000 (01:35 +0000)]
Eliminate use of $(^:.o=.c) which is a GNU make extension.

17 years agoBump heap size so that compilation finishes.
Chris Hanson [Sun, 29 Apr 2007 20:46:43 +0000 (20:46 +0000)]
Bump heap size so that compilation finishes.

17 years ago"base/scode" no longer produces a .ext file.
Chris Hanson [Sun, 29 Apr 2007 20:20:27 +0000 (20:20 +0000)]
"base/scode" no longer produces a .ext file.

17 years agoFix typo in previous change.
Chris Hanson [Sun, 29 Apr 2007 20:17:43 +0000 (20:17 +0000)]
Fix typo in previous change.

17 years agoEliminate useless compiler warnings.
Chris Hanson [Sun, 29 Apr 2007 20:16:05 +0000 (20:16 +0000)]
Eliminate useless compiler warnings.

17 years agoFix typo: reverse sense of flag passed to FASLOAD.
Chris Hanson [Sun, 29 Apr 2007 19:48:08 +0000 (19:48 +0000)]
Fix typo: reverse sense of flag passed to FASLOAD.

17 years agoEliminate runtime support for pure space, which no longer exists.
Chris Hanson [Sun, 29 Apr 2007 19:26:51 +0000 (19:26 +0000)]
Eliminate runtime support for pure space, which no longer exists.

17 years agoEliminate now-unused error code.
Chris Hanson [Sun, 29 Apr 2007 19:23:33 +0000 (19:23 +0000)]
Eliminate now-unused error code.

17 years agoClean up output; use WITH-NOTIFICATION-LINE to normalize it.
Chris Hanson [Sun, 29 Apr 2007 18:39:08 +0000 (18:39 +0000)]
Clean up output; use WITH-NOTIFICATION-LINE to normalize it.

17 years agoMore tweaks to make liarc.stamp work right.
Chris Hanson [Sun, 29 Apr 2007 18:38:26 +0000 (18:38 +0000)]
More tweaks to make liarc.stamp work right.

17 years agoFix typos in previous change.
Chris Hanson [Sun, 29 Apr 2007 18:26:20 +0000 (18:26 +0000)]
Fix typos in previous change.

17 years agoSuppress loading/dumping messages for most files.
Chris Hanson [Sun, 29 Apr 2007 18:24:35 +0000 (18:24 +0000)]
Suppress loading/dumping messages for most files.

17 years agoAfter "make c" completes, generate a file "liarc.stamp" and use that
Chris Hanson [Sun, 29 Apr 2007 18:01:44 +0000 (18:01 +0000)]
After "make c" completes, generate a file "liarc.stamp" and use that
file to change the default value of "--enable-native-code" in
"./configure".

17 years agoEliminate unused ${FULL}.
Chris Hanson [Sun, 29 Apr 2007 17:56:15 +0000 (17:56 +0000)]
Eliminate unused ${FULL}.

17 years agoAllow two-part version numbers.
Chris Hanson [Sun, 29 Apr 2007 15:44:00 +0000 (15:44 +0000)]
Allow two-part version numbers.

17 years agoSignal error if liarc used without dynamic library support.
Chris Hanson [Sat, 28 Apr 2007 01:58:14 +0000 (01:58 +0000)]
Signal error if liarc used without dynamic library support.

17 years agoEliminate distinction between pure and constant.
Chris Hanson [Wed, 25 Apr 2007 14:06:14 +0000 (14:06 +0000)]
Eliminate distinction between pure and constant.

17 years agoFix examples in DEFINE-CLASS definition.
Chris Hanson [Tue, 24 Apr 2007 14:46:00 +0000 (14:46 +0000)]
Fix examples in DEFINE-CLASS definition.

17 years agoChanges to get v15 working in win32.
Chris Hanson [Tue, 24 Apr 2007 05:32:01 +0000 (05:32 +0000)]
Changes to get v15 working in win32.

17 years agoBump version number.
Chris Hanson [Sun, 22 Apr 2007 18:04:52 +0000 (18:04 +0000)]
Bump version number.

17 years agoWhen installing, create symlink from bchscheme to scheme.
Chris Hanson [Sun, 22 Apr 2007 16:41:01 +0000 (16:41 +0000)]
When installing, create symlink from bchscheme to scheme.

17 years agoMust conditionalize references to memory_base.
Chris Hanson [Sun, 22 Apr 2007 16:40:08 +0000 (16:40 +0000)]
Must conditionalize references to memory_base.

17 years agoFinal merge from pre-v15 branch.
Chris Hanson [Sun, 22 Apr 2007 16:31:24 +0000 (16:31 +0000)]
Final merge from pre-v15 branch.

17 years agoHandle definitions that start at the beginning of the buffer in
Taylor R. Campbell [Wed, 18 Apr 2007 20:27:30 +0000 (20:27 +0000)]
Handle definitions that start at the beginning of the buffer in
MARK-DEFUN command.

17 years agoTell unstackify how large the bytes block is.
Chris Hanson [Tue, 17 Apr 2007 06:02:14 +0000 (06:02 +0000)]
Tell unstackify how large the bytes block is.

17 years agoUse .so extension only when input file is a .bin file; otherwise use
Chris Hanson [Sun, 15 Apr 2007 19:21:53 +0000 (19:21 +0000)]
Use .so extension only when input file is a .bin file; otherwise use
input file's extension.

17 years agoAdapt to another change in built-in object handle naming.
Chris Hanson [Sun, 15 Apr 2007 19:21:17 +0000 (19:21 +0000)]
Adapt to another change in built-in object handle naming.

17 years agoForgot to export C-OUTPUT-EXTENSION.
Chris Hanson [Sun, 15 Apr 2007 18:02:15 +0000 (18:02 +0000)]
Forgot to export C-OUTPUT-EXTENSION.

17 years agoIn FIND-PATHNAME, don't do built-in test for pathnames without types;
Chris Hanson [Sun, 15 Apr 2007 17:50:37 +0000 (17:50 +0000)]
In FIND-PATHNAME, don't do built-in test for pathnames without types;
that will be handled by LOAD/DEFAULT-FIND-PATHNAME-WITH-TYPE.

17 years agoTweak.
Chris Hanson [Sun, 15 Apr 2007 17:43:08 +0000 (17:43 +0000)]
Tweak.

17 years agoIgnore .sl and .dylib file extensions; we're now using .so for all
Chris Hanson [Sun, 15 Apr 2007 17:38:38 +0000 (17:38 +0000)]
Ignore .sl and .dylib file extensions; we're now using .so for all
systems.

17 years agoUse correct output extension for built-in object handles.
Chris Hanson [Sun, 15 Apr 2007 17:36:57 +0000 (17:36 +0000)]
Use correct output extension for built-in object handles.

17 years agoForce use of .so suffix independent of operating system.
Chris Hanson [Sun, 15 Apr 2007 17:36:30 +0000 (17:36 +0000)]
Force use of .so suffix independent of operating system.

17 years agoChange to the right directory before tarring the C files.
Taylor R. Campbell [Sun, 15 Apr 2007 16:42:09 +0000 (16:42 +0000)]
Change to the right directory before tarring the C files.

17 years agoChange handles for liarc files to use output pathname, not input
Chris Hanson [Sun, 15 Apr 2007 15:50:42 +0000 (15:50 +0000)]
Change handles for liarc files to use output pathname, not input
pathname.

17 years agoSuppress "because of" messages.
Chris Hanson [Sun, 15 Apr 2007 15:49:20 +0000 (15:49 +0000)]
Suppress "because of" messages.

17 years agoBack out last change; shouldn't be necessary with change to compiler.
Chris Hanson [Sun, 15 Apr 2007 15:42:20 +0000 (15:42 +0000)]
Back out last change; shouldn't be necessary with change to compiler.

17 years agoChange handles for liarc files to use output pathname, not input
Chris Hanson [Sun, 15 Apr 2007 15:41:12 +0000 (15:41 +0000)]
Change handles for liarc files to use output pathname, not input
pathname.

17 years agoBump the stack size to two hundred blocks, rather than the default of
Taylor R. Campbell [Sun, 15 Apr 2007 08:16:34 +0000 (08:16 +0000)]
Bump the stack size to two hundred blocks, rather than the default of
one hundred blocks, when compiling Scheme with liarc.  One hundred
blocks is insufficient to compile sos/instance.scm with liarc.

17 years agoUse liarc built-in objects only for LOAD, not for FASLOAD. When we're
Taylor R. Campbell [Sun, 15 Apr 2007 07:49:50 +0000 (07:49 +0000)]
Use liarc built-in objects only for LOAD, not for FASLOAD.  When we're
actually loading code for execution, we need them; when we're loading
code for data (e.g., when loading scode for the compiler -- especially
when it is compiling itself, or other parts of the system that are
loaded into the compiler image), we need the file and not the compiled
expression statically linked into the microcode.

This is a kludge, but it is necessary for bootstrapping liarc.  I
don't know whether there is any code that relies on FASLOAD yielding
built-in objects, however; I suspect not.

17 years agoNew declarations (TYPE-CHECKS), (RANGE-CHECKS), (NO-TYPE-CHECKS),
Taylor R. Campbell [Sat, 14 Apr 2007 22:00:09 +0000 (22:00 +0000)]
New declarations (TYPE-CHECKS), (RANGE-CHECKS), (NO-TYPE-CHECKS),
(NO-RANGE-CHECKS) for local scopes.  I wrote a much longer
description, but it was eaten by CVS, which left no trace of it, and
I am now disinclined to rewrite it.

17 years agoClean up the C stamp file.
Taylor R. Campbell [Sat, 14 Apr 2007 20:33:55 +0000 (20:33 +0000)]
Clean up the C stamp file.

17 years agoSuppress "loading" and "dumping" messages for compiler.
Chris Hanson [Sat, 14 Apr 2007 14:23:12 +0000 (14:23 +0000)]
Suppress "loading" and "dumping" messages for compiler.

17 years agoTweak whitespace.
Chris Hanson [Sat, 14 Apr 2007 14:02:40 +0000 (14:02 +0000)]
Tweak whitespace.

17 years agoSuppress "loading" and "dumping" messages for compiler.
Chris Hanson [Sat, 14 Apr 2007 05:58:59 +0000 (05:58 +0000)]
Suppress "loading" and "dumping" messages for compiler.

17 years agoSuppress "loading" and "dumping" messages for compiler.
Chris Hanson [Sat, 14 Apr 2007 05:53:17 +0000 (05:53 +0000)]
Suppress "loading" and "dumping" messages for compiler.

17 years agoFix previous tweak to work when HEAP_IN_LOW_MEMORY defined.
Chris Hanson [Sat, 14 Apr 2007 05:39:51 +0000 (05:39 +0000)]
Fix previous tweak to work when HEAP_IN_LOW_MEMORY defined.

17 years agoDon't delete compiler-unx.c for c-clean rule.
Chris Hanson [Sat, 14 Apr 2007 03:55:26 +0000 (03:55 +0000)]
Don't delete compiler-unx.c for c-clean rule.

17 years agoRestructure bundling so that each subsystem has its own bundle. Add
Chris Hanson [Sat, 14 Apr 2007 03:55:06 +0000 (03:55 +0000)]
Restructure bundling so that each subsystem has its own bundle.  Add
necessary shared-library declarations in a few places.

17 years agoFix old typo.
Chris Hanson [Sat, 14 Apr 2007 03:53:32 +0000 (03:53 +0000)]
Fix old typo.

17 years agoRedesign interface to built-in object files, so that (1) they include
Chris Hanson [Sat, 14 Apr 2007 03:53:04 +0000 (03:53 +0000)]
Redesign interface to built-in object files, so that (1) they include
the pathname type of the file, and (2) the mapping from pathnames to
handles is specified in fewer places.

17 years agoAdd error check for case where FASL file and microcode have different
Chris Hanson [Sat, 14 Apr 2007 03:45:38 +0000 (03:45 +0000)]
Add error check for case where FASL file and microcode have different
settings for HEAP_IN_LOW_MEMORY.

17 years agoFix typo.
Chris Hanson [Wed, 11 Apr 2007 19:33:28 +0000 (19:33 +0000)]
Fix typo.

17 years agoUse standard formatting for usual-integrations warning.
Chris Hanson [Wed, 11 Apr 2007 19:32:05 +0000 (19:32 +0000)]
Use standard formatting for usual-integrations warning.

17 years agoInitial compiler should have cref support.
Chris Hanson [Mon, 9 Apr 2007 16:44:06 +0000 (16:44 +0000)]
Initial compiler should have cref support.

17 years agoGenerate "cref.so" for boot bundles.
Chris Hanson [Mon, 9 Apr 2007 16:43:24 +0000 (16:43 +0000)]
Generate "cref.so" for boot bundles.

17 years agoClean up "microcode/compinit.c".
Chris Hanson [Mon, 9 Apr 2007 16:43:05 +0000 (16:43 +0000)]
Clean up "microcode/compinit.c".

17 years agoFix thinkos: "make" files are sometimes compiled.
Chris Hanson [Mon, 9 Apr 2007 16:42:20 +0000 (16:42 +0000)]
Fix thinkos: "make" files are sometimes compiled.

17 years agoReorder LOAD types for consistency with FASLOAD.
Chris Hanson [Mon, 9 Apr 2007 16:41:56 +0000 (16:41 +0000)]
Reorder LOAD types for consistency with FASLOAD.

17 years agoFix typo in previous change.
Chris Hanson [Sat, 7 Apr 2007 19:53:49 +0000 (19:53 +0000)]
Fix typo in previous change.

17 years agoAdd missing #include "osfs.h".
Chris Hanson [Sat, 7 Apr 2007 12:43:29 +0000 (12:43 +0000)]
Add missing #include "osfs.h".

17 years agoBack out previous change; it's the right behavior but too disruptive
Chris Hanson [Sat, 7 Apr 2007 04:05:07 +0000 (04:05 +0000)]
Back out previous change; it's the right behavior but too disruptive
right now.

17 years agoChanges to support microcode's pre-v15 branch.
Chris Hanson [Sat, 7 Apr 2007 04:03:56 +0000 (04:03 +0000)]
Changes to support microcode's pre-v15 branch.

17 years agoFix syntax error (quoting problem). Rewrite hereis documents to be
Chris Hanson [Sat, 7 Apr 2007 04:03:37 +0000 (04:03 +0000)]
Fix syntax error (quoting problem).  Rewrite hereis documents to be
single Scheme expressions so that an error prevents any subsequent
expressions from being evaluated.

17 years agoDelete "compiler-unx.*".
Chris Hanson [Sat, 7 Apr 2007 04:02:22 +0000 (04:02 +0000)]
Delete "compiler-unx.*".

17 years agoAll clean rules must delete "boot-compiler.com".
Chris Hanson [Sat, 7 Apr 2007 04:02:04 +0000 (04:02 +0000)]
All clean rules must delete "boot-compiler.com".

17 years agoUse BUFFER-REMOVE!, rather than (BUFFER-PUT! ... #F).
Taylor R. Campbell [Thu, 5 Apr 2007 22:42:35 +0000 (22:42 +0000)]
Use BUFFER-REMOVE!, rather than (BUFFER-PUT! ... #F).

17 years agoTweak EDWIN-SET-STRING-MAXIMUM-LENGTH!, too.
Taylor R. Campbell [Thu, 5 Apr 2007 22:36:14 +0000 (22:36 +0000)]
Tweak EDWIN-SET-STRING-MAXIMUM-LENGTH!, too.

17 years agoTweak EDWIN-STRING-ALLOCATE so that it doesn't rely on range-checking
Taylor R. Campbell [Thu, 5 Apr 2007 22:24:42 +0000 (22:24 +0000)]
Tweak EDWIN-STRING-ALLOCATE so that it doesn't rely on range-checking
being disabled when NUL-terminating the string.

17 years agoDon't show compilation of individual procedures.
Chris Hanson [Thu, 5 Apr 2007 19:52:08 +0000 (19:52 +0000)]
Don't show compilation of individual procedures.

17 years agoEliminate runtime-check directory and 6.001 band.
Chris Hanson [Thu, 5 Apr 2007 17:49:54 +0000 (17:49 +0000)]
Eliminate runtime-check directory and 6.001 band.

17 years agoWhen loading a file, change the working directory to that of the file,
Chris Hanson [Thu, 5 Apr 2007 17:49:19 +0000 (17:49 +0000)]
When loading a file, change the working directory to that of the file,
so that relative pathnames work right.

17 years agoDon't build 6.001 band.
Chris Hanson [Thu, 5 Apr 2007 17:43:24 +0000 (17:43 +0000)]
Don't build 6.001 band.

17 years agoEliminate separate runtime-check.
Chris Hanson [Thu, 5 Apr 2007 17:42:19 +0000 (17:42 +0000)]
Eliminate separate runtime-check.

17 years agoTweak defaults to enable type and range checking by default.
Chris Hanson [Thu, 5 Apr 2007 17:36:19 +0000 (17:36 +0000)]
Tweak defaults to enable type and range checking by default.

17 years agoFix three problems in completion of IMAP mailbox names and listing of
Taylor R. Campbell [Thu, 5 Apr 2007 03:23:22 +0000 (03:23 +0000)]
Fix three problems in completion of IMAP mailbox names and listing of
the contents of IMAP containers:

1. Some IMAP servers refuse a pattern of `/%' for the LIST command, or
   yield an empty list of results, so send `%' if we're examining the
   root mailbox.

2. Some IMAP servers return the container itself that we're trying to
   list the contents of, so filter that out if we see it.

3. Some IMAP servers hand out folder URLs and container URLs, so
   canonicalize them appropriately in order that RUN-LIST-COMMAND may
   return only folder URLs.

17 years agoAssociate names with generic procedures generated by DEFINE {ACCESSOR,
Taylor R. Campbell [Thu, 5 Apr 2007 02:35:14 +0000 (02:35 +0000)]
Associate names with generic procedures generated by DEFINE {ACCESSOR,
MODIFIER, INITPRED} clauses for slots in DEFINE-CLASS.

17 years agoRemember when MIME entities are collapsed or expanded, in a hash table
Taylor R. Campbell [Thu, 5 Apr 2007 01:56:09 +0000 (01:56 +0000)]
Remember when MIME entities are collapsed or expanded, in a hash table
per IMAIL folder buffer.  (This information will still be forgotten
when the buffer is killed and the folder reopened, but that probably
doesn't matter.)

17 years agoUse `pwd`, rather than $(pwd), which standard sh does not support.
Taylor R. Campbell [Thu, 5 Apr 2007 00:25:30 +0000 (00:25 +0000)]
Use `pwd`, rather than $(pwd), which standard sh does not support.

17 years agoUse WITH-NOTIFICATION to notify of initialization and finalization of
Taylor R. Campbell [Wed, 4 Apr 2007 18:35:16 +0000 (18:35 +0000)]
Use WITH-NOTIFICATION to notify of initialization and finalization of
packages, rather than formatting the message to the notification
output port directly.

17 years agoFix formerly untested make-c-files script for making distribution tarballs.
Taylor R. Campbell [Wed, 4 Apr 2007 06:43:48 +0000 (06:43 +0000)]
Fix formerly untested make-c-files script for making distribution tarballs.