/* Some systems don't declare their libraries correctly, making CONST
impossible to have. */
+#ifdef CONST
+#undef CONST
+#endif
+
#ifdef NO_CONST
#define CONST
#else
/* -*-C-*-
-$Id: bchdmp.c,v 9.69 1993/02/18 05:14:43 gjr Exp $
+$Id: bchdmp.c,v 9.70 1993/06/24 03:47:00 gjr Exp $
Copyright (c) 1987-1993 Massachusetts Institute of Technology
# define FASDUMP_FILENAME "\\tmp\\fasdump.bin"
-#else /* not DOS386 */
+#endif /* DOS386 */
+
+#ifdef WINNT
+# include "nt.h"
+# include "ntio.h"
+
+char *
+DEFUN (mktemp, (fname), unsigned char * fname)
+{
+ /* Should call tmpname */
+
+ return;
+}
+
+# define FASDUMP_FILENAME "\\tmp\\fasdump.bin"
+
+#endif /* WINNT */
+
+#ifndef FASDUMP_FILENAME
+
+/* Assume Unix */
# include "ux.h"
# include "uxio.h"
# define FASDUMP_FILENAME "/tmp/fasdumpXXXXXX"
-#endif /* DOS386 */
-
+#endif /* FASDUMP_FILENAME */
+\f
#include "bchgcc.h"
static Tchannel dump_channel;
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/bchgcc.h,v 9.51 1992/07/23 12:33:30 jinx Exp $
+$Id: bchgcc.h,v 9.52 1993/06/24 03:48:45 gjr Exp $
-Copyright (c) 1987-1992 Massachusetts Institute of Technology
+Copyright (c) 1987-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
# endif
#endif
-#ifndef DOS386
-# include <sys/param.h>
-#else
+#ifdef DOS386
+# define IO_PAGE_SIZE 4096
+#endif
+#ifdef WINNT
# define IO_PAGE_SIZE 4096
#endif
+#ifndef IO_PAGE_SIZE
+# include <sys/param.h>
+#endif
\f
#ifndef BCH_START_CLOSURE_RELOCATION
# define BCH_START_CLOSURE_RELOCATION(scan) do { } while (0)
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/bchmmg.c,v 9.75 1992/06/03 21:55:24 jinx Exp $
+$Id: bchmmg.c,v 9.76 1993/06/24 03:49:40 gjr Exp $
-Copyright (c) 1987-1992 Massachusetts Institute of Technology
+Copyright (c) 1987-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#ifdef DOS386
# include "msdos.h"
# define SUB_DIRECTORY_DELIMITER '\\'
-extern char * EXFUN (mktemp, (char *));
-#else
+ extern char * EXFUN (mktemp, (char *));
+#endif
+
+#ifdef WINNT
+# include "nt.h"
+# define SUB_DIRECTORY_DELIMITER '\\'
+ extern char * EXFUN (mktemp, (char *));
+#endif
+
+#ifndef SUB_DIRECTORY_DELIMITER
# include "ux.h"
# define SUB_DIRECTORY_DELIMITER '/'
# define UNLINK_BEFORE_CLOSE
-extern int EXFUN (unlink, (CONST char *));
+ extern int EXFUN (unlink, (CONST char *));
#endif
#include "bchgcc.h"
/*NOTREACHED*/
case 'S':
+#ifdef WINNT
+ Sleep (1000);
+#else
sleep (60);
+#endif
/* fall through */
case 'R':
if ((position >= gc_file_start_position)
&& ((position + size) <= gc_file_end_position))
return (0);
- fprintf (stderr,
+ outf_error (
"\n%s (verify_write): attempting to write outside allowed area.\n",
scheme_program_name);
- fprintf (stderr, "\tlow position = 0x%lx; high position = 0x%lx.\n",
- gc_file_start_position, gc_file_end_position);
- fprintf (stderr, "\twrite position = 0x%lx; size = 0x%lx = %d bytes.\n",
- position, size, size);
- fflush (stderr);
+ outf_error("\tlow position = 0x%lx; high position = 0x%lx.\n",
+ gc_file_start_position, gc_file_end_position);
+ outf_error("\twrite position = 0x%lx; size = 0x%lx = %d bytes.\n",
+ position, size, size);
+ outf_flush_error();
if (success == ((Boolean *) NULL))
{
Microcode_Termination (TERM_EXIT);
}
else
{
+#ifdef WINNT
+ /* SRA: for NT, for the time being, we just assume that it will be a
+ normal file */
+ exists_p = true;
+ can_dump_directly_p = true;
+#else
/* If it is S_IFCHR, it should determine the IO block
size and make sure that it will work.
I don't know how to do that.
}
else
can_dump_directly_p = true;
+#endif
}
gc_file = (open (gc_file_name, flags, GC_FILE_MASK));
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/bchutl.c,v 1.2 1992/02/29 19:39:41 mhwu Exp $
+$Id: bchutl.c,v 1.3 1993/06/24 03:53:29 gjr Exp $
-Copyright (c) 1991 Massachusetts Institute of Technology
+Copyright (c) 1991-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#endif
#ifndef DOS386
+#ifndef WINNT
#include <unistd.h>
#endif
+#endif
#include "ansidecl.h"
int, char *, long, long, char *, char *, long *,
int (*)(char *, char *)));
\f
+#ifdef WINNT
+
+#define lseek _lseek
+
+char *
+DEFUN (error_name, (code), int code)
+{
+ static char buf[512];
+
+ sprintf (&buf[0], "%d, unknown error", code);
+ return (&buf[0]);
+}
+
+#else /* not WINNT */
+
char *
DEFUN (error_name, (code), int code)
{
return (&buf[0]);
}
+#endif /* WINNT */
+
#ifndef SEEK_SET
#define SEEK_SET 0
#endif
/* -*-C-*-
-$Id: bignum.c,v 9.39 1993/02/10 23:13:36 adams Exp $
+$Id: bignum.c,v 9.40 1993/06/24 03:55:00 gjr Exp $
-Copyright (c) 1989-1992 Massachusetts Institute of Technology
+Copyright (c) 1989-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#include "bignum.h"
#endif
-#ifdef WINNT
-#include "bignumin.h" /* SRA: renamed for 8 char name length*/
-#else
-#include "bignumint.h"
-#endif
-
+#include "bignmint.h"
#include "limits.h"
\f
#ifndef MIT_SCHEME
/* -*-C-*-
-$Id: boot.c,v 9.78 1993/06/09 20:28:14 jawilson Exp $
+$Id: boot.c,v 9.79 1993/06/24 03:55:53 gjr Exp $
Copyright (c) 1988-1993 Massachusetts Institute of Technology
#include <ctype.h>
#endif
#include "ostop.h"
+#include "ostty.h"
extern PTR EXFUN (malloc, (unsigned int size));
extern void EXFUN (free, (PTR ptr));
PTR result = (malloc (size));
if (result == 0)
{
- fprintf (stderr, "\n%s: unable to allocate obstack chunk of %d bytes\n",
+ outf_fatal ("\n%s: unable to allocate obstack chunk of %d bytes\n",
scheme_program_name, size);
- fflush (stderr);
Microcode_Termination (TERM_EXIT);
}
return (result);
static void
DEFUN (usage, (error_string), CONST char * error_string)
{
- fprintf (stderr, "%s: %s\n\n", scheme_program_name, error_string);
- fflush (stderr);
+ outf_fatal ("%s: %s\n\n", scheme_program_name, error_string);
termination_init_error ();
}
\f
#define main_type void
#endif
-#define FILE_READABLE(filename) ((access ((filename), 4)) >= 0)
+#ifndef main_name
+#define main_name main
+#endif
main_type
-DEFUN (main, (argc, argv),
+DEFUN (main_name, (argc, argv),
int argc AND CONST char ** argv)
{
init_exit_scheme ();
reload_saved_string = 0;
reload_saved_string_length = 0;
read_command_line_options (argc, argv);
+
if (scheme_dumped_p)
{
extern SCHEME_OBJECT compiler_utilities;
&& (Stack_Size == option_stack_size)
&& (Constant_Size == option_constant_size)))
{
- fprintf (stderr, "%s: warning: ignoring allocation parameters.\n",
- scheme_program_name);
- fflush (stderr);
+ outf_error ("%s: warning: ignoring allocation parameters.\n",
+ scheme_program_name);
+ outf_flush_error ();
}
OS_reset ();
compiler_reset (compiler_utilities);
if (!option_band_specified)
{
- printf ("Scheme Microcode Version %d.%d\n", VERSION, SUBVERSION);
+ outf_console ("Scheme Microcode Version %d.%d\n",
+ VERSION, SUBVERSION);
OS_initialize ();
Enter_Interpreter ();
}
}
#endif /* DOS386 */
+#ifdef WINNT
+ {
+ extern void EXFUN (NT_initialize_fov, (SCHEME_OBJECT));
+
+ NT_initialize_fov (fixed_objects_vector);
+ }
+#endif
+
return (fixed_objects_vector);
}
\f
int Start_Prim AND CONST char * File_Name)
{
SCHEME_OBJECT FName, expr, * inner_arg, prim;
- fast long i;
+ /* fast long i; */
/* Parallel processor test */
Boolean I_Am_Master = (Start_Prim != BOOT_GET_WORK);
if (I_Am_Master)
{
- fprintf (stdout, "Scheme Microcode Version %d.%d\n",
- VERSION, SUBVERSION);
- fflush (stdout);
+ outf_console ("Scheme Microcode Version %d.%d\n", VERSION, SUBVERSION);
+ outf_flush_console ();
}
OS_initialize ();
if (I_Am_Master)
*Free++ = prim;
*Free++ = FName;
prim = (make_primitive ("SCODE-EVAL"));
- expr = (MAKE_POINTER_OBJECT (TC_PCOMB2, Free));
+ expr = MAKE_POINTER_OBJECT (TC_PCOMB2, Free);
*Free++ = prim;
- *Free++ = (MAKE_POINTER_OBJECT (TC_PCOMB1, inner_arg));
- *Free++ = (MAKE_OBJECT (GLOBAL_ENV, GO_TO_GLOBAL));
+ *Free++ = MAKE_POINTER_OBJECT (TC_PCOMB1, inner_arg);
+ *Free++ = MAKE_OBJECT (GLOBAL_ENV, GO_TO_GLOBAL);
break;
case BOOT_LOAD_BAND: /* (LOAD-BAND <file>) */
FName = (char_pointer_to_string ((unsigned char *) File_Name));
- prim = (make_primitive ("LOAD-BAND"));
+ prim = make_primitive ("LOAD-BAND");
inner_arg = Free;
*Free++ = prim;
*Free++ = FName;
- expr = (MAKE_POINTER_OBJECT (TC_PCOMB1, inner_arg));
+ expr = MAKE_POINTER_OBJECT (TC_PCOMB1, inner_arg);
break;
case BOOT_GET_WORK: /* ((GET-WORK)) */
- prim = (make_primitive ("GET-WORK"));
+ prim = make_primitive ("GET-WORK");
inner_arg = Free;
*Free++ = prim;
*Free++ = SHARP_F;
- expr = (MAKE_POINTER_OBJECT (TC_COMBINATION, Free));
- *Free++ = (MAKE_OBJECT (TC_MANIFEST_VECTOR, 1));
- *Free++ = (MAKE_POINTER_OBJECT (TC_PCOMB1, inner_arg));
+ expr = MAKE_POINTER_OBJECT (TC_COMBINATION, Free);
+ *Free++ = MAKE_OBJECT (TC_MANIFEST_VECTOR, 1);
+ *Free++ = MAKE_POINTER_OBJECT (TC_PCOMB1, inner_arg);
break;
case BOOT_EXECUTE:
default:
- fprintf (stderr, "Unknown boot time option: %d\n", Start_Prim);
+ outf_fatal ("Unknown boot time option: %d\n", Start_Prim);
Microcode_Termination (TERM_BAD_PRIMITIVE);
/*NOTREACHED*/
}
/* Go to it! */
if ((Stack_Pointer <= Stack_Guard) || (Free > MemTop))
{
- fprintf (stderr, "Configuration won't hold initial data.\n");
+ outf_fatal ("Configuration won't hold initial data.\n");
termination_init_error ();
}
#ifdef ENTRY_HOOK
DEFUN_VOID (Enter_Interpreter)
{
Interpret (scheme_dumped_p);
- fprintf (stderr, "\nThe interpreter returned to top level!\n");
+ outf_fatal ("\nThe interpreter returned to top level!\n");
Microcode_Termination (TERM_EXIT);
}
DEFUN_VOID (Re_Enter_Interpreter)
{
Interpret (true);
- return (Val);
+ return Val;
}
\f
/* Garbage collection debugging utilities. */
long code AND char * message
AND SCHEME_OBJECT * scan AND SCHEME_OBJECT * free)
{
- fprintf (stderr, "\n%s.\n", message);
- fprintf (stderr, "scan = 0x%lx; free = 0x%lx\n", scan, free);
+ outf_fatal ("\n%s.\n", message);
+ outf_fatal ("scan = 0x%lx; free = 0x%lx\n", scan, free);
deadly_scan = scan;
deadly_free = free;
Microcode_Termination (code);
void
DEFUN (stack_death, (name), CONST char * name)
{
- fprintf (stderr,
- "\n%s: Constant space is no longer sealed!\n",
- name);
- fprintf (stderr,
- "Perhaps a runaway recursion has overflowed the stack.\n");
+ outf_fatal ("\n%s: Constant space is no longer sealed!\n",
+ name);
+ outf_fatal ("Perhaps a runaway recursion has overflowed the stack.\n");
Microcode_Termination (TERM_STACK_OVERFLOW);
/*NOTREACHED*/
}
/* -*-C-*-
-$Id: cmpgc.h,v 1.23 1993/03/23 22:34:54 cph Exp $
+$Id: cmpgc.h,v 1.24 1993/06/24 03:58:48 gjr Exp $
-Copyright (c) 1989-1992 Massachusetts Institute of Technology
+Copyright (c) 1989-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#ifdef HAS_COMPILER_SUPPORT
-#include "cmpint2.h"
+#include "cmpintmd.h"
\f
/*
The following is a kludge which is used to get return_to_interpreter
/* -*- C -*-
-$Id: alpha.h,v 1.4 1992/11/18 05:03:55 gjr Exp $
+$Id: alpha.h,v 1.5 1993/06/24 04:02:18 gjr Exp $
-Copyright (c) 1992 Digital Equipment Corporation (D.E.C.)
+Copyright (c) 1992-1993 Digital Equipment Corporation (D.E.C.)
This software was developed at the Digital Equipment Corporation
Cambridge Research Laboratory. Permission to copy this software, to
*
* Specialized for the Alpha
*/
-\f
-#ifndef CMPINT2_H_INCLUDED
-#define CMPINT2_H_INCLUDED
-
-#define COMPILER_NONE_TYPE 0
-#define COMPILER_MC68020_TYPE 1
-#define COMPILER_VAX_TYPE 2
-#define COMPILER_SPECTRUM_TYPE 3
-#define COMPILER_OLD_MIPS_TYPE 4
-#define COMPILER_MC68040_TYPE 5
-#define COMPILER_SPARC_TYPE 6
-#define COMPILER_RS6000_TYPE 7
-#define COMPILER_MC88K_TYPE 8
-#define COMPILER_I386_TYPE 9
-#define COMPILER_ALPHA_TYPE 10
-#define COMPILER_MIPS_TYPE 11
-#define COMPILER_LOSING_C_TYPE 12
+
+#ifndef CMPINTMD_H_INCLUDED
+#define CMPINTMD_H_INCLUDED
+
+#include "cmptype.h"
\f
/* Machine parameters to be set by the user. */
#define COMPILED_ENTRY_MAXIMUM_ARITY COMPILED_ENTRY_FORMAT_LOW
#define COMPILED_ENTRY_MINIMUM_ARITY COMPILED_ENTRY_FORMAT_HIGH
-#endif /* CMPINT2_H_INCLUDED */
+#endif /* CMPINTMD_H_INCLUDED */
/* -*-C-*-
-$Id: c.h,v 1.2 1993/06/09 20:38:09 jawilson Exp $
+$Id: c.h,v 1.3 1993/06/24 04:00:33 gjr Exp $
Copyright (c) 1992-1993 Massachusetts Institute of Technology
promotional, or sales literature without prior written consent from
MIT in each case. */
-#ifndef CMPINT2_H_INCLUDED
-#define CMPINT2_H_INCLUDED
+#ifndef CMPINTMD_H_INCLUDED
+#define CMPINTMD_H_INCLUDED
#include "limits.h"
+#include "cmptype.h"
\f
-#define COMPILER_NONE_TYPE 0
-#define COMPILER_MC68020_TYPE 1
-#define COMPILER_VAX_TYPE 2
-#define COMPILER_SPECTRUM_TYPE 3
-#define COMPILER_OLD_MIPS_TYPE 4
-#define COMPILER_MC68040_TYPE 5
-#define COMPILER_SPARC_TYPE 6
-#define COMPILER_RS6000_TYPE 7
-#define COMPILER_MC88K_TYPE 8
-#define COMPILER_I386_TYPE 9
-#define COMPILER_ALPHA_TYPE 10
-#define COMPILER_MIPS_TYPE 11
-#define COMPILER_LOSING_C_TYPE 12
-
#define COMPILER_PROCESSOR_TYPE COMPILER_LOSING_C_TYPE
#define HALF_OBJECT_LENGTH (OBJECT_LENGTH / 2)
#define COMPILED_ENTRY_MAXIMUM_ARITY COMPILED_ENTRY_FORMAT_LOW
#define COMPILED_ENTRY_MINIMUM_ARITY COMPILED_ENTRY_FORMAT_HIGH
-#endif /* CMPINT2_H_INCLUDED */
+#endif /* CMPINTMD_H_INCLUDED */
/* -*-C-*-
-$Id: hppa.h,v 1.40 1993/06/12 22:31:31 gjr Exp $
+$Id: hppa.h,v 1.41 1993/06/24 04:03:22 gjr Exp $
Copyright (c) 1989-1993 Massachusetts Institute of Technology
* Specialized for the HP Precision Architecture (Spectrum)
*/
-#ifndef CMPINT2_H_INCLUDED
-#define CMPINT2_H_INCLUDED
-
-#define COMPILER_NONE_TYPE 0
-#define COMPILER_MC68020_TYPE 1
-#define COMPILER_VAX_TYPE 2
-#define COMPILER_SPECTRUM_TYPE 3
-#define COMPILER_OLD_MIPS_TYPE 4
-#define COMPILER_MC68040_TYPE 5
-#define COMPILER_SPARC_TYPE 6
-#define COMPILER_RS6000_TYPE 7
-#define COMPILER_MC88K_TYPE 8
-#define COMPILER_I386_TYPE 9
-#define COMPILER_ALPHA_TYPE 10
-#define COMPILER_MIPS_TYPE 11
-#define COMPILER_LOSING_C_TYPE 12
+#ifndef CMPINTMD_H_INCLUDED
+#define CMPINTMD_H_INCLUDED
+
+#include "cmptype.h"
\f
/* Machine parameters to be set by the user. */
Uses routines from cmpaux-hppa.m4.
*/
-#include "hppacache.h"
+#include "hppacach.h"
#include "option.h"
static struct pdc_cache_dump cache_info;
}
\f
#ifndef MODELS_FILENAME
-#define MODELS_FILENAME "HPPAmodels"
+#define MODELS_FILENAME "hppacach.mod"
#endif
static void
#define COMPILED_ENTRY_MAXIMUM_ARITY COMPILED_ENTRY_FORMAT_LOW
#define COMPILED_ENTRY_MINIMUM_ARITY COMPILED_ENTRY_FORMAT_HIGH
-#endif /* CMPINT2_H_INCLUDED */
+#endif /* CMPINTMD_H_INCLUDED */
/* -*-C-*-
-$Id: i386.h,v 1.20 1992/11/18 05:01:56 gjr Exp $
+$Id: i386.h,v 1.21 1993/06/24 04:07:07 gjr Exp $
-Copyright (c) 1992 Massachusetts Institute of Technology
+Copyright (c) 1992-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
* Specialized for the Intel 386 (and successors) architecture.
*/
-#ifndef CMPINT2_H_INCLUDED
-#define CMPINT2_H_INCLUDED
-
-#define COMPILER_NONE_TYPE 0
-#define COMPILER_MC68020_TYPE 1
-#define COMPILER_VAX_TYPE 2
-#define COMPILER_SPECTRUM_TYPE 3
-#define COMPILER_OLD_MIPS_TYPE 4
-#define COMPILER_MC68040_TYPE 5
-#define COMPILER_SPARC_TYPE 6
-#define COMPILER_RS6000_TYPE 7
-#define COMPILER_MC88K_TYPE 8
-#define COMPILER_I386_TYPE 9
-#define COMPILER_ALPHA_TYPE 10
-#define COMPILER_MIPS_TYPE 11
-#define COMPILER_LOSING_C_TYPE 12
+#ifndef CMPINTMD_H_INCLUDED
+#define CMPINTMD_H_INCLUDED
+
+#include "cmptype.h"
\f
/* Until cmpaux-i386.m4 is updated. */
#define CMPINT_USE_STRUCS
if (offset != ESI_TRAMPOLINE_TO_INTERFACE_OFFSET)
{
- fprintf (stderr,
- "\ni386_reset_hook: ESI_TRAMPOLINE_TO_INTERFACE_OFFSET\n");
+ outf_fatal ("\ni386_reset_hook: ESI_TRAMPOLINE_TO_INTERFACE_OFFSET\n");
Microcode_Termination (TERM_EXIT);
}
SETUP_REGISTER (asm_trampoline_to_interface); /* 2 */
&inheritance, &shared, &object, &offset))
!= KERN_SUCCESS)
{
- fprintf (stderr, "compiler_reset: vm_region() failed.\n");
+ outf_fatal ( "compiler_reset: vm_region() failed.\n");
Microcode_Termination (TERM_EXIT);
/*NOTREACHED*/
}
{
if ((max_prot & VM_PROT_SCHEME) != VM_PROT_SCHEME)
{
- fprintf (stderr,
+ outf_fatal (
"compiler_reset: inadequate protection for Heap.\n");
- fprintf (stderr, "maximum = 0x%lx; desired = 0x%lx\n",
+ outf_fatal ( "maximum = 0x%lx; desired = 0x%lx\n",
((unsigned long) (max_prot & VM_PROT_SCHEME)),
((unsigned long) VM_PROT_SCHEME));
Microcode_Termination (TERM_EXIT);
0, VM_PROT_SCHEME))
!= KERN_SUCCESS)
{
- fprintf (stderr,
+ outf_fatal (
"compiler_reset: unable to change protection for Heap.\n");
- fprintf (stderr, "actual = 0x%lx; desired = 0x%lx\n",
+ outf_fatal ( "actual = 0x%lx; desired = 0x%lx\n",
((unsigned long) (prot & VM_PROT_SCHEME)),
((unsigned long) VM_PROT_SCHEME));
Microcode_Termination (TERM_EXIT);
#define COMPILED_ENTRY_MAXIMUM_ARITY COMPILED_ENTRY_FORMAT_LOW
#define COMPILED_ENTRY_MINIMUM_ARITY COMPILED_ENTRY_FORMAT_HIGH
-#endif /* CMPINT2_H_INCLUDED */
+#endif /* CMPINTMD_H_INCLUDED */
/* -*-C-*-
-$Id: mc68k.h,v 1.34 1993/02/19 17:47:36 cph Exp $
+$Id: mc68k.h,v 1.35 1993/06/24 04:08:24 gjr Exp $
Copyright (c) 1989-1993 Massachusetts Institute of Technology
* Specialized for the Motorola 68K family.
*/
-#ifndef CMPINT2_H_INCLUDED
-#define CMPINT2_H_INCLUDED
-
-#define COMPILER_NONE_TYPE 0
-#define COMPILER_MC68020_TYPE 1
-#define COMPILER_VAX_TYPE 2
-#define COMPILER_SPECTRUM_TYPE 3
-#define COMPILER_OLD_MIPS_TYPE 4
-#define COMPILER_MC68040_TYPE 5
-#define COMPILER_SPARC_TYPE 6
-#define COMPILER_RS6000_TYPE 7
-#define COMPILER_MC88K_TYPE 8
-#define COMPILER_I386_TYPE 9
-#define COMPILER_ALPHA_TYPE 10
-#define COMPILER_MIPS_TYPE 11
-#define COMPILER_LOSING_C_TYPE 12
+#ifndef CMPINTMD_H_INCLUDED
+#define CMPINTMD_H_INCLUDED
+
+#include "cmptype.h"
\f
/* Machine parameters to be set by the user. */
#define COMPILED_ENTRY_MAXIMUM_ARITY COMPILED_ENTRY_FORMAT_LOW
#define COMPILED_ENTRY_MINIMUM_ARITY COMPILED_ENTRY_FORMAT_HIGH
-#endif /* CMPINT2_H_INCLUDED */
+#endif /* CMPINTMD_H_INCLUDED */
/* -*-C-*-
-$Id: mips.h,v 1.17 1992/11/18 05:02:32 gjr Exp $
+$Id: mips.h,v 1.18 1993/06/24 04:09:34 gjr Exp $
-Copyright (c) 1989-1992 Massachusetts Institute of Technology
+Copyright (c) 1989-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
* Specialized for the MIPS R2000/R3000
*/
-#ifndef CMPINT2_H_INCLUDED
-#define CMPINT2_H_INCLUDED
+#ifndef CMPINTMD_H_INCLUDED
+#define CMPINTMD_H_INCLUDED
+#include "cmptype.h"
+\f
#ifdef _IRIX4
#include <sys/cachectl.h>
#endif /* not sonyrisc */
#endif /* not _IRIX4 */
-
-#define COMPILER_NONE_TYPE 0
-#define COMPILER_MC68020_TYPE 1
-#define COMPILER_VAX_TYPE 2
-#define COMPILER_SPECTRUM_TYPE 3
-#define COMPILER_OLD_MIPS_TYPE 4
-#define COMPILER_MC68040_TYPE 5
-#define COMPILER_SPARC_TYPE 6
-#define COMPILER_RS6000_TYPE 7
-#define COMPILER_MC88K_TYPE 8
-#define COMPILER_I386_TYPE 9
-#define COMPILER_ALPHA_TYPE 10
-#define COMPILER_MIPS_TYPE 11
-#define COMPILER_LOSING_C_TYPE 12
\f
/* Machine parameters to be set by the user. */
#define COMPILED_ENTRY_MAXIMUM_ARITY COMPILED_ENTRY_FORMAT_LOW
#define COMPILED_ENTRY_MINIMUM_ARITY COMPILED_ENTRY_FORMAT_HIGH
-#endif /* CMPINT2_H_INCLUDED */
+#endif /* CMPINTMD_H_INCLUDED */
/* -*-C-*-
-$Id: vax.h,v 1.7 1992/11/18 05:03:16 gjr Exp $
+$Id: vax.h,v 1.8 1993/06/24 04:10:28 gjr Exp $
-Copyright (c) 1991-1992 Massachusetts Institute of Technology
+Copyright (c) 1991-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
* Specialized for the Vax architecture.
*/
-#ifndef CMPINT2_H_INCLUDED
-#define CMPINT2_H_INCLUDED
-
-#define COMPILER_NONE_TYPE 0
-#define COMPILER_MC68020_TYPE 1
-#define COMPILER_VAX_TYPE 2
-#define COMPILER_SPECTRUM_TYPE 3
-#define COMPILER_OLD_MIPS_TYPE 4
-#define COMPILER_MC68040_TYPE 5
-#define COMPILER_SPARC_TYPE 6
-#define COMPILER_RS6000_TYPE 7
-#define COMPILER_MC88K_TYPE 8
-#define COMPILER_I386_TYPE 9
-#define COMPILER_ALPHA_TYPE 10
-#define COMPILER_MIPS_TYPE 11
-#define COMPILER_LOSING_C_TYPE 12
+#ifndef CMPNTMD_H_INCLUDED
+#define CMPNTMD_H_INCLUDED
+
+#include "cmptype.h"
\f
/* Machine parameters to be set by the user. */
#define COMPILED_ENTRY_MAXIMUM_ARITY COMPILED_ENTRY_FORMAT_LOW
#define COMPILED_ENTRY_MINIMUM_ARITY COMPILED_ENTRY_FORMAT_HIGH
-#endif /* CMPINT2_H_INCLUDED */
+#endif /* CMPNTMD_H_INCLUDED */
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/sgraph_a.c,v 1.14 1991/08/27 08:23:53 jinx Exp $
+$Id: sgraph_a.c,v 1.15 1993/06/24 03:42:46 gjr Exp $
-Copyright (c) 1987-1991 Massachusetts Institute of Technology
+Copyright (c) 1987-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#include "scheme.h"
#include "prims.h"
-#include "Sgraph.h"
+#include "sgraph.h"
#include "array.h"
#include "x11.h"
\f
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/sgx.c,v 1.7 1989/09/20 23:04:51 cph Rel $
+$Id: sgx.c,v 1.8 1993/06/24 03:39:57 gjr Exp $
-Copyright (c) 1988, 1989 Massachusetts Institute of Technology
+Copyright (c) 1988-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#include <X/Xhp.h>
#include "scheme.h"
#include "prims.h"
-#include "Sgraph.h"
+#include "sgraph.h"
\f
static Display * display = NULL;
static Window window = 0;
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/sgx11.c,v 1.2 1989/09/20 23:04:57 cph Rel $
+$Id: sgx11.c,v 1.3 1993/06/24 03:41:23 gjr Exp $
-Copyright (c) 1989 Massachusetts Institute of Technology
+Copyright (c) 1989-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#include <X11/Xlib.h>
#include "scheme.h"
#include "prims.h"
-#include "Sgraph.h"
+#include "sgraph.h"
\f
static int
x_io_error_handler (display)
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/unxutl/Attic/cf-dist.h,v 1.14 1992/06/10 21:47:27 jinx Exp $
+$Id: cf-dist.h,v 1.15 1993/06/24 03:57:26 gjr Exp $
-Copyright (c) 1989-1992 Massachusetts Institute of Technology
+Copyright (c) 1989-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#define PROC_TYPE_I386 10
#define PROC_TYPE_ALPHA 11
#define PROC_TYPE_POWER 12 /* IBM RS6000 and PowerPC */
+#define PROC_TYPE_LIARC 13 /* Scheme compiled to C */
/* Define this macro to use a non-standard compiler.
It must be defined before including the m/ and s/ files because
#
# Makefile for MIT CScheme microcode.
#
-# $Id: makefile,v 1.25 1993/06/15 19:07:53 gjr Exp $
+# $Id: makefile,v 1.26 1993/06/24 03:37:59 gjr Exp $
#
CPP = cc -E
MAKE = make # BSD doesn't have it as a default.
-all: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} all
+all: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} all
.PHONY: all
-scheme: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} scheme
+scheme: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} scheme
.PHONY: scheme
-xscheme: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} xscheme
+xscheme: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} xscheme
.PHONY: xscheme
-bchscheme: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} bchscheme
+bchscheme: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} bchscheme
.PHONY: bchscheme
-bchdrn: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} bchdrn
+bchdrn: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} bchdrn
.PHONY: bchdrn
-Psbtobin: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} Psbtobin
-.PHONY: Psbtobin
+psbtobin: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} psbtobin
+.PHONY: psbtobin
-Bintopsb: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} Bintopsb
-.PHONY: Bintopsb
+bintopsb: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} bintopsb
+.PHONY: bintopsb
-Ppband: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} Ppband
-.PHONY: Ppband
+ppband: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} ppband
+.PHONY: ppband
-hppacache: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} hppacache
-.PHONY: hppacache
+hppacach: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} hppacach
+.PHONY: hppacach
-install: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} install
+install: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} install
.PHONY: install
-world: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} world
+world: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} world
.PHONY: world
-install.world: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} install.world
+install.world: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} install.world
.PHONY: install.world
-everything: xmakefile
- $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} everything
+everything: xmkfile
+ $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} everything
.PHONY: everything
# If you have a problem with cc -E here, changing
# the definition of CPP above may fix it.
-xmakefile: ymakefile ymake.script ymake.local ymake.cclist cf.h s.h m.h
- rm -f xmakefile junk.c
- cp ymakefile junk.c
- $(CPP) junk.c | sed -n -f ymake.script > xmakefile
+xmkfile: ymkfile ymake.sed ymake.lcl ymake.ccl cf.h s.h m.h
+ rm -f xmkfile junk.c
+ cp ymkfile junk.c
+ $(CPP) junk.c | sed -n -f ymake.sed > xmkfile
rm -f junk.c
-ymake.local:
- touch ymake.local
+ymake.lcl:
+ touch ymake.lcl
-ymake.cclist:
- echo "COMPILED_SOURCES =" > ymake.cclist
+ymake.ccl:
+ echo "COMPILED_SOURCES =" > ymake.ccl
clean remove:
# the - at the beginning of the following line is what causes make to continue
# even if the clean.world target doesn't exist
- - $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} clean.world
- rm -f *.o *.s *.touch xmakefile
+ - $(MAKE) $(MAKEOVERRIDES) -f xmkfile ${MFLAGS} clean.world
+ rm -f *.o *.s *.touch xmkfile
rm -f scheme xscheme bchscheme bchdrn
- rm -f Findprim Bintopsb Psbtobin Breakup Wsize Ppband
- rm -f hard-params limits.h float.h
+ rm -f findprim bintopsb psbtobin breakup wsize ppband
+ rm -f hard-par limits.h float.h
rm -f usrdef.c bchdef.c compinit.h
rm -f lint.out
unconfig:
- rm -f m.h s.h cmpint2.h config.status
+ rm -f m.h s.h cmpintmd.h cmpauxmd.* config.out
+ rm -f ymkfile ymake.sed makefile
+ - rm -f cf-save.h ymake-save.lcl
+ - mv -f cf.h cf-save.h
+ - mv -f ymake.lcl ymake-save.lcl
tags:
etags *.[ch] ../runtime/*.scm
rlog -L -R m/RCS/*,v
rlog -L -R s/RCS/*,v
rlog -L -R dosutl/RCS/*,v
+ rlog -L -R ntutl/RCS/*,v
+ rlog -L -R unxutl/RCS/*,v
-getpagesize.h : pagesize.h
- rm -f getpagesize.h
- cp pagesize.h getpagesize.h
+getpgsz.h : pagesize.h
+ rm -f getpgsz.h
+ cp pagesize.h getpgsz.h
/* -*-C-*-
-$Id: hppa.h,v 1.40 1993/06/12 22:31:31 gjr Exp $
+$Id: hppa.h,v 1.41 1993/06/24 04:03:22 gjr Exp $
Copyright (c) 1989-1993 Massachusetts Institute of Technology
* Specialized for the HP Precision Architecture (Spectrum)
*/
-#ifndef CMPINT2_H_INCLUDED
-#define CMPINT2_H_INCLUDED
-
-#define COMPILER_NONE_TYPE 0
-#define COMPILER_MC68020_TYPE 1
-#define COMPILER_VAX_TYPE 2
-#define COMPILER_SPECTRUM_TYPE 3
-#define COMPILER_OLD_MIPS_TYPE 4
-#define COMPILER_MC68040_TYPE 5
-#define COMPILER_SPARC_TYPE 6
-#define COMPILER_RS6000_TYPE 7
-#define COMPILER_MC88K_TYPE 8
-#define COMPILER_I386_TYPE 9
-#define COMPILER_ALPHA_TYPE 10
-#define COMPILER_MIPS_TYPE 11
-#define COMPILER_LOSING_C_TYPE 12
+#ifndef CMPINTMD_H_INCLUDED
+#define CMPINTMD_H_INCLUDED
+
+#include "cmptype.h"
\f
/* Machine parameters to be set by the user. */
Uses routines from cmpaux-hppa.m4.
*/
-#include "hppacache.h"
+#include "hppacach.h"
#include "option.h"
static struct pdc_cache_dump cache_info;
}
\f
#ifndef MODELS_FILENAME
-#define MODELS_FILENAME "HPPAmodels"
+#define MODELS_FILENAME "hppacach.mod"
#endif
static void
#define COMPILED_ENTRY_MAXIMUM_ARITY COMPILED_ENTRY_FORMAT_LOW
#define COMPILED_ENTRY_MINIMUM_ARITY COMPILED_ENTRY_FORMAT_HIGH
-#endif /* CMPINT2_H_INCLUDED */
+#endif /* CMPINTMD_H_INCLUDED */