home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mitech!gjc
- From: gjc@mitech.com (George J. Carrette)
- Newsgroups: comp.lang.scheme
- Subject: Re: Mini-Scheme ?
- Message-ID: <4627@mitech.com>
- Date: 22 Jan 93 11:15:20 GMT
- References: <2415@sousa.tay.dec.com>
- Organization: Mitech Corporation, Concord MA
- Lines: 46
-
- In article <2415@sousa.tay.dec.com>, secrist@msdsws.enet.dec.com (Strong datatypes for weak minds.) writes:
- > Anybody have a cut-down Scheme smaller than SIOD or SCM that would
- > fit, without overlaying, into 64K on a microprocessor ?
-
- Good question. Why is SIOD so big? (By the way some archive sites have
- siod 1.x which is smaller).
-
- Well, SIOD.EXE for SIOD version 2.9 on a VMS machine is 33k bytes.
- Of course you have to add to that the amount of the C runtime library
- you would need. So you don't have much space left for objects. And
- you would probably want to store numbers as ints rather than doubles.
-
- Here are some serious suggestions for cutting down the size of SIOD.
- With info taken from the LINK/MAP/FULL command under VMS. Good microprocessors
- with good compilers should be able to do almost as well in terms of
- code compactness as does VAX/VMS, should they not?
-
- CHAR_STRING_CONSTANTS 3562.
- SIOD 21.
- SLIB 2682.
- SLIBA 721.
- TRACE 130.
-
- Look at that. Almost four thousand bytes taken up by string constants.
- The solutions is obvious. Shorten all error messages to 3 character codes.
- Shorten all procedure names to maybe 6 characters or less.
-
- Also, if you don't need arrays you can leave out SLIBA, if you don't want to
- be able to trace then leave out TRACE.
-
- $CODE 27484.
- SLIB 16850.
- SLIBA 8700.
- TRACE 1428.
-
- There is about 28K bytes of executable code. Again, you can leave out SLIBA
- and TRACE and get that down to about 17K bytes.
-
- Tell me, am I assuming too much if I state that a good programmer who
- knows his microprocessor environment should be able to get that running
- on a 64k machine without any problem?
-
- -gjc (who still does pdp-11 work in macro assembler and whitesmith C
- from time to time for big $$$).
-
-
-