Chris Hanson [Fri, 8 Jun 2007 05:58:53 +0000 (05:58 +0000)]
Don't use WITH-LOADER-BASE-URI here -- it doesn't work correctly. For
the moment, I'm reverting the change, until I figure out the right
fix.
Chris Hanson [Thu, 7 Jun 2007 15:12:17 +0000 (15:12 +0000)]
Export ADD-PRIMITIVE-GC-DAEMON! to global.
Chris Hanson [Thu, 7 Jun 2007 15:11:24 +0000 (15:11 +0000)]
Eliminate trailing whitespace.
Chris Hanson [Wed, 6 Jun 2007 20:03:25 +0000 (20:03 +0000)]
Use WITH-LOADER-BASE-URI in all the subsystem loaders.
Chris Hanson [Wed, 6 Jun 2007 19:42:43 +0000 (19:42 +0000)]
Reorganize the Scheme loader to simplify it so that I can understand
what it's doing. In the process, the LOAD-NOISILY and LOAD-NEWEST
_features_ have been eliminated, although the procedures remain as
aliases for LOAD.
New procedures FILE-LOADABLE? and FILE-FASLOADABLE? test whether a
particular file is one that LOAD or FASLOAD (respectively) knows how
to handle. New procedures SYSTEM-URI, SYSTEM-LIBRARY-URI, and
WITH-LOADER-BASE-URI provide a standard mechanism to refer to files in
the system library directory.
Eliminate DECLARE-SHARED-LIBRARY; register every .so file that's
loaded, and reload it on disk-restore.
Change the dynamic-loader interface to support unloading object files.
Make sure that all loaded object files are unloaded on DISK-RESTORE.
Implement low-level interface to the dynamic loader in
"runtime/io.scm" and use that in "runtime/load.scm". Implement new
primitive LIARC-COMPILED-BLOCKS, to simplify examination of the
compiled_blocks table.
Change registration of .so files to use URIs rather than ad-hoc
abbreviations. Standard URIs refer to parts of the system, and are
independent of the file-system details; file URIs refer to .so files
stored in particular locations.
Add an 8-byte random nonce to each .c file generated by liarc, so that
the loader can tell if it's the same file as a previously loaded one.
Write new program gen-nonce for use by c-bundle.sh.
Move makefile creation from Setup.sh to configure, so that it can
depend on the architecture.
Rewrite parts of "Makefile.in" and "etc/compile.scm" to support
compiling a native-code system using liarc. Change
"etc/utilities.scm" to support liarc when it is installed as well as
when it is being built.
Write new program extract-liarc-decls for c-bundle.sh to use, in place
of of grep. This program rewrites each declaration to specialize it
for bundling.
Chris Hanson [Wed, 6 Jun 2007 19:41:55 +0000 (19:41 +0000)]
Make sure that all open directory handles are closed on DISK-RESTORE.
Chris Hanson [Wed, 6 Jun 2007 19:39:07 +0000 (19:39 +0000)]
Rewrite PATHNAME-SIMPLIFY so that it better handles the case where
part of the pathname refers to non-existing file structure.
Chris Hanson [Wed, 6 Jun 2007 19:29:35 +0000 (19:29 +0000)]
Change error_with_argument() to signal ERR_IN_SYSTEM_CALL when
appropriate.
Chris Hanson [Wed, 6 Jun 2007 19:14:55 +0000 (19:14 +0000)]
Make sure that the values of *COMPILER-INPUT-PATHNAME* and
*COMPILER-OUTPUT-PATHNAME* are absolute pathnames.
Chris Hanson [Wed, 6 Jun 2007 02:53:48 +0000 (02:53 +0000)]
Don't signal error if new working directory doesn't exist. This can
sometimes be OK.
Chris Hanson [Sun, 3 Jun 2007 03:49:50 +0000 (03:49 +0000)]
Signal error if THERE-EXISTS? or FOR-ALL? is given a non-list
argument.
Chris Hanson [Wed, 23 May 2007 17:18:01 +0000 (17:18 +0000)]
Initial revision.
Chris Hanson [Mon, 21 May 2007 17:33:32 +0000 (17:33 +0000)]
Add optional REQUIRED? arguments to SYSTEM-LIBRARY-PATHNAME and
SYSTEM-LIBRARY-DIRECTORY-PATHNAME. When new arg not supplied, each
behaves as it used to.
Chris Hanson [Sun, 20 May 2007 02:02:34 +0000 (02:02 +0000)]
While loading a shared object file, remember the file name so that it
can be used by liarc declarations.
Chris Hanson [Sun, 20 May 2007 01:55:52 +0000 (01:55 +0000)]
Make sure that notifications for built-in object files are
"initialized" rather than "loaded".
Chris Hanson [Sun, 20 May 2007 01:52:37 +0000 (01:52 +0000)]
Don't bother calling BUILT-IN-OBJECT-FILE; it's already being done by
FASLOAD.
Chris Hanson [Sun, 20 May 2007 01:51:27 +0000 (01:51 +0000)]
Change notification messages for liarc-cc and liarc-ld to reduce
clutter.
Taylor R. Campbell [Wed, 16 May 2007 19:24:08 +0000 (19:24 +0000)]
Add SRFI-62 to the list of features, and add an identifying comment to
each SRFI feature.
Chris Hanson [Tue, 15 May 2007 05:23:22 +0000 (05:23 +0000)]
Fix bug: edwin bundle was missing "make".
Chris Hanson [Tue, 15 May 2007 05:15:50 +0000 (05:15 +0000)]
Make sure liarc-cc and liarc-ld get installed.
Chris Hanson [Tue, 15 May 2007 05:02:14 +0000 (05:02 +0000)]
Fix bug: "make install" wasn't installing liarc bundles.
Chris Hanson [Tue, 15 May 2007 01:49:46 +0000 (01:49 +0000)]
Eliminate misguided whitespace formatting.
Chris Hanson [Tue, 15 May 2007 01:46:23 +0000 (01:46 +0000)]
Fix mis-quoted variable references in install rules.
Chris Hanson [Tue, 15 May 2007 01:27:22 +0000 (01:27 +0000)]
<number> should be subclass of <object>, not <instance>. Thanks
Taylor.
Chris Hanson [Mon, 14 May 2007 16:59:48 +0000 (16:59 +0000)]
Move building of LIARC bundles into their respective directories.
Create bundle file lists from .pkg files rather than from directory
listings.
Change "make c" to "make liarc-dist". Restructure top-level makefile
to generate "liarc-dist" in distinct stages: (1) build a compiler in
the directory "boot-lib"; (2) run c-clean to discard all .c files; and
(3) rebuild everything using boot-lib compiler.
Delete "Makefile.std"; generate all subdirectory makefiles (except
microcode) using "Makefile-fragment" and standard prefix/suffix.
Rename COMPILE_FOR_DYNAMIC_LOADING to ENABLE_LIARC_FILE_INIT. Don't
build 6001 or xdoc subdirs. Use -fPIC only for shared objects, not
for scheme executable. Make sure -fPIC is given to linker as well as
compiler.
Chris Hanson [Mon, 14 May 2007 16:51:00 +0000 (16:51 +0000)]
Move building of LIARC bundles into their respective directories.
Create bundle file lists from .pkg files rather than from directory
listings.
Change "make c" to "make liarc-dist". Restructure top-level makefile
to generate "liarc-dist" in distinct stages: (1) build a compiler in
the directory "boot-lib"; (2) run c-clean to discard all .c files; and
(3) rebuild everything using boot-lib compiler.
Delete "Makefile.std"; generate all subdirectory makefiles (except
microcode) using "Makefile-fragment" and standard prefix/suffix.
Rename COMPILE_FOR_DYNAMIC_LOADING to ENABLE_LIARC_FILE_INIT. Don't
build 6001 or xdoc subdirs. Use -fPIC only for shared objects, not
for scheme executable. Make sure -fPIC is given to linker as well as
compiler.
Chris Hanson [Mon, 14 May 2007 16:49:16 +0000 (16:49 +0000)]
Simplify naming; guarantee that nonces are present in all exported
symbols.
Chris Hanson [Sun, 13 May 2007 12:22:47 +0000 (12:22 +0000)]
Fix bug: "Makefile.in" is cleaned by maintainer-clean, not by
distclean.
Chris Hanson [Thu, 10 May 2007 16:44:11 +0000 (16:44 +0000)]
Fix copyright statement.
Chris Hanson [Thu, 10 May 2007 03:45:45 +0000 (03:45 +0000)]
Forgot to update "triv.pkg" to match change to "cref.pkg".
Chris Hanson [Thu, 10 May 2007 03:45:22 +0000 (03:45 +0000)]
A couple of tweaks so that CREF/PACKAGE-FILES doesn't generate errors.
Chris Hanson [Wed, 9 May 2007 20:01:37 +0000 (20:01 +0000)]
Generate most of the Makefile.in files from fragments and boilerplate.
Replace "top_builddir = ." with "top_builddir = @top_builddir@" in all
configured makefiles, since autoconf now provides a reasonable default
for these.
Chris Hanson [Wed, 9 May 2007 19:12:04 +0000 (19:12 +0000)]
Fix typo: missing "-c".
Chris Hanson [Wed, 9 May 2007 02:06:22 +0000 (02:06 +0000)]
Restructure liarc to use shell scripts to compile and link its C
output files. These scripts are customized by the microcode's
configure script to have the right invocations. Removing this
knowledge from the compiler eliminates redundancy.
Chris Hanson [Wed, 9 May 2007 01:56:48 +0000 (01:56 +0000)]
Forgot to change calls to FORMAT-PACKAGES and FORMAT-PACKAGES-UNUSUAL.
Chris Hanson [Wed, 9 May 2007 01:55:47 +0000 (01:55 +0000)]
Implement CREF/PACKAGE-FILES to extract a list of filenames from a
.pkg file. Update some of the code, particularly in "forpkg.scm".
Chris Hanson [Tue, 8 May 2007 12:54:52 +0000 (12:54 +0000)]
Restructure top-level makefile to have different targets for C and
native compilation.
Chris Hanson [Mon, 7 May 2007 05:32:24 +0000 (05:32 +0000)]
Fix bug: CODE-POINTS->ALPHABET wasn't storing high-valued code points
correctly. This had no effect on correctness, but had a space and
time cost.
Chris Hanson [Sun, 6 May 2007 14:17:14 +0000 (14:17 +0000)]
Restructure the build scripts to allow building a native system from a
liarc system. More work needs to be done, but these changes don't
break the other builds.
Chris Hanson [Sun, 6 May 2007 04:45:18 +0000 (04:45 +0000)]
Create "lib/include" to allow liarc compilation outside of the
microcode directory.
Chris Hanson [Sun, 6 May 2007 04:43:06 +0000 (04:43 +0000)]
Add "install-include" rule to create the "lib/include" directory for
liarc.
Chris Hanson [Sun, 6 May 2007 00:01:01 +0000 (00:01 +0000)]
Fix typo.
Chris Hanson [Fri, 4 May 2007 19:35:37 +0000 (19:35 +0000)]
Fix FSF address.
Chris Hanson [Fri, 4 May 2007 18:51:56 +0000 (18:51 +0000)]
Eliminate support for microcode v14.
Chris Hanson [Fri, 4 May 2007 01:27:30 +0000 (01:27 +0000)]
Fix typo: we no longer have "etc/c-build-bands.sh".
Chris Hanson [Fri, 4 May 2007 01:26:59 +0000 (01:26 +0000)]
Fix several bugs in the "etc/compile.scm" rewrite.
Chris Hanson [Fri, 4 May 2007 01:26:10 +0000 (01:26 +0000)]
Fix typo: missing value for --fasl option.
Chris Hanson [Fri, 4 May 2007 01:24:31 +0000 (01:24 +0000)]
Make sure "compiler/machine" link is made properly.
Chris Hanson [Thu, 3 May 2007 18:53:22 +0000 (18:53 +0000)]
C-PREPARE must compile "microcode/utabmd".
Chris Hanson [Thu, 3 May 2007 12:49:12 +0000 (12:49 +0000)]
Conditionally compile .pkd files. Fix typos.
Chris Hanson [Thu, 3 May 2007 12:48:41 +0000 (12:48 +0000)]
Link "make.com" even for liarc.
Chris Hanson [Thu, 3 May 2007 12:48:07 +0000 (12:48 +0000)]
Tweak echo line to be more specific.
Chris Hanson [Thu, 3 May 2007 03:49:59 +0000 (03:49 +0000)]
"etc/c-bundle.sh" is now executable, so we can call it directly rather
than invoking it via the shell.
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.
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.
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.
Chris Hanson [Wed, 2 May 2007 13:51:56 +0000 (13:51 +0000)]
Set up "scheme" and "bchscheme" symlinks properly when installing.
Chris Hanson [Wed, 2 May 2007 13:51:03 +0000 (13:51 +0000)]
Fix "(load-option 'compiler)" to work right with liarc.
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.
Chris Hanson [Wed, 2 May 2007 13:49:02 +0000 (13:49 +0000)]
Eliminate unnecessary "(load-option 'sf)".
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.
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.
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/".
Chris Hanson [Wed, 2 May 2007 00:07:51 +0000 (00:07 +0000)]
Simplify char_pointer_to_string.
Chris Hanson [Tue, 1 May 2007 19:52:32 +0000 (19:52 +0000)]
Add identification item for compiled-code architecture.
Chris Hanson [Tue, 1 May 2007 14:12:52 +0000 (14:12 +0000)]
Eliminate output optimization for binary; it was breaking column
tracking.
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.
Chris Hanson [Tue, 1 May 2007 04:55:22 +0000 (04:55 +0000)]
Eliminate "lib/shared"; move contents to "lib/lib".
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.
Chris Hanson [Mon, 30 Apr 2007 01:49:30 +0000 (01:49 +0000)]
Increase heap size to eliminate weird compilation error.
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.
Chris Hanson [Mon, 30 Apr 2007 01:36:14 +0000 (01:36 +0000)]
Pass --disable-native-code when setting up.
Chris Hanson [Mon, 30 Apr 2007 01:35:41 +0000 (01:35 +0000)]
Eliminate use of $(^:.o=.c) which is a GNU make extension.
Chris Hanson [Sun, 29 Apr 2007 20:46:43 +0000 (20:46 +0000)]
Bump heap size so that compilation finishes.
Chris Hanson [Sun, 29 Apr 2007 20:20:27 +0000 (20:20 +0000)]
"base/scode" no longer produces a .ext file.
Chris Hanson [Sun, 29 Apr 2007 20:17:43 +0000 (20:17 +0000)]
Fix typo in previous change.
Chris Hanson [Sun, 29 Apr 2007 20:16:05 +0000 (20:16 +0000)]
Eliminate useless compiler warnings.
Chris Hanson [Sun, 29 Apr 2007 19:48:08 +0000 (19:48 +0000)]
Fix typo: reverse sense of flag passed to FASLOAD.
Chris Hanson [Sun, 29 Apr 2007 19:26:51 +0000 (19:26 +0000)]
Eliminate runtime support for pure space, which no longer exists.
Chris Hanson [Sun, 29 Apr 2007 19:23:33 +0000 (19:23 +0000)]
Eliminate now-unused error code.
Chris Hanson [Sun, 29 Apr 2007 18:39:08 +0000 (18:39 +0000)]
Clean up output; use WITH-NOTIFICATION-LINE to normalize it.
Chris Hanson [Sun, 29 Apr 2007 18:38:26 +0000 (18:38 +0000)]
More tweaks to make liarc.stamp work right.
Chris Hanson [Sun, 29 Apr 2007 18:26:20 +0000 (18:26 +0000)]
Fix typos in previous change.
Chris Hanson [Sun, 29 Apr 2007 18:24:35 +0000 (18:24 +0000)]
Suppress loading/dumping messages for most files.
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".
Chris Hanson [Sun, 29 Apr 2007 17:56:15 +0000 (17:56 +0000)]
Eliminate unused ${FULL}.
Chris Hanson [Sun, 29 Apr 2007 15:44:00 +0000 (15:44 +0000)]
Allow two-part version numbers.
Chris Hanson [Sat, 28 Apr 2007 01:58:14 +0000 (01:58 +0000)]
Signal error if liarc used without dynamic library support.
Chris Hanson [Wed, 25 Apr 2007 14:06:14 +0000 (14:06 +0000)]
Eliminate distinction between pure and constant.
Chris Hanson [Tue, 24 Apr 2007 14:46:00 +0000 (14:46 +0000)]
Fix examples in DEFINE-CLASS definition.
Chris Hanson [Tue, 24 Apr 2007 05:32:01 +0000 (05:32 +0000)]
Changes to get v15 working in win32.
Chris Hanson [Sun, 22 Apr 2007 18:04:52 +0000 (18:04 +0000)]
Bump version number.
Chris Hanson [Sun, 22 Apr 2007 16:41:01 +0000 (16:41 +0000)]
When installing, create symlink from bchscheme to scheme.
Chris Hanson [Sun, 22 Apr 2007 16:40:08 +0000 (16:40 +0000)]
Must conditionalize references to memory_base.
Chris Hanson [Sun, 22 Apr 2007 16:31:24 +0000 (16:31 +0000)]
Final merge from pre-v15 branch.
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.
Chris Hanson [Tue, 17 Apr 2007 06:02:14 +0000 (06:02 +0000)]
Tell unstackify how large the bytes block is.
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.
Chris Hanson [Sun, 15 Apr 2007 19:21:17 +0000 (19:21 +0000)]
Adapt to another change in built-in object handle naming.
Chris Hanson [Sun, 15 Apr 2007 18:02:15 +0000 (18:02 +0000)]
Forgot to export C-OUTPUT-EXTENSION.