home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1591 < prev    next >
SHell self-extracting ARchive  |  1990-12-28  |  60.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: SHell self-extracting ARchive (archive/shar).

You can browse this item here: 1591

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 6d 69 | 70 40 49 44 41 2e 4c 69 |From: mi|p@IDA.Li|
|00000010| 55 2e 53 45 20 28 4d 69 | 6b 61 65 6c 20 50 61 74 |U.SE (Mi|kael Pat|
|00000020| 65 6c 29 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |el).News|groups: |
|00000030| 61 6c 74 2e 73 6f 75 72 | 63 65 73 0a 53 75 62 6a |alt.sour|ces.Subj|
|00000040| 65 63 74 3a 20 54 49 4c | 45 20 46 6f 72 74 68 20 |ect: TIL|E Forth |
|00000050| 52 65 6c 65 61 73 65 20 | 32 2e 30 2c 20 70 61 63 |Release |2.0, pac|
|00000060| 6b 61 67 65 20 31 20 6f | 66 20 36 0a 4d 65 73 73 |kage 1 o|f 6.Mess|
|00000070| 61 67 65 2d 49 44 3a 20 | 3c 31 39 35 38 40 6d 61 |age-ID: |<1958@ma|
|00000080| 6a 65 73 74 69 78 2e 69 | 64 61 2e 6c 69 75 2e 73 |jestix.i|da.liu.s|
|00000090| 65 3e 0a 44 61 74 65 3a | 20 31 36 20 4a 75 6c 20 |e>.Date:| 16 Jul |
|000000a0| 39 30 20 31 38 3a 35 32 | 3a 34 37 20 47 4d 54 0a |90 18:52|:47 GMT.|
|000000b0| 0a 0a 23 21 20 2f 62 69 | 6e 2f 73 68 0a 23 20 54 |..#! /bi|n/sh.# T|
|000000c0| 68 69 73 20 69 73 20 61 | 20 73 68 65 6c 6c 20 61 |his is a| shell a|
|000000d0| 72 63 68 69 76 65 2e 20 | 20 52 65 6d 6f 76 65 20 |rchive. | Remove |
|000000e0| 61 6e 79 74 68 69 6e 67 | 20 62 65 66 6f 72 65 20 |anything| before |
|000000f0| 74 68 69 73 20 6c 69 6e | 65 2c 20 74 68 65 6e 20 |this lin|e, then |
|00000100| 75 6e 70 61 63 6b 0a 23 | 20 69 74 20 62 79 20 73 |unpack.#| it by s|
|00000110| 61 76 69 6e 67 20 69 74 | 20 69 6e 74 6f 20 61 20 |aving it| into a |
|00000120| 66 69 6c 65 20 61 6e 64 | 20 74 79 70 69 6e 67 20 |file and| typing |
|00000130| 22 73 68 20 66 69 6c 65 | 22 2e 20 20 54 6f 20 6f |"sh file|". To o|
|00000140| 76 65 72 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |verwrite| existin|
|00000150| 67 0a 23 20 66 69 6c 65 | 73 2c 20 74 79 70 65 20 |g.# file|s, type |
|00000160| 22 73 68 20 66 69 6c 65 | 20 2d 63 22 2e 20 20 59 |"sh file| -c". Y|
|00000170| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 66 65 65 64 |ou can a|lso feed|
|00000180| 20 74 68 69 73 20 61 73 | 20 73 74 61 6e 64 61 72 | this as| standar|
|00000190| 64 20 69 6e 70 75 74 20 | 76 69 61 0a 23 20 75 6e |d input |via.# un|
|000001a0| 73 68 61 72 2c 20 6f 72 | 20 62 79 20 74 79 70 69 |shar, or| by typi|
|000001b0| 6e 67 20 22 73 68 20 3c | 66 69 6c 65 22 2c 20 65 |ng "sh <|file", e|
|000001c0| 2e 67 2e 2e 20 20 49 66 | 20 74 68 69 73 20 61 72 |.g.. If| this ar|
|000001d0| 63 68 69 76 65 20 69 73 | 20 63 6f 6d 70 6c 65 74 |chive is| complet|
|000001e0| 65 2c 20 79 6f 75 0a 23 | 20 77 69 6c 6c 20 73 65 |e, you.#| will se|
|000001f0| 65 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |e the fo|llowing |
|00000200| 6d 65 73 73 61 67 65 20 | 61 74 20 74 68 65 20 65 |message |at the e|
|00000210| 6e 64 3a 0a 23 09 09 22 | 45 6e 64 20 6f 66 20 61 |nd:.#.."|End of a|
|00000220| 72 63 68 69 76 65 20 31 | 20 28 6f 66 20 36 29 2e |rchive 1| (of 6).|
|00000230| 22 0a 23 20 43 6f 6e 74 | 65 6e 74 73 3a 20 20 52 |".# Cont|ents: R|
|00000240| 45 41 44 4d 45 20 62 69 | 6e 20 62 69 6e 2f 66 6f |EADME bi|n bin/fo|
|00000250| 72 74 68 74 6f 6f 6c 20 | 62 69 6e 2f 6d 6b 64 6f |rthtool |bin/mkdo|
|00000260| 63 20 62 69 6e 2f 73 68 | 6f 72 74 20 62 69 6e 2f |c bin/sh|ort bin/|
|00000270| 73 6f 70 20 64 6f 63 0a | 23 20 20 20 6c 69 62 20 |sop doc.|# lib |
|00000280| 6d 61 6e 20 6d 61 6e 2f | 6d 61 6e 31 20 6d 61 6e |man man/|man1 man|
|00000290| 2f 6d 61 6e 33 20 73 72 | 63 20 73 72 63 2f 65 72 |/man3 sr|c src/er|
|000002a0| 72 6f 72 2e 68 20 73 72 | 63 2f 69 6f 2e 68 20 73 |ror.h sr|c/io.h s|
|000002b0| 72 63 2f 6d 65 6d 6f 72 | 79 2e 63 0a 23 20 20 20 |rc/memor|y.c.# |
|000002c0| 73 72 63 2f 6d 65 6d 6f | 72 79 2e 68 20 73 72 63 |src/memo|ry.h src|
|000002d0| 2f 6d 65 6d 6f 72 79 2e | 76 20 74 73 74 20 74 73 |/memory.|v tst ts|
|000002e0| 74 2f 62 69 74 66 69 65 | 6c 64 73 2e 74 73 74 20 |t/bitfie|lds.tst |
|000002f0| 74 73 74 2f 62 6c 6f 63 | 6b 73 2e 74 73 74 0a 23 |tst/bloc|ks.tst.#|
|00000300| 20 20 20 74 73 74 2f 62 | 75 62 62 6c 65 2d 73 6f | tst/b|ubble-so|
|00000310| 72 74 2e 74 73 74 20 74 | 73 74 2f 62 79 74 65 2d |rt.tst t|st/byte-|
|00000320| 73 69 65 76 65 2e 74 73 | 74 20 74 73 74 2f 63 68 |sieve.ts|t tst/ch|
|00000330| 61 6e 6e 65 6c 73 2e 74 | 73 74 0a 23 20 20 20 74 |annels.t|st.# t|
|00000340| 73 74 2f 63 6f 6c 62 75 | 72 6e 2d 73 69 65 76 65 |st/colbu|rn-sieve|
|00000350| 2e 74 73 74 20 74 73 74 | 2f 64 65 62 75 67 67 65 |.tst tst|/debugge|
|00000360| 72 2e 74 73 74 20 74 73 | 74 2f 64 6f 75 62 6c 65 |r.tst ts|t/double|
|00000370| 2e 74 73 74 0a 23 20 20 | 20 74 73 74 2f 65 6e 75 |.tst.# | tst/enu|
|00000380| 6d 65 72 61 74 65 73 2e | 74 73 74 20 74 73 74 2f |merates.|tst tst/|
|00000390| 66 69 62 6f 6e 61 63 63 | 69 2e 74 73 74 20 74 73 |fibonacc|i.tst ts|
|000003a0| 74 2f 6c 6f 63 61 6c 73 | 2e 74 73 74 20 74 73 74 |t/locals|.tst tst|
|000003b0| 2f 6d 61 63 72 6f 73 2e | 74 73 74 0a 23 20 20 20 |/macros.|tst.# |
|000003c0| 74 73 74 2f 6d 61 74 72 | 69 78 2d 6d 75 6c 74 2e |tst/matr|ix-mult.|
|000003d0| 74 73 74 20 74 73 74 2f | 70 65 72 6d 75 74 61 74 |tst tst/|permutat|
|000003e0| 69 6f 6e 73 2e 74 73 74 | 20 74 73 74 2f 71 75 65 |ions.tst| tst/que|
|000003f0| 75 65 73 2e 74 73 74 0a | 23 20 20 20 74 73 74 2f |ues.tst.|# tst/|
|00000400| 72 61 6e 67 65 73 2e 74 | 73 74 20 74 73 74 2f 72 |ranges.t|st tst/r|
|00000410| 61 74 69 6f 6e 61 6c 73 | 2e 74 73 74 20 74 73 74 |ationals|.tst tst|
|00000420| 2f 72 65 6e 64 65 7a 76 | 6f 75 73 2e 74 73 74 0a |/rendezv|ous.tst.|
|00000430| 23 20 20 20 74 73 74 2f | 73 65 6d 61 70 68 6f 72 |# tst/|semaphor|
|00000440| 65 73 2e 74 73 74 20 74 | 73 74 2f 73 65 74 73 2e |es.tst t|st/sets.|
|00000450| 74 73 74 20 74 73 74 2f | 73 74 72 75 63 74 75 72 |tst tst/|structur|
|00000460| 65 73 2e 74 73 74 0a 23 | 20 20 20 74 73 74 2f 74 |es.tst.#| tst/t|
|00000470| 6f 77 65 72 73 2d 6f 66 | 2d 68 61 6e 6f 69 2e 74 |owers-of|-hanoi.t|
|00000480| 73 74 0a 23 20 57 72 61 | 70 70 65 64 20 62 79 20 |st.# Wra|pped by |
|00000490| 6d 69 70 40 6d 69 6e 61 | 20 6f 6e 20 46 72 69 20 |mip@mina| on Fri |
|000004a0| 4a 75 6e 20 32 39 20 31 | 36 3a 34 39 3a 30 33 20 |Jun 29 1|6:49:03 |
|000004b0| 31 39 39 30 0a 50 41 54 | 48 3d 2f 62 69 6e 3a 2f |1990.PAT|H=/bin:/|
|000004c0| 75 73 72 2f 62 69 6e 3a | 2f 75 73 72 2f 75 63 62 |usr/bin:|/usr/ucb|
|000004d0| 20 3b 20 65 78 70 6f 72 | 74 20 50 41 54 48 0a 69 | ; expor|t PATH.i|
|000004e0| 66 20 74 65 73 74 20 2d | 66 20 52 45 41 44 4d 45 |f test -|f README|
|000004f0| 20 2d 61 20 22 24 7b 31 | 7d 22 20 21 3d 20 22 2d | -a "${1|}" != "-|
|00000500| 63 22 20 3b 20 74 68 65 | 6e 20 0a 20 20 65 63 68 |c" ; the|n . ech|
|00000510| 6f 20 73 68 61 72 3a 20 | 57 69 6c 6c 20 6e 6f 74 |o shar: |Will not|
|00000520| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00000530| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 52 45 41 44 |ting fil|e \"READ|
|00000540| 4d 45 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |ME\".els|e.echo s|
|00000550| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00000560| 5c 22 52 45 41 44 4d 45 | 5c 22 20 5c 28 31 34 33 |\"README|\" \(143|
|00000570| 37 31 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |71 chara|cters\).|
|00000580| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 52 45 |sed "s/^|X//" >RE|
|00000590| 41 44 4d 45 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 52 |ADME <<'|END_OF_R|
|000005a0| 45 41 44 4d 45 27 0a 58 | 54 48 52 45 41 44 45 44 |EADME'.X|THREADED|
|000005b0| 20 49 4e 54 45 52 50 52 | 45 54 49 56 45 20 4c 41 | INTERPR|ETIVE LA|
|000005c0| 4e 47 55 41 47 45 20 45 | 4e 56 49 52 4f 4e 4d 45 |NGUAGE E|NVIRONME|
|000005d0| 4e 54 20 28 54 49 4c 45 | 29 20 5b 52 45 4c 45 41 |NT (TILE|) [RELEA|
|000005e0| 53 45 20 32 2e 30 5d 0a | 58 0a 58 4a 75 6e 65 20 |SE 2.0].|X.XJune |
|000005f0| 32 39 2c 20 31 39 39 30 | 0a 58 0a 58 4d 69 6b 61 |29, 1990|.X.XMika|
|00000600| 65 6c 20 52 2e 4b 2e 20 | 50 61 74 65 6c 0a 58 43 |el R.K. |Patel.XC|
|00000610| 6f 6d 70 75 74 65 72 20 | 41 69 64 65 64 20 44 65 |omputer |Aided De|
|00000620| 73 69 67 6e 20 4c 61 62 | 6f 72 61 74 6f 72 79 20 |sign Lab|oratory |
|00000630| 28 43 41 44 4c 41 42 29 | 0a 58 44 65 70 61 72 74 |(CADLAB)|.XDepart|
|00000640| 6d 65 6e 74 20 6f 66 20 | 43 6f 6d 70 75 74 65 72 |ment of |Computer|
|00000650| 20 61 6e 64 20 49 6e 66 | 6f 72 6d 61 74 69 6f 6e | and Inf|ormation|
|00000660| 20 53 63 69 65 6e 63 65 | 0a 58 4c 69 6e 6b 6f 70 | Science|.XLinkop|
|00000670| 69 6e 67 20 55 6e 69 76 | 65 72 73 69 74 79 0a 58 |ing Univ|ersity.X|
|00000680| 53 2d 35 38 31 20 38 33 | 20 4c 49 4e 4b 4f 50 49 |S-581 83| LINKOPI|
|00000690| 4e 47 0a 58 53 57 45 44 | 45 4e 0a 58 45 6d 61 69 |NG.XSWED|EN.XEmai|
|000006a0| 6c 3a 20 6d 69 70 40 69 | 64 61 2e 6c 69 75 2e 73 |l: mip@i|da.liu.s|
|000006b0| 65 0a 58 0a 58 0a 58 31 | 2e 09 49 4e 54 52 4f 44 |e.X.X.X1|..INTROD|
|000006c0| 55 43 54 49 4f 4e 0a 58 | 0a 58 54 49 4c 45 20 46 |UCTION.X|.XTILE F|
|000006d0| 6f 72 74 68 20 69 73 20 | 61 20 33 32 2d 62 69 74 |orth is |a 32-bit|
|000006e0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 20 | impleme|ntation |
|000006f0| 6f 66 20 74 68 65 20 46 | 6f 72 74 68 2d 38 33 20 |of the F|orth-83 |
|00000700| 53 74 61 6e 64 61 72 64 | 20 0a 58 77 72 69 74 74 |Standard| .Xwritt|
|00000710| 65 6e 20 69 6e 20 43 2e | 20 54 68 75 73 20 61 6c |en in C.| Thus al|
|00000720| 6c 6f 77 69 6e 67 20 69 | 74 20 74 6f 20 62 65 20 |lowing i|t to be |
|00000730| 65 61 73 69 6c 79 20 6d | 6f 76 65 64 20 62 65 74 |easily m|oved bet|
|00000740| 77 65 65 6e 20 64 69 66 | 66 65 72 65 6e 74 20 0a |ween dif|ferent .|
|00000750| 58 63 6f 6d 70 75 74 65 | 72 73 20 63 6f 6d 70 61 |Xcompute|rs compa|
|00000760| 72 65 64 20 74 6f 20 74 | 72 61 64 69 74 69 6f 6e |red to t|radition|
|00000770| 61 6c 20 46 6f 72 74 68 | 20 69 6d 70 6c 65 6d 65 |al Forth| impleme|
|00000780| 6e 74 61 74 69 6f 6e 73 | 20 69 6e 20 61 73 73 65 |ntations| in asse|
|00000790| 6d 62 6c 79 2e 0a 58 0a | 58 4d 6f 73 74 20 46 6f |mbly..X.|XMost Fo|
|000007a0| 72 74 68 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |rth impl|ementati|
|000007b0| 6f 6e 73 20 61 72 65 20 | 64 6f 6e 65 20 69 6e 20 |ons are |done in |
|000007c0| 61 73 73 65 6d 62 6c 79 | 20 74 6f 20 62 65 20 61 |assembly| to be a|
|000007d0| 62 6c 65 20 74 6f 0a 58 | 75 74 69 6c 69 7a 65 20 |ble to.X|utilize |
|000007e0| 74 68 65 20 75 6e 64 65 | 72 6c 79 69 6e 67 20 61 |the unde|rlying a|
|000007f0| 72 63 68 69 74 65 63 74 | 75 72 65 20 61 73 20 6f |rchitect|ure as o|
|00000800| 70 74 69 6d 61 6c 20 61 | 73 20 70 6f 73 73 69 62 |ptimal a|s possib|
|00000810| 6c 65 2e 20 54 49 4c 45 | 20 0a 58 46 6f 72 74 68 |le. TILE| .XForth|
|00000820| 20 67 6f 65 73 20 61 6e | 6f 74 68 65 72 20 64 69 | goes an|other di|
|00000830| 72 65 63 74 69 6f 6e 2e | 20 54 68 65 20 6d 61 69 |rection.| The mai|
|00000840| 6e 20 69 64 65 61 20 62 | 65 68 69 6e 64 20 54 49 |n idea b|ehind TI|
|00000850| 4c 45 20 46 6f 72 74 68 | 20 69 73 20 74 6f 20 0a |LE Forth| is to .|
|00000860| 58 61 63 68 69 65 76 65 | 20 61 20 70 6f 72 74 61 |Xachieve| a porta|
|00000870| 62 6c 65 20 66 6f 72 74 | 68 20 69 6d 70 6c 65 6d |ble fort|h implem|
|00000880| 65 6e 74 61 74 69 6f 6e | 20 66 6f 72 20 77 6f 72 |entation| for wor|
|00000890| 6b 73 74 61 74 69 6f 6e | 73 20 61 6e 64 20 6d 65 |kstation|s and me|
|000008a0| 64 69 75 6d 20 0a 58 73 | 69 7a 65 20 63 6f 6d 70 |dium .Xs|ize comp|
|000008b0| 75 74 65 72 20 73 79 73 | 74 65 6d 73 20 73 6f 20 |uter sys|tems so |
|000008c0| 74 68 61 74 20 6e 65 77 | 20 67 72 6f 75 70 73 20 |that new| groups |
|000008d0| 6f 66 20 70 72 6f 67 72 | 61 6d 6d 65 72 73 20 6d |of progr|ammers m|
|000008e0| 61 79 20 62 65 20 65 78 | 70 6f 73 65 64 20 0a 58 |ay be ex|posed .X|
|000008f0| 74 6f 20 74 68 65 20 66 | 6c 61 76 6f 72 20 6f 66 |to the f|lavor of|
|00000900| 20 61 6e 20 65 78 74 65 | 6e 73 69 62 6c 65 20 6c | an exte|nsible l|
|00000910| 61 6e 67 75 61 67 65 20 | 73 75 63 68 20 61 73 20 |anguage |such as |
|00000920| 46 6f 72 74 68 2e 20 0a | 58 0a 58 54 68 65 20 69 |Forth. .|X.XThe i|
|00000930| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|00000940| 20 54 49 4c 45 20 46 6f | 72 74 68 20 69 73 20 73 | TILE Fo|rth is s|
|00000950| 65 6c 65 63 74 65 64 20 | 73 6f 20 74 68 61 74 2c |elected |so that,|
|00000960| 20 69 6e 20 70 72 69 6e | 63 69 70 6c 65 2c 20 0a | in prin|ciple, .|
|00000970| 58 61 6e 79 20 43 2d 6c | 65 76 65 6c 20 70 72 6f |Xany C-l|evel pro|
|00000980| 63 65 64 75 72 65 20 6d | 61 79 20 62 65 63 6f 6d |cedure m|ay becom|
|00000990| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 6f 6e 20 74 |e availa|ble on t|
|000009a0| 68 65 20 69 6e 74 65 72 | 61 63 74 69 76 65 20 61 |he inter|active a|
|000009b0| 6e 64 0a 58 69 6e 63 72 | 65 6d 65 6e 74 61 6c 20 |nd.Xincr|emental |
|000009c0| 66 6f 72 74 68 20 6c 65 | 76 65 6c 2e 20 4f 74 68 |forth le|vel. Oth|
|000009d0| 65 72 20 6d 6f 64 65 6c | 73 20 6f 66 20 69 6d 70 |er model|s of imp|
|000009e0| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 20 6f 66 20 61 |lementat|ion of a|
|000009f0| 20 74 68 72 65 61 64 65 | 64 0a 58 69 6e 74 65 72 | threade|d.Xinter|
|00000a00| 70 72 65 74 65 72 20 69 | 6e 20 43 20 61 72 65 20 |preter i|n C are |
|00000a10| 70 6f 73 73 69 62 6c 65 | 20 62 75 74 20 61 72 65 |possible| but are|
|00000a20| 20 6e 6f 74 20 61 73 20 | 66 6c 65 78 69 62 6c 65 | not as |flexible|
|00000a30| 2e 0a 58 0a 58 54 49 4c | 45 20 46 6f 72 74 68 20 |..X.XTIL|E Forth |
|00000a40| 69 73 20 6f 72 67 61 6e | 69 7a 65 64 20 61 73 20 |is organ|ized as |
|00000a50| 61 20 73 65 74 20 6f 66 | 20 6d 6f 64 75 6c 65 73 |a set of| modules|
|00000a60| 20 74 6f 20 61 6c 6c 6f | 77 20 74 68 65 20 6b 65 | to allo|w the ke|
|00000a70| 72 6e 65 6c 20 74 6f 20 | 62 65 20 0a 58 75 73 65 |rnel to |be .Xuse|
|00000a80| 64 20 61 73 20 61 20 67 | 65 6e 65 72 61 6c 20 74 |d as a g|eneral t|
|00000a90| 68 72 65 61 64 69 6e 67 | 20 65 6e 67 69 6e 65 20 |hreading| engine |
|00000aa0| 66 6f 72 20 43 2e 20 45 | 6e 76 69 72 6f 6e 6d 65 |for C. E|nvironme|
|00000ab0| 6e 74 20 64 65 70 65 6e | 64 65 6e 63 69 65 73 20 |nt depen|dencies |
|00000ac0| 73 75 63 68 0a 58 61 73 | 20 6d 65 6d 6f 72 79 20 |such.Xas| memory |
|00000ad0| 61 6c 6c 6f 63 61 74 69 | 6f 6e 2c 20 65 72 72 6f |allocati|on, erro|
|00000ae0| 72 20 68 61 6e 64 6c 69 | 6e 67 20 61 6e 64 20 69 |r handli|ng and i|
|00000af0| 6e 70 75 74 2f 6f 75 74 | 70 75 74 20 68 61 76 65 |nput/out|put have|
|00000b00| 20 62 65 65 6e 20 73 65 | 70 61 72 61 74 65 64 0a | been se|parated.|
|00000b10| 58 6f 75 74 20 6f 66 20 | 74 68 65 20 6b 65 72 6e |Xout of |the kern|
|00000b20| 65 6c 20 74 6f 20 69 6e | 63 72 65 61 73 65 20 66 |el to in|crease f|
|00000b30| 6c 65 78 69 62 69 6c 69 | 74 79 2e 20 54 68 65 20 |lexibili|ty. The |
|00000b40| 66 6f 72 74 68 20 61 70 | 70 6c 69 63 61 74 69 6f |forth ap|plicatio|
|00000b50| 6e 20 69 73 20 22 6a 75 | 73 74 22 0a 58 61 6e 20 |n is "ju|st".Xan |
|00000b60| 65 78 61 6d 70 6c 65 20 | 6f 66 20 68 6f 77 20 74 |example |of how t|
|00000b70| 6f 20 75 73 65 20 74 68 | 65 20 6b 65 72 6e 65 6c |o use th|e kernel|
|00000b80| 2e 0a 58 0a 58 43 6f 6d | 70 61 72 69 6e 67 20 66 |..X.XCom|paring f|
|00000b90| 6f 72 74 68 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |orth imp|lementat|
|00000ba0| 69 6f 6e 20 75 73 69 6e | 67 20 74 68 65 20 74 72 |ion usin|g the tr|
|00000bb0| 61 64 69 74 69 6f 6e 61 | 6c 20 62 65 6e 63 68 6d |aditiona|l benchm|
|00000bc0| 61 72 6b 20 73 75 63 68 | 20 61 73 0a 58 74 68 65 |ark such| as.Xthe|
|00000bd0| 20 63 6c 61 73 73 69 63 | 61 6c 20 73 69 65 76 65 | classic|al sieve|
|00000be0| 73 20 63 61 6c 63 75 6c | 61 74 69 6f 6e 20 69 73 |s calcul|ation is|
|00000bf0| 20 64 69 66 66 69 63 75 | 6c 74 20 62 65 63 61 75 | difficu|lt becau|
|00000c00| 73 65 20 6f 66 20 64 69 | 66 66 65 72 65 6e 63 65 |se of di|fference|
|00000c10| 20 69 6e 0a 58 73 70 65 | 65 64 20 62 65 74 77 65 | in.Xspe|ed betwe|
|00000c20| 65 6e 20 77 6f 72 6b 73 | 74 61 74 69 6f 6e 73 20 |en works|tations |
|00000c30| 61 6e 64 20 70 65 72 73 | 6f 6e 61 6c 20 63 6f 6d |and pers|onal com|
|00000c40| 70 75 74 65 72 73 2e 20 | 54 68 65 20 42 79 74 65 |puters. |The Byte|
|00000c50| 20 73 69 65 76 65 73 0a | 58 62 65 6e 63 68 6d 61 | sieves.|Xbenchma|
|00000c60| 72 6b 20 69 73 20 72 65 | 70 6f 72 74 65 64 20 74 |rk is re|ported t|
|00000c70| 6f 20 74 79 70 69 63 61 | 6c 6c 79 20 72 75 6e 20 |o typica|lly run |
|00000c80| 69 6e 20 31 36 20 73 65 | 63 6f 6e 64 73 20 6f 6e |in 16 se|conds on|
|00000c90| 20 61 20 64 69 72 65 63 | 74 20 74 68 72 65 61 64 | a direc|t thread|
|00000ca0| 65 64 0a 58 66 6f 72 74 | 68 20 69 6d 70 6c 65 6d |ed.Xfort|h implem|
|00000cb0| 65 6e 74 61 74 69 6f 6e | 2e 20 54 68 69 73 20 62 |entation|. This b|
|00000cc0| 65 6e 63 68 6d 61 72 6b | 20 77 69 6c 6c 20 72 75 |enchmark| will ru|
|00000cd0| 6e 20 69 6e 20 32 37 20 | 73 65 63 6f 6e 64 73 20 |n in 27 |seconds |
|00000ce0| 69 6e 20 54 49 4c 45 20 | 66 6f 72 74 68 20 0a 58 |in TILE |forth .X|
|00000cf0| 6f 6e 20 61 20 53 55 4e | 2d 33 2f 36 30 20 61 6e |on a SUN|-3/60 an|
|00000d00| 64 20 6c 65 73 73 20 74 | 68 61 6e 20 31 33 20 73 |d less t|han 13 s|
|00000d10| 65 63 6f 6e 64 73 20 6f | 6e 20 61 20 53 55 4e 20 |econds o|n a SUN |
|00000d20| 53 50 41 52 43 73 74 61 | 74 69 6f 6e 20 31 2e 20 |SPARCsta|tion 1. |
|00000d30| 54 68 65 73 65 20 74 69 | 6d 65 73 20 0a 58 61 72 |These ti|mes .Xar|
|00000d40| 65 20 74 68 65 20 74 6f | 74 61 6c 20 74 69 6d 65 |e the to|tal time|
|00000d50| 20 66 6f 72 20 6c 6f 61 | 64 69 6e 67 20 54 49 4c | for loa|ding TIL|
|00000d60| 45 20 66 6f 72 74 68 2c | 20 63 6f 6d 70 69 6c 69 |E forth,| compili|
|00000d70| 6e 67 20 61 6e 64 20 65 | 78 65 63 75 74 69 6e 67 |ng and e|xecuting|
|00000d80| 20 74 68 65 0a 58 62 65 | 6e 63 68 6d 61 72 6b 2e | the.Xbe|nchmark.|
|00000d90| 20 43 6f 6d 70 61 72 69 | 6e 67 20 74 6f 2c 20 66 | Compari|ng to, f|
|00000da0| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 6f 74 68 |or insta|nce, oth|
|00000db0| 65 72 20 69 6e 74 65 72 | 70 72 65 74 69 76 65 20 |er inter|pretive |
|00000dc0| 6c 61 6e 67 75 61 67 65 | 73 20 73 75 63 68 20 0a |language|s such .|
|00000dd0| 58 61 73 20 4c 69 73 70 | 2c 20 77 68 65 72 65 20 |Xas Lisp|, where |
|00000de0| 6f 6e 65 20 6f 66 20 74 | 68 65 20 63 6c 61 73 73 |one of t|he class|
|00000df0| 69 63 61 6c 20 62 65 6e | 63 68 6d 61 72 6b 73 20 |ical ben|chmarks |
|00000e00| 69 73 20 63 61 6c 63 75 | 6c 61 74 69 6f 6e 20 6f |is calcu|lation o|
|00000e10| 66 20 74 68 65 20 0a 58 | 46 69 62 6f 6e 61 63 63 |f the .X|Fibonacc|
|00000e20| 69 20 66 75 6e 63 74 69 | 6f 6e 2c 20 74 68 65 20 |i functi|on, the |
|00000e30| 70 65 72 66 6f 72 6d 61 | 6e 63 65 20 69 6e 63 72 |performa|nce incr|
|00000e40| 65 61 73 65 20 69 73 20 | 6f 76 65 72 20 6f 6e 65 |ease is |over one|
|00000e50| 20 6d 61 67 6e 69 74 75 | 64 65 2e 0a 58 0a 58 54 | magnitu|de..X.XT|
|00000e60| 68 65 20 6b 65 72 6e 65 | 6c 20 73 75 70 70 6f 72 |he kerne|l suppor|
|00000e70| 74 73 20 74 68 65 20 53 | 74 61 6e 64 61 72 64 20 |ts the S|tandard |
|00000e80| 46 6f 72 74 68 2d 38 33 | 20 77 6f 72 64 20 73 65 |Forth-83| word se|
|00000e90| 74 20 65 78 63 65 70 74 | 20 66 6f 72 20 74 68 65 |t except| for the|
|00000ea0| 0a 58 62 6c 6f 63 6b 73 | 20 66 69 6c 65 20 77 6f |.Xblocks| file wo|
|00000eb0| 72 64 20 73 65 74 20 77 | 68 69 63 68 20 61 72 65 |rd set w|hich are|
|00000ec0| 20 6e 6f 74 20 75 73 65 | 64 2e 20 54 68 65 20 6b | not use|d. The k|
|00000ed0| 65 72 6e 65 6c 20 69 73 | 20 65 78 74 65 6e 64 65 |ernel is| extende|
|00000ee0| 64 20 77 69 74 68 0a 58 | 6d 61 6e 79 20 6f 66 20 |d with.X|many of |
|00000ef0| 74 68 65 20 63 6f 6e 63 | 65 70 74 73 20 66 72 6f |the conc|epts fro|
|00000f00| 6d 20 6d 6f 64 65 72 6e | 20 70 72 6f 67 72 61 6d |m modern| program|
|00000f10| 6d 69 6e 67 20 6c 61 6e | 67 75 61 67 65 73 2e 20 |ming lan|guages. |
|00000f20| 48 65 72 65 20 69 73 20 | 61 20 6c 69 73 74 0a 58 |Here is |a list.X|
|00000f30| 6f 66 20 73 6f 6d 65 20 | 6f 66 20 74 68 65 20 65 |of some |of the e|
|00000f40| 78 74 65 6e 73 69 6f 6e | 73 3b 20 61 72 67 75 6d |xtension|s; argum|
|00000f50| 65 6e 74 20 62 69 6e 64 | 69 6e 67 20 61 6e 64 20 |ent bind|ing and |
|00000f60| 6c 6f 63 61 6c 20 76 61 | 72 69 61 62 6c 65 73 2c |local va|riables,|
|00000f70| 20 71 75 65 75 65 0a 58 | 6d 61 6e 61 67 65 6d 65 | queue.X|manageme|
|00000f80| 6e 74 2c 20 6c 6f 77 20 | 6c 65 76 65 6c 20 63 6f |nt, low |level co|
|00000f90| 6d 70 69 6c 65 72 20 77 | 6f 72 64 73 2c 20 73 74 |mpiler w|ords, st|
|00000fa0| 72 69 6e 67 20 66 75 6e | 63 74 69 6f 6e 73 2c 20 |ring fun|ctions, |
|00000fb0| 66 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 0a 58 |floating| point.X|
|00000fc0| 6e 75 6d 62 65 72 73 2c | 20 65 78 63 65 70 74 69 |numbers,| excepti|
|00000fd0| 6f 6e 73 20 61 6e 64 20 | 6d 75 6c 74 69 2d 74 61 |ons and |multi-ta|
|00000fe0| 73 6b 69 6e 67 2e 20 54 | 68 65 20 54 49 4c 45 20 |sking. T|he TILE |
|00000ff0| 46 6f 72 74 68 20 65 6e | 76 69 72 6f 6e 6d 65 6e |Forth en|vironmen|
|00001000| 74 20 61 6c 73 6f 0a 58 | 63 6f 6e 74 61 69 6e 73 |t also.X|contains|
|00001010| 20 61 20 73 65 74 20 6f | 66 20 72 65 75 73 61 62 | a set o|f reusab|
|00001020| 6c 65 20 73 6f 75 72 63 | 65 20 66 69 6c 65 73 20 |le sourc|e files |
|00001030| 66 6f 72 20 68 69 67 68 | 20 6c 65 76 65 6c 20 6d |for high| level m|
|00001040| 75 6c 74 69 2d 74 61 73 | 6b 69 6e 67 2c 20 0a 58 |ulti-tas|king, .X|
|00001050| 64 61 74 61 20 6d 6f 64 | 65 6c 69 6e 67 20 61 6e |data mod|eling an|
|00001060| 64 20 73 74 72 75 63 74 | 75 72 69 6e 67 20 6d 6f |d struct|uring mo|
|00001070| 64 75 6c 65 73 2c 20 61 | 6e 64 20 61 20 6e 75 6d |dules, a|nd a num|
|00001080| 62 65 72 20 6f 66 20 70 | 72 6f 67 72 61 6d 6d 69 |ber of p|rogrammi|
|00001090| 6e 67 20 74 6f 6f 6c 73 | 2e 0a 58 0a 58 54 6f 20 |ng tools|..X.XTo |
|000010a0| 61 6c 6c 6f 77 20 69 6e | 74 65 72 61 63 74 69 6f |allow in|teractio|
|000010b0| 6e 20 61 6e 64 20 69 6e | 63 72 65 6d 65 6e 74 61 |n and in|crementa|
|000010c0| 6c 20 70 72 6f 67 72 61 | 6d 20 64 65 76 65 6c 6f |l progra|m develo|
|000010d0| 70 6d 65 6e 74 20 54 49 | 4c 45 20 46 6f 72 74 68 |pment TI|LE Forth|
|000010e0| 0a 58 69 6e 63 6c 75 64 | 65 73 20 61 20 70 72 6f |.Xinclud|es a pro|
|000010f0| 67 72 61 6d 6d 69 6e 67 | 20 65 6e 76 69 72 6f 6e |gramming| environ|
|00001100| 6d 65 6e 74 20 61 73 20 | 61 20 6d 6f 64 65 20 69 |ment as |a mode i|
|00001110| 6e 20 47 4e 55 20 45 6d | 61 63 73 2e 20 54 68 69 |n GNU Em|acs. Thi|
|00001120| 73 20 65 6e 76 69 72 6f | 6e 2d 0a 58 6d 65 6e 74 |s enviro|n-.Xment|
|00001130| 20 68 65 6c 70 73 20 77 | 69 74 68 20 70 72 6f 67 | helps w|ith prog|
|00001140| 72 61 6d 20 73 74 72 75 | 63 74 75 72 69 6e 67 2c |ram stru|cturing,|
|00001150| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 73 | documen|tation s|
|00001160| 65 61 72 63 68 2c 20 61 | 6e 64 20 70 72 6f 67 72 |earch, a|nd progr|
|00001170| 61 6d 0a 58 64 65 76 65 | 6c 6f 70 6d 65 6e 74 2e |am.Xdeve|lopment.|
|00001180| 20 45 61 63 68 20 76 6f | 63 61 62 75 6c 61 72 79 | Each vo|cabulary|
|00001190| 20 69 6e 20 74 68 65 20 | 6b 65 72 6e 65 6c 20 61 | in the |kernel a|
|000011a0| 6e 64 20 74 68 65 20 73 | 6f 75 72 63 65 20 6c 69 |nd the s|ource li|
|000011b0| 62 72 61 72 79 20 66 69 | 6c 65 20 69 73 20 0a 58 |brary fi|le is .X|
|000011c0| 64 65 73 63 72 69 62 65 | 64 20 62 79 20 61 20 6d |describe|d by a m|
|000011d0| 61 6e 75 61 6c 2c 20 64 | 6f 63 75 6d 65 6e 74 61 |anual, d|ocumenta|
|000011e0| 74 69 6f 6e 20 61 6e 64 | 20 74 65 73 74 20 66 69 |tion and| test fi|
|000011f0| 6c 65 2e 20 54 68 69 73 | 20 73 74 79 6c 65 20 6f |le. This| style o|
|00001200| 66 20 0a 58 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |f .Xprog|ramming |
|00001210| 69 73 20 65 6d 70 68 61 | 73 69 7a 65 64 20 74 68 |is empha|sized th|
|00001220| 72 6f 75 67 68 6f 75 74 | 20 74 68 65 20 65 6e 76 |roughout| the env|
|00001230| 69 72 6f 6e 6d 65 6e 74 | 20 74 6f 20 69 6e 63 72 |ironment| to incr|
|00001240| 65 61 73 65 20 0a 58 75 | 6e 64 65 72 73 74 61 6e |ease .Xu|nderstan|
|00001250| 64 69 6e 67 20 61 6e 64 | 20 72 65 75 73 61 62 69 |ding and| reusabi|
|00001260| 6c 69 74 79 20 6f 66 20 | 74 68 65 20 6c 69 62 72 |lity of |the libr|
|00001270| 61 72 79 20 6d 6f 64 75 | 6c 65 73 2e 20 44 75 72 |ary modu|les. Dur|
|00001280| 69 6e 67 20 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 0a |ing comp|ilation.|
|00001290| 58 54 49 4c 45 20 46 6f | 72 74 68 27 73 20 69 6f |XTILE Fo|rth's io|
|000012a0| 2d 70 61 63 6b 61 67 65 | 20 6b 65 65 70 73 20 74 |-package| keeps t|
|000012b0| 72 61 63 6b 20 66 6f 72 | 20 77 68 69 63 68 20 6d |rack for| which m|
|000012c0| 6f 64 75 6c 65 73 20 68 | 61 76 65 20 62 65 65 6e |odules h|ave been|
|000012d0| 20 6c 6f 61 64 65 64 0a | 58 73 6f 20 74 68 61 74 | loaded.|Xso that|
|000012e0| 20 74 68 65 79 20 61 72 | 65 20 6f 6e 6c 79 20 6c | they ar|e only l|
|000012f0| 6f 61 64 65 64 20 6f 6e | 63 65 20 65 76 65 6e 20 |oaded on|ce even |
|00001300| 69 66 20 69 6e 63 6c 75 | 64 65 64 20 62 79 20 73 |if inclu|ded by s|
|00001310| 65 76 65 72 61 6c 20 6d | 6f 64 75 6c 65 73 2e 0a |everal m|odules..|
|00001320| 58 0a 58 57 72 69 74 69 | 6e 67 20 61 20 46 6f 72 |X.XWriti|ng a For|
|00001330| 74 68 20 69 6e 20 43 20 | 67 69 76 65 73 20 73 6f |th in C |gives so|
|00001340| 6d 65 20 70 6f 73 73 69 | 62 69 6c 69 74 69 65 73 |me possi|bilities|
|00001350| 20 74 68 61 74 20 6e 6f | 72 6d 61 6c 6c 79 20 61 | that no|rmally a|
|00001360| 72 65 0a 58 6e 6f 74 20 | 61 76 61 69 6c 61 62 6c |re.Xnot |availabl|
|00001370| 65 20 77 68 65 6e 20 70 | 65 72 66 6f 72 6d 69 6e |e when p|erformin|
|00001380| 67 20 74 68 65 20 73 61 | 6d 65 20 74 61 73 6b 20 |g the sa|me task |
|00001390| 69 6e 20 61 73 73 65 6d | 62 6c 79 2e 20 54 49 4c |in assem|bly. TIL|
|000013a0| 45 20 46 6f 72 74 68 0a | 58 68 61 73 20 62 65 65 |E Forth.|Xhas bee|
|000013b0| 6e 20 70 72 6f 66 69 6c | 65 64 20 75 73 69 6e 67 |n profil|ed using|
|000013c0| 20 74 68 65 20 61 76 61 | 69 6c 61 62 6c 65 20 74 | the ava|ilable t|
|000013d0| 6f 6f 6c 73 20 75 6e 64 | 65 72 20 55 6e 69 78 2e |ools und|er Unix.|
|000013e0| 20 54 68 69 73 20 69 6e | 66 6f 72 6d 61 74 69 6f | This in|formatio|
|000013f0| 6e 0a 58 68 61 73 20 62 | 65 65 6e 20 75 73 65 64 |n.Xhas b|een used|
|00001400| 20 74 6f 20 6f 70 74 69 | 6d 69 7a 65 20 74 68 65 | to opti|mize the|
|00001410| 20 63 6f 6d 70 69 6c 65 | 72 20 73 6f 20 74 68 61 | compile|r so tha|
|00001420| 74 20 69 74 20 61 63 68 | 69 65 76 65 73 20 61 20 |t it ach|ieves a |
|00001430| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 0a 58 73 70 65 |compilat|ion.Xspe|
|00001440| 65 64 20 6f 66 20 6f 76 | 65 72 20 32 30 30 2e 30 |ed of ov|er 200.0|
|00001450| 30 30 20 6c 69 6e 65 73 | 20 70 65 72 20 6d 69 6e |00 lines| per min|
|00001460| 75 74 65 20 6f 6e 20 6d | 79 20 6d 61 63 68 69 6e |ute on m|y machin|
|00001470| 65 20 28 61 20 64 69 73 | 6b 2d 6c 65 73 73 20 53 |e (a dis|k-less S|
|00001480| 55 4e 0a 58 53 50 41 52 | 43 73 74 61 74 69 6f 6e |UN.XSPAR|Cstation|
|00001490| 20 31 29 2e 20 43 75 72 | 72 65 6e 74 6c 79 20 63 | 1). Cur|rently c|
|000014a0| 6f 64 65 20 69 73 20 6f | 6e 6c 79 20 73 61 76 65 |ode is o|nly save|
|000014b0| 64 20 69 6e 20 73 6f 75 | 72 63 65 20 66 6f 72 6d |d in sou|rce form|
|000014c0| 20 61 6e 64 20 0a 58 61 | 70 70 6c 69 63 61 74 69 | and .Xa|pplicati|
|000014d0| 6f 6e 73 20 61 72 65 20 | 74 79 70 69 63 61 6c 6c |ons are |typicall|
|000014e0| 79 20 22 63 6f 6d 70 69 | 6c 65 2d 61 6e 64 2d 67 |y "compi|le-and-g|
|000014f0| 6f 22 2e 0a 58 0a 58 53 | 6f 20 66 61 72 20 54 49 |o"..X.XS|o far TI|
|00001500| 4c 45 20 46 6f 72 74 68 | 20 68 61 73 20 62 65 65 |LE Forth| has bee|
|00001510| 6e 20 70 6f 72 74 65 64 | 20 61 6e 64 20 74 65 73 |n ported| and tes|
|00001520| 74 65 64 20 61 74 20 6f | 76 65 72 20 66 6f 72 74 |ted at o|ver fort|
|00001530| 79 20 6c 6f 63 61 74 69 | 6f 6e 73 0a 58 77 69 74 |y locati|ons.Xwit|
|00001540| 68 6f 75 74 20 61 6e 79 | 20 6d 61 6a 6f 72 20 70 |hout any| major p|
|00001550| 72 6f 62 6c 65 6d 73 20 | 65 78 63 65 70 74 20 77 |roblems |except w|
|00001560| 68 65 72 65 20 43 20 63 | 6f 6d 70 69 6c 65 72 73 |here C c|ompilers|
|00001570| 20 64 6f 20 6e 6f 74 20 | 61 6c 6c 6f 77 20 73 75 | do not |allow su|
|00001580| 62 2d 0a 58 72 6f 75 74 | 69 6e 65 20 70 6f 69 6e |b-.Xrout|ine poin|
|00001590| 74 65 72 73 20 69 6e 20 | 64 61 74 61 20 73 74 72 |ters in |data str|
|000015a0| 75 63 74 75 72 65 73 2e | 20 0a 58 0a 58 0a 58 32 |uctures.| .X.X.X2|
|000015b0| 2e 09 45 58 54 45 4e 53 | 49 4f 4e 53 0a 58 0a 58 |..EXTENS|IONS.X.X|
|000015c0| 57 68 61 74 20 69 73 20 | 6e 65 77 20 69 6e 20 74 |What is |new in t|
|000015d0| 68 65 20 54 49 4c 45 20 | 66 6f 72 74 68 3f 20 46 |he TILE |forth? F|
|000015e0| 69 72 73 74 20 6f 66 20 | 61 6c 6c 20 74 68 65 20 |irst of |all the |
|000015f0| 6f 76 65 72 61 6c 6c 20 | 6f 72 67 61 6e 69 7a 61 |overall |organiza|
|00001600| 74 69 6f 6e 0a 58 6f 66 | 20 77 6f 72 64 73 2e 20 |tion.Xof| words. |
|00001610| 54 6f 20 69 6e 63 72 65 | 61 73 65 20 70 6f 72 74 |To incre|ase port|
|00001620| 61 62 69 6c 69 74 79 20 | 61 6e 64 20 75 6e 64 65 |ability |and unde|
|00001630| 72 73 74 61 6e 64 69 6e | 67 20 6f 66 20 66 6f 72 |rstandin|g of for|
|00001640| 74 68 20 63 6f 64 65 20 | 6d 6f 64 75 6c 65 73 0a |th code |modules.|
|00001650| 58 76 6f 63 61 62 75 6c | 61 72 69 65 73 20 61 72 |Xvocabul|aries ar|
|00001660| 65 20 75 73 65 64 20 61 | 73 20 74 68 65 20 70 72 |e used a|s the pr|
|00001670| 69 6d 61 72 79 20 70 61 | 63 6b 61 67 69 6e 67 20 |imary pa|ckaging |
|00001680| 6d 65 63 68 61 6e 69 73 | 6d 2e 20 4e 65 77 20 64 |mechanis|m. New d|
|00001690| 61 74 61 20 74 79 70 65 | 73 0a 58 73 75 63 68 20 |ata type|s.Xsuch |
|000016a0| 61 73 20 72 61 74 69 6f | 6e 61 6c 20 61 6e 64 20 |as ratio|nal and |
|000016b0| 66 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 20 6e |floating| point n|
|000016c0| 75 6d 62 65 72 73 20 61 | 72 65 20 69 6d 70 6c 65 |umbers a|re imple|
|000016d0| 6d 65 6e 74 65 64 20 69 | 6e 20 73 65 70 61 72 61 |mented i|n separa|
|000016e0| 74 65 0a 58 76 6f 63 61 | 62 75 6c 61 72 69 65 73 |te.Xvoca|bularies|
|000016f0| 2e 20 54 68 65 20 76 6f | 63 61 62 75 6c 61 72 69 |. The vo|cabulari|
|00001700| 65 73 20 61 63 74 20 61 | 73 20 62 6f 74 68 20 61 |es act a|s both a|
|00001710| 20 70 72 6f 67 72 61 6d | 20 6d 6f 64 75 6c 65 20 | program| module |
|00001720| 61 6e 64 20 61 6e 20 0a | 58 61 62 73 74 72 61 63 |and an .|Xabstrac|
|00001730| 74 20 64 61 74 61 20 74 | 79 70 65 2e 0a 58 0a 58 |t data t|ype..X.X|
|00001740| 32 2e 31 09 45 78 74 65 | 6e 64 61 62 6c 65 20 69 |2.1.Exte|ndable i|
|00001750| 6e 74 65 72 70 72 65 74 | 65 72 0a 58 0a 58 54 6f |nterpret|er.X.XTo|
|00001760| 20 61 6c 6c 6f 77 20 65 | 78 74 65 6e 73 69 6f 6e | allow e|xtension|
|00001770| 20 6f 66 20 74 68 65 20 | 6c 69 74 65 72 61 6c 20 | of the |literal |
|00001780| 73 79 6d 62 6f 6c 20 73 | 65 74 20 28 6e 6f 72 6d |symbol s|et (norm|
|00001790| 61 6c 6c 79 20 6f 6e 6c | 79 20 69 6e 74 65 67 65 |ally onl|y intege|
|000017a0| 72 0a 58 6e 75 6d 62 65 | 72 73 29 20 65 61 63 68 |r.Xnumbe|rs) each|
|000017b0| 20 76 6f 63 61 62 75 6c | 61 72 79 20 69 73 20 61 | vocabul|ary is a|
|000017c0| 6c 6c 6f 77 65 64 20 74 | 6f 20 68 61 76 65 20 61 |llowed t|o have a|
|000017d0| 20 6c 69 74 65 72 61 6c | 20 72 65 63 6f 67 6e 69 | literal| recogni|
|000017e0| 74 69 6f 6e 0a 58 66 75 | 6e 63 74 69 6f 6e 2e 20 |tion.Xfu|nction. |
|000017f0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |This fun|ction is|
|00001800| 20 65 78 65 63 75 74 65 | 64 20 62 79 20 74 68 65 | execute|d by the|
|00001810| 20 69 6e 74 65 72 70 72 | 65 74 65 72 20 77 68 65 | interpr|eter whe|
|00001820| 6e 20 74 68 65 20 73 79 | 6d 62 6f 6c 0a 58 73 65 |n the sy|mbol.Xse|
|00001830| 61 72 63 68 20 68 61 73 | 20 66 61 69 6c 65 64 2e |arch has| failed.|
|00001840| 20 54 68 65 20 6c 69 74 | 65 72 61 6c 20 72 65 63 | The lit|eral rec|
|00001850| 6f 67 6e 69 7a 65 72 20 | 66 6f 72 20 74 68 65 20 |ognizer |for the |
|00001860| 66 6f 72 74 68 20 76 6f | 63 61 62 75 6c 61 72 79 |forth vo|cabulary|
|00001870| 20 69 73 20 0a 58 22 3f | 6e 75 6d 62 65 72 22 2e | is .X"?|number".|
|00001880| 20 54 68 69 73 20 73 69 | 6d 70 6c 65 20 6d 65 63 | This si|mple mec|
|00001890| 68 61 6e 69 73 6d 20 61 | 6c 6c 6f 77 73 20 6d 6f |hanism a|llows mo|
|000018a0| 64 75 6c 65 73 20 73 75 | 63 68 20 61 73 20 66 6f |dules su|ch as fo|
|000018b0| 72 20 72 61 74 69 6f 6e | 61 6c 20 61 6e 64 20 0a |r ration|al and .|
|000018c0| 58 66 6c 6f 61 74 69 6e | 67 20 70 6f 69 6e 74 20 |Xfloatin|g point |
|000018d0| 6e 75 6d 62 65 72 73 2c | 20 61 6e 64 20 69 6e 74 |numbers,| and int|
|000018e0| 65 67 65 72 20 72 61 6e | 67 65 73 20 74 6f 20 65 |eger ran|ges to e|
|000018f0| 78 74 65 6e 64 20 77 69 | 74 68 20 74 68 65 69 72 |xtend wi|th their|
|00001900| 20 6f 77 6e 0a 58 6c 69 | 74 65 72 61 6c 20 66 75 | own.Xli|teral fu|
|00001910| 6e 63 74 69 6f 6e 2e 0a | 58 0a 58 32 2e 32 09 44 |nction..|X.X2.2.D|
|00001920| 61 74 61 20 64 65 73 63 | 72 69 70 74 69 6f 6e 0a |ata desc|ription.|
|00001930| 58 0a 58 41 73 20 74 68 | 65 20 46 6f 72 74 68 2d |X.XAs th|e Forth-|
|00001940| 38 33 20 53 74 61 6e 64 | 61 72 64 20 6c 61 63 6b |83 Stand|ard lack|
|00001950| 20 74 6f 6f 6c 73 20 66 | 6f 72 20 64 65 73 63 72 | tools f|or descr|
|00001960| 69 70 74 69 6f 6e 20 6f | 66 20 64 61 74 61 20 73 |iption o|f data s|
|00001970| 74 72 75 63 74 75 72 65 | 73 20 0a 58 54 49 4c 45 |tructure|s .XTILE|
|00001980| 20 46 6f 72 74 68 20 63 | 6f 6e 74 61 69 6e 73 20 | Forth c|ontains |
|00001990| 61 20 66 61 69 72 6c 79 | 20 6c 61 72 67 65 20 6c |a fairly| large l|
|000019a0| 69 62 72 61 72 79 20 6f | 66 20 74 6f 6f 6c 73 20 |ibrary o|f tools |
|000019b0| 66 6f 72 20 74 68 69 73 | 20 70 75 72 70 6f 73 65 |for this| purpose|
|000019c0| 2e 20 0a 58 54 68 65 73 | 65 20 61 72 65 20 64 65 |. .XThes|e are de|
|000019d0| 73 63 72 69 62 65 64 20 | 6d 6f 72 65 20 69 6e 20 |scribed |more in |
|000019e0| 64 65 74 61 69 6c 20 69 | 6e 20 74 68 65 20 6e 65 |detail i|n the ne|
|000019f0| 78 74 20 73 65 63 74 69 | 6f 6e 2e 0a 58 0a 58 32 |xt secti|on..X.X2|
|00001a00| 2e 33 09 41 72 67 75 6d | 65 6e 74 20 62 69 6e 64 |.3.Argum|ent bind|
|00001a10| 69 6e 67 20 61 6e 64 20 | 6c 6f 63 61 6c 20 76 61 |ing and |local va|
|00001a20| 72 69 61 62 6c 65 73 0a | 58 0a 58 57 68 65 6e 20 |riables.|X.XWhen |
|00001a30| 77 72 69 74 69 6e 67 20 | 61 20 66 6f 72 74 68 20 |writing |a forth |
|00001a40| 66 75 6e 63 74 69 6f 6e | 20 77 69 74 68 20 6d 61 |function| with ma|
|00001a50| 6e 79 20 61 72 67 75 6d | 65 6e 74 73 20 73 74 61 |ny argum|ents sta|
|00001a60| 63 6b 20 73 68 75 66 66 | 6c 69 6e 67 0a 58 62 65 |ck shuff|ling.Xbe|
|00001a70| 63 6f 6d 65 73 20 61 20 | 72 65 61 6c 20 70 61 69 |comes a |real pai|
|00001a80| 6e 2e 20 41 72 67 75 6d | 65 6e 74 20 62 69 6e 64 |n. Argum|ent bind|
|00001a90| 69 6e 67 20 61 6e 64 20 | 6c 6f 63 61 6c 20 76 61 |ing and |local va|
|00001aa0| 72 69 61 62 6c 65 73 20 | 69 73 20 61 20 6e 69 63 |riables |is a nic|
|00001ab0| 65 0a 58 77 61 79 20 6f | 75 74 20 6f 66 20 74 68 |e.Xway o|ut of th|
|00001ac0| 65 73 65 20 73 69 74 75 | 61 74 69 6f 6e 73 2e 20 |ese situ|ations. |
|00001ad0| 41 6c 73 6f 20 66 6f 72 | 20 74 68 65 20 6e 65 77 |Also for| the new|
|00001ae0| 2d 63 6f 6d 65 72 20 74 | 6f 20 46 6f 72 74 68 20 |-comer t|o Forth |
|00001af0| 74 68 69 73 0a 58 67 69 | 76 65 73 20 73 6f 6d 65 |this.Xgi|ves some|
|00001b00| 20 73 75 70 70 6f 72 74 | 20 74 6f 20 74 68 69 73 | support| to this|
|00001b10| 20 61 74 20 66 69 72 73 | 74 20 76 65 72 79 20 63 | at firs|t very c|
|00001b20| 72 79 70 74 69 63 20 6c | 61 6e 67 75 61 67 65 2e |ryptic l|anguage.|
|00001b30| 20 45 76 65 6e 0a 58 74 | 68 65 20 73 74 61 63 6b | Even.Xt|he stack|
|00001b40| 20 66 75 6e 63 74 69 6f | 6e 20 6d 61 79 20 62 65 | functio|n may be|
|00001b50| 20 72 65 77 72 69 74 74 | 65 6e 20 75 73 69 6e 67 | rewritt|en using|
|00001b60| 20 74 68 69 73 20 6d 65 | 63 68 61 6e 69 73 6d 3a | this me|chanism:|
|00001b70| 0a 58 0a 58 09 3a 20 32 | 64 72 6f 70 20 7b 20 61 |.X.X.: 2|drop { a|
|00001b80| 20 62 20 7d 20 3b 0a 58 | 09 3a 20 32 73 77 61 70 | b } ;.X|.: 2swap|
|00001b90| 20 7b 20 61 20 62 20 63 | 20 64 20 7d 20 63 20 64 | { a b c| d } c d|
|00001ba0| 20 61 20 62 20 20 3b 0a | 58 09 3a 20 66 61 63 20 | a b ;.|X.: fac |
|00001bb0| 7b 20 6e 20 7d 20 6e 20 | 30 3e 20 69 66 20 6e 20 |{ n } n |0> if n |
|00001bc0| 31 2d 20 72 65 63 75 72 | 73 65 20 6e 20 2a 20 65 |1- recur|se n * e|
|00001bd0| 6c 73 65 20 31 20 74 68 | 65 6e 20 3b 0a 58 0a 58 |lse 1 th|en ;.X.X|
|00001be0| 54 68 65 20 61 72 67 75 | 6d 65 6e 74 20 66 72 61 |The argu|ment fra|
|00001bf0| 6d 65 20 69 73 20 63 72 | 65 61 74 65 64 20 6f 6e |me is cr|eated on|
|00001c00| 20 74 6f 70 20 6f 66 20 | 74 68 65 20 70 61 72 61 | top of |the para|
|00001c10| 6d 65 74 65 72 20 73 74 | 61 63 6b 20 61 6e 64 20 |meter st|ack and |
|00001c20| 69 73 0a 58 64 69 73 70 | 6f 73 65 64 20 77 68 65 |is.Xdisp|osed whe|
|00001c30| 6e 20 66 75 6e 63 74 69 | 6f 6e 73 20 69 73 20 65 |n functi|ons is e|
|00001c40| 78 69 74 65 64 2e 20 54 | 68 69 73 20 69 6d 70 6c |xited. T|his impl|
|00001c50| 65 6d 65 6e 74 61 74 69 | 6f 6e 73 20 73 74 79 6c |ementati|ons styl|
|00001c60| 65 20 6f 66 0a 58 72 65 | 64 75 63 65 73 20 74 68 |e of.Xre|duces th|
|00001c70| 65 20 63 6f 73 74 20 6f | 66 20 62 69 6e 64 69 6e |e cost o|f bindin|
|00001c80| 67 20 61 73 20 6d 6f 73 | 74 20 66 75 6e 63 74 69 |g as mos|t functi|
|00001c90| 6f 6e 73 20 68 61 76 65 | 20 6d 6f 72 65 20 61 72 |ons have| more ar|
|00001ca0| 67 75 6d 65 6e 74 73 0a | 58 74 68 65 6e 20 72 65 |guments.|Xthen re|
|00001cb0| 74 75 72 6e 20 76 61 6c | 75 65 73 2e 20 41 20 6d |turn val|ues. A m|
|00001cc0| 69 6e 69 6d 75 6d 20 6e | 75 6d 62 65 72 20 6f 66 |inimum n|umber of|
|00001cd0| 20 64 61 74 61 20 65 6c | 65 6d 65 6e 74 73 20 68 | data el|ements h|
|00001ce0| 61 76 65 20 74 6f 20 62 | 65 0a 58 6d 6f 76 65 20 |ave to b|e.Xmove |
|00001cf0| 74 6f 20 63 72 65 61 74 | 65 20 61 6e 64 20 6d 61 |to creat|e and ma|
|00001d00| 6e 61 67 65 20 74 68 65 | 20 61 72 67 75 6d 65 6e |nage the| argumen|
|00001d10| 74 20 66 72 61 6d 65 2e | 0a 58 0a 58 32 2e 34 20 |t frame.|.X.X2.4 |
|00001d20| 09 45 78 63 65 70 74 69 | 6f 6e 20 68 61 6e 64 6c |.Excepti|on handl|
|00001d30| 69 6e 67 0a 58 0a 58 41 | 6e 6f 74 68 65 72 20 65 |ing.X.XA|nother e|
|00001d40| 78 74 65 6e 73 69 6f 6e | 20 69 6e 20 54 49 4c 45 |xtension| in TILE|
|00001d50| 20 46 6f 72 74 68 20 69 | 73 20 65 78 63 65 70 74 | Forth i|s except|
|00001d60| 69 6f 6e 20 68 61 6e 64 | 6c 69 6e 67 20 77 69 74 |ion hand|ling wit|
|00001d70| 68 20 6d 75 6c 74 69 70 | 6c 65 0a 58 65 78 63 65 |h multip|le.Xexce|
|00001d80| 70 74 69 6f 6e 20 68 61 | 6e 64 6c 69 6e 67 20 63 |ption ha|ndling c|
|00001d90| 6f 64 65 20 62 6c 6f 63 | 6b 2e 20 54 68 65 20 73 |ode bloc|k. The s|
|00001da0| 79 6e 74 61 63 74 69 63 | 61 6c 20 73 74 72 75 63 |yntactic|al struc|
|00001db0| 74 75 72 65 20 69 73 20 | 76 65 72 79 0a 58 63 6c |ture is |very.Xcl|
|00001dc0| 6f 73 65 20 74 6f 20 74 | 68 61 74 20 6f 66 20 41 |ose to t|hat of A|
|00001dd0| 64 61 2c 20 69 2e 65 2e | 2c 20 61 6e 79 20 63 6f |da, i.e.|, any co|
|00001de0| 6c 6f 6e 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6d |lon defi|nition m|
|00001df0| 61 79 20 63 6f 6e 74 61 | 69 6e 20 61 6e 20 65 72 |ay conta|in an er|
|00001e00| 72 6f 72 0a 58 68 61 6e | 64 6c 69 6e 67 20 73 65 |ror.Xhan|dling se|
|00001e10| 63 74 69 6f 6e 2e 20 53 | 68 6f 75 6c 64 20 61 6e |ction. S|hould an|
|00001e20| 20 65 72 72 6f 72 20 6f | 63 63 75 72 20 64 75 72 | error o|ccur dur|
|00001e30| 69 6e 67 20 74 68 65 20 | 65 78 65 63 75 74 69 6f |ing the |executio|
|00001e40| 6e 20 6f 66 20 74 68 65 | 0a 58 66 75 6e 63 74 69 |n of the|.Xfuncti|
|00001e50| 6f 6e 20 74 68 65 20 73 | 74 61 63 6b 20 73 74 61 |on the s|tack sta|
|00001e60| 74 75 73 20 69 73 20 72 | 65 73 74 6f 72 65 20 74 |tus is r|estore t|
|00001e70| 6f 20 74 68 65 20 73 69 | 74 75 61 74 69 6f 6e 20 |o the si|tuation |
|00001e80| 61 74 20 74 68 65 20 63 | 61 6c 6c 0a 58 6f 66 20 |at the c|all.Xof |
|00001e90| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 61 6e 64 |the func|tion and|
|00001ea0| 20 74 68 65 20 6c 61 73 | 74 65 73 74 20 65 78 63 | the las|test exc|
|00001eb0| 65 70 74 69 6f 6e 20 62 | 6c 6f 63 6b 20 69 73 20 |eption b|lock is |
|00001ec0| 65 78 65 63 75 74 65 64 | 20 77 69 74 68 20 74 68 |executed| with th|
|00001ed0| 65 20 0a 58 73 69 67 6e | 61 6c 20 6f 72 20 65 78 |e .Xsign|al or ex|
|00001ee0| 63 65 70 74 69 6f 6e 20 | 61 73 20 61 20 70 61 72 |ception |as a par|
|00001ef0| 61 6d 65 74 65 72 3b 0a | 58 0a 58 09 65 78 63 65 |ameter;.|X.X.exce|
|00001f00| 70 74 69 6f 6e 20 7a 65 | 72 6f 2d 64 69 76 69 64 |ption ze|ro-divid|
|00001f10| 65 20 28 20 2d 2d 20 65 | 78 63 65 70 74 69 6f 6e |e ( -- e|xception|
|00001f20| 29 0a 58 0a 58 09 3a 20 | 64 69 76 20 28 20 78 20 |).X.X.: |div ( x |
|00001f30| 79 20 2d 2d 20 7a 29 0a | 58 20 20 20 20 20 20 20 |y -- z).|X |
|00001f40| 20 20 20 2f 0a 58 09 65 | 78 63 65 70 74 69 6f 6e | /.X.e|xception|
|00001f50| 3e 20 28 20 78 20 79 20 | 73 69 67 6e 61 6c 20 2d |> ( x y |signal -|
|00001f60| 2d 20 29 0a 58 09 20 20 | 64 72 6f 70 20 7a 65 72 |- ).X. |drop zer|
|00001f70| 6f 2d 64 69 76 69 64 65 | 20 72 61 69 73 65 0a 58 |o-divide| raise.X|
|00001f80| 20 20 20 20 20 20 20 20 | 3b 0a 58 0a 58 45 72 72 | |;.X.XErr|
|00001f90| 6f 72 20 73 69 74 75 61 | 74 69 6f 6e 73 20 6d 61 |or situa|tions ma|
|00001fa0| 79 20 62 65 20 69 6e 64 | 69 63 61 74 65 64 20 75 |y be ind|icated u|
|00001fb0| 73 69 6e 67 20 61 6e 20 | 65 78 63 65 70 74 69 6f |sing an |exceptio|
|00001fc0| 6e 20 72 61 69 73 65 20 | 66 75 6e 63 74 69 6f 6e |n raise |function|
|00001fd0| 2e 20 0a 58 4c 6f 77 20 | 6c 65 76 65 6c 20 65 72 |. .XLow |level er|
|00001fe0| 72 6f 72 73 2c 20 73 75 | 63 68 20 61 73 20 7a 65 |rors, su|ch as ze|
|00001ff0| 72 6f 20 64 69 76 69 73 | 69 6f 6e 2c 20 61 72 65 |ro divis|ion, are|
|00002000| 20 74 72 61 6e 73 66 6f | 72 6d 65 64 20 74 6f 20 | transfo|rmed to |
|00002010| 65 78 63 65 70 74 69 6f | 6e 73 20 0a 58 69 6e 20 |exceptio|ns .Xin |
|00002020| 54 49 4c 45 20 46 6f 72 | 74 68 2e 0a 58 0a 58 32 |TILE For|th..X.X2|
|00002030| 2e 35 09 45 6e 74 72 79 | 20 76 69 73 69 62 69 6c |.5.Entry| visibil|
|00002040| 69 74 79 20 61 6e 64 20 | 66 6f 72 77 61 72 64 20 |ity and |forward |
|00002050| 64 65 63 6c 61 72 61 74 | 69 6f 6e 0a 58 0a 58 4c |declarat|ion.X.XL|
|00002060| 61 73 74 2c 20 73 6f 6d | 65 20 6f 66 20 74 68 65 |ast, som|e of the|
|00002070| 20 6c 65 73 73 20 73 69 | 67 6e 69 66 69 63 61 6e | less si|gnifican|
|00002080| 74 20 65 78 74 65 6e 73 | 69 6f 6e 20 61 72 65 20 |t extens|ion are |
|00002090| 66 6f 72 77 61 72 64 20 | 64 65 63 6c 61 72 61 74 |forward |declarat|
|000020a0| 69 6f 6e 0a 58 6f 66 20 | 65 6e 74 72 69 65 73 2c |ion.Xof |entries,|
|000020b0| 20 68 69 64 64 65 6e 20 | 6f 72 20 70 72 69 76 61 | hidden |or priva|
|000020c0| 74 65 20 65 6e 74 72 69 | 65 73 2c 20 61 6e 64 20 |te entri|es, and |
|000020d0| 65 78 74 72 61 20 65 6e | 74 72 79 20 6d 6f 64 65 |extra en|try mode|
|000020e0| 73 2e 20 46 6f 72 77 61 | 72 64 0a 58 64 65 63 6c |s. Forwa|rd.Xdecl|
|000020f0| 61 72 61 74 69 6f 6e 20 | 6f 66 20 65 6e 74 72 69 |aration |of entri|
|00002100| 65 73 20 61 72 65 20 61 | 75 74 6f 6d 61 74 69 63 |es are a|utomatic|
|00002110| 61 6c 6c 79 20 62 6f 75 | 6e 64 20 77 68 65 6e 20 |ally bou|nd when |
|00002120| 74 68 65 20 65 6e 74 72 | 79 20 69 73 20 6c 61 74 |the entr|y is lat|
|00002130| 65 72 0a 58 67 69 76 65 | 6e 20 61 20 64 65 66 69 |er.Xgive|n a defi|
|00002140| 6e 69 74 69 6f 6e 2e 20 | 53 68 6f 75 6c 64 20 61 |nition. |Should a|
|00002150| 20 62 69 6e 64 69 6e 67 | 20 6e 6f 74 20 65 78 69 | binding| not exi|
|00002160| 73 74 20 61 74 20 72 75 | 6e 2d 74 69 6d 65 20 61 |st at ru|n-time a|
|00002170| 6e 20 65 72 72 6f 72 0a | 58 6d 65 73 73 61 67 65 |n error.|Xmessage|
|00002180| 20 69 73 20 67 69 76 65 | 6e 20 61 6e 64 20 74 68 | is give|n and th|
|00002190| 65 20 63 6f 6d 70 75 74 | 61 74 69 6f 6e 20 69 73 |e comput|ation is|
|000021a0| 20 61 62 6f 72 74 65 64 | 2e 0a 58 0a 58 09 66 6f | aborted|..X.X.fo|
|000021b0| 72 77 61 72 64 20 65 76 | 61 6c 20 28 20 2e 2e 2e |rward ev|al ( ...|
|000021c0| 20 29 0a 58 0a 58 09 3a | 20 61 70 70 6c 79 20 28 | ).X.X.:| apply (|
|000021d0| 20 2e 2e 2e 20 29 20 2e | 2e 2e 20 65 76 61 6c 20 | ... ) .|.. eval |
|000021e0| 2e 2e 2e 20 3b 0a 58 09 | 3a 20 65 76 61 6c 20 28 |... ;.X.|: eval (|
|000021f0| 20 2e 2e 2e 20 29 20 2e | 2e 2e 20 61 70 70 6c 79 | ... ) .|.. apply|
|00002200| 20 2e 2e 2e 20 3b 0a 58 | 0a 58 54 68 72 65 65 20 | ... ;.X|.XThree |
|00002210| 6e 65 77 20 65 6e 74 72 | 79 20 6d 6f 64 65 73 20 |new entr|y modes |
|00002220| 68 61 76 65 20 62 65 65 | 6e 20 61 64 64 65 64 20 |have bee|n added |
|00002230| 74 6f 20 74 68 65 20 63 | 6c 61 73 73 69 63 61 6c |to the c|lassical|
|00002240| 20 66 6f 72 74 68 20 6d | 6f 64 65 6c 20 0a 58 28 | forth m|odel .X(|
|00002250| 69 6d 6d 65 64 69 61 74 | 65 29 2e 20 54 68 65 73 |immediat|e). Thes|
|00002260| 65 20 61 6c 6c 6f 77 20 | 68 69 64 69 6e 67 20 6f |e allow |hiding o|
|00002270| 66 20 65 6e 74 72 69 65 | 73 20 69 6e 20 64 69 66 |f entrie|s in dif|
|00002280| 66 65 72 65 6e 74 20 73 | 69 74 75 61 74 69 6f 6e |ferent s|ituation|
|00002290| 73 2e 0a 58 54 68 65 20 | 66 69 72 73 74 20 74 77 |s..XThe |first tw|
|000022a0| 6f 20 6d 61 72 6b 73 20 | 74 68 65 20 6c 61 73 74 |o marks |the last|
|000022b0| 20 64 65 66 69 6e 65 64 | 20 77 6f 72 64 27 73 20 | defined| word's |
|000022c0| 76 69 73 69 62 69 6c 69 | 74 79 20 61 63 63 6f 72 |visibili|ty accor|
|000022d0| 64 69 6e 67 20 74 6f 0a | 58 61 6e 20 69 6e 74 65 |ding to.|Xan inte|
|000022e0| 72 70 72 65 74 65 72 20 | 73 74 61 74 65 2e 20 54 |rpreter |state. T|
|000022f0| 68 65 73 65 20 74 77 6f | 20 6d 6f 64 69 66 69 65 |hese two| modifie|
|00002300| 72 73 20 61 72 65 20 63 | 61 6c 6c 65 64 20 22 63 |rs are c|alled "c|
|00002310| 6f 6d 70 69 6c 61 74 69 | 6f 6e 22 20 0a 58 61 6e |ompilati|on" .Xan|
|00002320| 64 20 22 65 78 65 63 75 | 74 69 6f 6e 22 20 61 6e |d "execu|tion" an|
|00002330| 64 20 61 72 65 20 75 73 | 65 64 20 61 73 20 22 69 |d are us|ed as "i|
|00002340| 6d 6d 65 64 69 61 74 65 | 22 2e 20 41 20 77 6f 72 |mmediate|". A wor|
|00002350| 64 20 6c 69 6b 65 20 22 | 69 66 22 20 69 73 0a 58 |d like "|if" is.X|
|00002360| 22 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 20 69 6d 6d |"compila|tion imm|
|00002370| 65 64 69 61 74 65 22 20 | 6d 65 61 6e 69 6e 67 20 |ediate" |meaning |
|00002380| 69 74 20 69 73 20 76 69 | 73 69 62 6c 65 20 77 68 |it is vi|sible wh|
|00002390| 65 6e 20 63 6f 6d 70 69 | 6c 69 6e 67 20 61 6e 64 |en compi|ling and|
|000023a0| 20 0a 58 74 68 65 6e 20 | 61 6c 77 61 79 73 20 65 | .Xthen |always e|
|000023b0| 78 65 63 75 74 65 64 2e | 20 0a 58 0a 58 09 63 6f |xecuted.| .X.X.co|
|000023c0| 6d 70 69 6c 65 72 20 66 | 6f 72 74 68 20 64 65 66 |mpiler f|orth def|
|000023d0| 69 6e 69 74 69 6f 6e 73 | 0a 58 0a 58 09 3a 20 69 |initions|.X.X.: i|
|000023e0| 66 20 28 20 2d 2d 20 29 | 20 63 6f 6d 70 69 6c 65 |f ( -- )| compile|
|000023f0| 20 28 3f 62 72 61 6e 63 | 68 29 20 3e 6d 61 72 6b | (?branc|h) >mark|
|00002400| 20 3b 20 63 6f 6d 70 69 | 6c 61 74 69 6f 6e 20 69 | ; compi|lation i|
|00002410| 6d 6d 65 64 69 61 74 65 | 0a 58 0a 58 54 68 65 20 |mmediate|.X.XThe |
|00002420| 22 70 72 69 76 61 74 65 | 22 20 6d 6f 64 69 66 69 |"private|" modifi|
|00002430| 65 72 20 69 73 20 73 6f | 6d 65 77 68 61 74 20 64 |er is so|mewhat d|
|00002440| 69 66 66 65 72 65 6e 74 | 2e 20 49 74 20 63 6f 6e |ifferent|. It con|
|00002450| 63 65 72 6e 73 20 74 68 | 65 0a 58 76 69 73 69 62 |cerns th|e.Xvisib|
|00002460| 69 6c 69 74 79 20 61 63 | 72 6f 73 73 20 76 6f 63 |ility ac|ross voc|
|00002470| 61 62 75 6c 61 72 69 65 | 73 20 28 6d 6f 64 75 6c |abularie|s (modul|
|00002480| 65 73 20 61 6e 64 20 74 | 79 70 65 73 29 2e 20 49 |es and t|ypes). I|
|00002490| 66 20 61 20 77 6f 72 64 | 20 69 73 0a 58 6d 61 72 |f a word| is.Xmar|
|000024a0| 6b 65 64 20 61 73 20 22 | 70 72 69 76 61 74 65 22 |ked as "|private"|
|000024b0| 20 74 68 65 20 77 6f 72 | 64 20 69 73 20 6f 6e 6c | the wor|d is onl|
|000024c0| 79 20 76 69 73 69 62 6c | 65 20 77 68 65 6e 20 74 |y visibl|e when t|
|000024d0| 68 65 20 76 6f 63 61 62 | 75 6c 61 72 79 20 69 6e |he vocab|ulary in|
|000024e0| 20 0a 58 77 68 69 63 68 | 20 69 74 20 69 73 20 64 | .Xwhich| it is d|
|000024f0| 65 66 69 6e 65 64 20 69 | 6e 20 69 73 20 22 63 75 |efined i|n is "cu|
|00002500| 72 72 65 6e 74 22 2e 20 | 54 68 69 73 20 69 73 20 |rrent". |This is |
|00002510| 76 65 72 79 20 63 6c 6f | 73 65 20 74 6f 20 74 68 |very clo|se to th|
|00002520| 65 20 63 6f 6e 63 65 70 | 74 0a 58 6f 66 20 68 69 |e concep|t.Xof hi|
|00002530| 64 64 65 6e 20 69 6e 20 | 6d 6f 64 75 6c 65 73 20 |dden in |modules |
|00002540| 61 6e 64 20 70 61 63 6b | 61 67 65 73 20 69 6e 20 |and pack|ages in |
|00002550| 4d 6f 64 75 6c 61 2d 32 | 20 61 6e 64 20 41 64 61 |Modula-2| and Ada|
|00002560| 2e 0a 58 0a 58 09 34 20 | 66 69 65 6c 64 20 2b 6e |..X.X.4 |field +n|
|00002570| 61 6d 65 20 28 20 65 6e | 74 72 79 20 2d 2d 20 70 |ame ( en|try -- p|
|00002580| 74 72 29 20 70 72 69 76 | 61 74 65 0a 58 0a 58 54 |tr) priv|ate.X.XT|
|00002590| 68 65 20 61 62 6f 76 65 | 20 64 65 66 69 6e 69 74 |he above| definit|
|000025a0| 69 6f 6e 20 77 69 6c 6c | 20 6f 6e 6c 79 20 62 65 |ion will| only be|
|000025b0| 20 76 69 73 69 62 6c 65 | 20 69 6e 20 74 68 65 20 | visible| in the |
|000025c0| 76 6f 63 61 62 75 6c 61 | 72 79 20 69 74 20 77 61 |vocabula|ry it wa|
|000025d0| 73 20 0a 58 64 65 66 69 | 6e 65 64 2e 20 54 68 65 |s .Xdefi|ned. The|
|000025e0| 20 22 70 72 69 76 61 74 | 65 22 20 6d 6f 64 69 66 | "privat|e" modif|
|000025f0| 69 65 72 20 69 73 20 75 | 73 65 66 75 6c 20 74 6f |ier is u|seful to|
|00002600| 20 68 65 6c 70 20 69 73 | 6f 6c 61 74 65 20 69 6d | help is|olate im|
|00002610| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 0a 58 64 65 |plementa|tion.Xde|
|00002620| 70 65 6e 64 65 6e 63 69 | 65 73 20 61 6e 64 20 72 |pendenci|es and r|
|00002630| 65 64 75 63 65 20 74 68 | 65 20 6e 61 6d 65 20 73 |educe th|e name s|
|00002640| 70 61 63 65 20 77 68 69 | 63 68 20 61 6c 73 6f 20 |pace whi|ch also |
|00002650| 69 6e 63 72 65 61 73 65 | 73 20 63 6f 6d 70 69 6c |increase|s compil|
|00002660| 61 74 69 6f 6e 0a 58 73 | 70 65 65 64 2e 0a 58 0a |ation.Xs|peed..X.|
|00002670| 58 0a 58 33 2e 20 09 53 | 4f 55 52 43 45 20 4c 49 |X.X3. .S|OURCE LI|
|00002680| 42 52 41 52 59 0a 58 0a | 58 54 68 65 20 54 49 4c |BRARY.X.|XThe TIL|
|00002690| 45 20 46 6f 72 74 68 20 | 70 72 6f 67 72 61 6d 6d |E Forth |programm|
|000026a0| 69 6e 67 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |ing envi|ronment |
|000026b0| 63 6f 6e 74 61 69 6e 73 | 20 61 20 6e 75 6d 62 65 |contains| a numbe|
|000026c0| 72 20 6f 66 20 74 6f 6f | 6c 73 20 74 6f 20 0a 58 |r of too|ls to .X|
|000026d0| 6d 61 6b 65 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |make pro|gramming|
|000026e0| 20 69 6e 20 46 6f 72 74 | 68 20 61 20 62 69 74 20 | in Fort|h a bit |
|000026f0| 65 61 73 69 65 72 2e 20 | 49 66 20 79 6f 75 20 68 |easier. |If you h|
|00002700| 61 76 65 20 47 4e 55 20 | 45 6d 61 63 73 2c 20 54 |ave GNU |Emacs, T|
|00002710| 49 4c 45 20 0a 58 46 6f | 72 74 68 20 6d 61 79 20 |ILE .XFo|rth may |
|00002720| 72 75 6e 20 69 6e 20 61 | 20 73 70 65 63 69 61 6c |run in a| special|
|00002730| 69 7a 65 64 20 66 6f 72 | 74 68 2d 6d 6f 64 65 2e |ized for|th-mode.|
|00002740| 20 54 68 69 73 20 6d 6f | 64 65 20 73 75 70 70 6f | This mo|de suppo|
|00002750| 72 74 73 20 61 75 74 6f | 6d 61 74 69 63 20 0a 58 |rts auto|matic .X|
|00002760| 70 72 6f 67 72 61 6d 20 | 69 6e 64 65 6e 74 61 74 |program |indentat|
|00002770| 69 6f 6e 20 28 70 72 65 | 74 74 79 20 70 72 69 6e |ion (pre|tty prin|
|00002780| 74 69 6e 67 29 2c 20 64 | 6f 63 75 6d 65 6e 74 61 |ting), d|ocumenta|
|00002790| 74 69 6f 6e 20 73 65 61 | 72 63 68 2c 20 61 6e 64 |tion sea|rch, and|
|000027a0| 20 0a 58 69 6e 74 65 72 | 61 63 74 69 76 65 20 61 | .Xinter|active a|
|000027b0| 6e 64 20 69 6e 63 72 65 | 6d 65 6e 74 61 6c 20 70 |nd incre|mental p|
|000027c0| 72 6f 67 72 61 6d 20 64 | 65 76 65 6c 6f 70 6d 65 |rogram d|evelopme|
|000027d0| 6e 74 2c 20 6f 72 20 22 | 65 64 69 74 2d 63 6f 6d |nt, or "|edit-com|
|000027e0| 70 69 6c 65 2d 74 65 73 | 74 22 20 0a 58 73 74 79 |pile-tes|t" .Xsty|
|000027f0| 6c 65 20 6f 66 20 70 72 | 6f 67 72 61 6d 20 64 65 |le of pr|ogram de|
|00002800| 76 65 6c 6f 70 6d 65 6e | 74 2e 0a 58 0a 58 54 6f |velopmen|t..X.XTo|
|00002810| 20 61 69 64 20 70 72 6f | 67 72 61 6d 20 64 65 76 | aid pro|gram dev|
|00002820| 65 6c 6f 70 6d 65 6e 74 | 20 74 68 65 72 65 20 69 |elopment| there i|
|00002830| 73 20 61 6c 73 6f 20 61 | 20 73 6f 75 72 63 65 20 |s also a| source |
|00002840| 63 6f 64 65 20 6c 69 62 | 72 61 72 79 20 77 69 74 |code lib|rary wit|
|00002850| 68 0a 58 6d 61 6e 75 61 | 6c 20 70 61 67 65 73 2c |h.Xmanua|l pages,|
|00002860| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 28 | documen|tation (|
|00002870| 67 6c 6f 73 73 61 72 79 | 29 2c 20 61 6e 64 20 74 |glossary|), and t|
|00002880| 65 73 74 20 61 6e 64 20 | 65 78 61 6d 70 6c 65 20 |est and |example |
|00002890| 63 6f 64 65 2e 0a 58 4d | 6f 73 74 20 6f 66 20 74 |code..XM|ost of t|
|000028a0| 68 65 20 73 6f 75 72 63 | 65 20 63 6f 64 65 20 61 |he sourc|e code a|
|000028b0| 72 65 20 64 61 74 61 20 | 6d 6f 64 65 6c 69 6e 67 |re data |modeling|
|000028c0| 20 74 6f 6f 6c 73 2e 20 | 49 6e 20 70 72 69 6e 63 | tools. |In princ|
|000028d0| 69 70 6c 65 2c 20 66 72 | 6f 6d 20 0a 58 62 69 74 |iple, fr|om .Xbit|
|000028e0| 20 66 69 65 6c 64 20 64 | 65 66 69 6e 69 74 69 6f | field d|efinitio|
|000028f0| 6e 20 74 6f 20 6f 62 6a | 65 63 74 20 6f 72 69 65 |n to obj|ect orie|
|00002900| 6e 74 65 64 20 73 74 72 | 75 63 74 75 72 65 73 20 |nted str|uctures |
|00002910| 61 72 65 20 61 76 61 69 | 6c 61 62 6c 65 2e 20 54 |are avai|lable. T|
|00002920| 68 65 20 0a 58 73 6f 75 | 72 63 65 20 63 6f 64 65 |he .Xsou|rce code|
|00002930| 20 6c 69 62 72 61 72 79 | 20 61 6c 73 6f 20 63 6f | library| also co|
|00002940| 6e 74 61 69 6e 73 20 64 | 65 62 75 67 67 69 6e 67 |ntains d|ebugging|
|00002950| 20 74 6f 6f 6c 73 20 66 | 6f 72 20 74 72 61 63 69 | tools f|or traci|
|00002960| 6e 67 2c 20 62 72 65 61 | 6b 2d 0a 58 70 6f 69 6e |ng, brea|k-.Xpoin|
|00002970| 74 27 69 6e 67 20 61 6e | 64 20 70 72 6f 66 69 6c |t'ing an|d profil|
|00002980| 69 6e 67 20 6f 66 20 70 | 72 6f 67 72 61 6d 73 2e |ing of p|rograms.|
|00002990| 20 0a 58 0a 58 54 68 65 | 20 66 69 72 73 74 20 6c | .X.XThe| first l|
|000029a0| 65 76 65 6c 20 6f 66 20 | 64 61 74 61 20 6d 6f 64 |evel of |data mod|
|000029b0| 65 6c 69 6e 67 20 74 6f | 6f 6c 73 20 61 72 65 20 |eling to|ols are |
|000029c0| 6d 6f 64 75 6c 65 73 20 | 66 6f 72 20 64 65 73 63 |modules |for desc|
|000029d0| 72 69 62 69 6e 67 3b 0a | 58 31 29 20 62 69 74 20 |ribing;.|X1) bit |
|000029e0| 66 69 65 6c 64 73 2c 20 | 32 29 20 73 74 72 75 63 |fields, |2) struc|
|000029f0| 74 75 72 65 73 20 28 72 | 65 63 6f 72 64 73 29 2c |tures (r|ecords),|
|00002a00| 20 33 29 20 61 67 67 72 | 65 67 61 74 65 73 20 6f | 3) aggr|egates o|
|00002a10| 66 20 64 61 74 61 20 0a | 58 28 76 65 63 74 6f 72 |f data .|X(vector|
|00002a20| 73 2c 20 73 74 61 63 6b | 73 2c 20 62 75 66 66 65 |s, stack|s, buffe|
|00002a30| 72 73 2c 20 65 74 63 29 | 2c 20 61 6e 64 20 34 29 |rs, etc)|, and 4)|
|00002a40| 20 68 69 67 68 20 6c 65 | 76 65 6c 20 64 61 74 61 | high le|vel data|
|00002a50| 20 6f 62 6a 65 63 74 73 | 0a 58 28 6c 69 73 74 73 | objects|.X(lists|
|00002a60| 2c 20 73 65 74 73 2c 20 | 65 74 63 29 2e 0a 58 0a |, sets, |etc)..X.|
|00002a70| 58 54 68 65 20 6e 65 78 | 74 20 6c 65 76 65 6c 20 |XThe nex|t level |
|00002a80| 6f 66 20 74 6f 6f 6c 73 | 20 61 72 65 20 73 6f 6d |of tools| are som|
|00002a90| 65 20 74 6f 6f 6c 73 20 | 66 6f 72 20 68 69 67 68 |e tools |for high|
|00002aa0| 20 6c 65 76 65 6c 20 73 | 79 6e 74 61 63 74 69 63 | level s|yntactic|
|00002ab0| 20 73 75 67 61 72 0a 58 | 66 6f 72 20 6d 75 6c 74 | sugar.X|for mult|
|00002ac0| 69 2d 74 61 73 6b 69 6e | 67 20 63 6f 6e 63 65 70 |i-taskin|g concep|
|00002ad0| 74 73 20 28 73 65 6d 61 | 70 68 6f 72 65 73 2c 20 |ts (sema|phores, |
|00002ae0| 63 68 61 6e 6e 65 6c 73 | 2c 20 65 74 63 29 2c 20 |channels|, etc), |
|00002af0| 66 69 6e 69 74 65 20 73 | 74 61 74 65 0a 58 6d 61 |finite s|tate.Xma|
|00002b00| 63 68 69 6e 65 73 20 28 | 46 53 4d 29 2c 20 61 6e |chines (|FSM), an|
|00002b10| 6f 6e 79 6d 6f 75 73 20 | 63 6f 64 65 20 62 6c 6f |onymous |code blo|
|00002b20| 63 6b 20 28 62 6c 6f 63 | 6b 73 29 2c 20 61 20 67 |ck (bloc|ks), a g|
|00002b30| 65 6e 65 72 61 6c 20 74 | 6f 70 20 64 6f 77 6e 20 |eneral t|op down |
|00002b40| 70 61 72 73 65 72 0a 58 | 77 69 74 68 20 62 61 63 |parser.X|with bac|
|00002b50| 6b 74 72 61 63 6b 20 61 | 6e 64 20 73 65 6d 61 6e |ktrack a|nd seman|
|00002b60| 74 69 63 20 62 69 6e 64 | 69 6e 67 2c 20 61 6e 64 |tic bind|ing, and|
|00002b70| 20 61 20 73 69 6d 75 6c | 61 74 69 6f 6e 20 70 61 | a simul|ation pa|
|00002b80| 63 6b 61 67 65 2e 20 54 | 68 65 20 73 6f 75 72 63 |ckage. T|he sourc|
|00002b90| 65 0a 58 6c 69 62 72 61 | 72 79 20 77 69 6c 6c 20 |e.Xlibra|ry will |
|00002ba0| 62 65 20 65 78 74 65 6e | 64 65 64 20 64 75 72 69 |be exten|ded duri|
|00002bb0| 6e 67 20 74 68 65 20 63 | 6f 6d 69 6e 67 20 72 65 |ng the c|oming re|
|00002bc0| 6c 65 61 73 65 73 2e 0a | 58 0a 58 0a 58 34 2e 20 |leases..|X.X.X4. |
|00002bd0| 09 50 52 4f 47 52 41 4d | 4d 49 4e 47 20 53 54 59 |.PROGRAM|MING STY|
|00002be0| 4c 45 0a 58 0a 58 41 20 | 73 6f 75 72 63 65 20 63 |LE.X.XA |source c|
|00002bf0| 6f 64 65 20 6d 6f 64 75 | 6c 65 20 68 61 73 2c 20 |ode modu|le has, |
|00002c00| 69 6e 20 67 65 6e 65 72 | 61 6c 2c 20 74 68 65 20 |in gener|al, the |
|00002c10| 66 6f 6c 6c 6f 77 69 6e | 67 20 73 74 72 75 63 74 |followin|g struct|
|00002c20| 75 72 65 3b 20 74 68 65 | 20 0a 58 66 69 72 73 74 |ure; the| .Xfirst|
|00002c30| 20 73 65 63 74 69 6f 6e | 20 69 6e 63 6c 75 64 65 | section| include|
|00002c40| 73 20 61 6e 79 20 6d 6f | 64 75 6c 65 73 20 6e 65 |s any mo|dules ne|
|00002c50| 65 64 65 64 20 28 74 68 | 65 73 65 20 61 72 65 20 |eded (th|ese are |
|00002c60| 6f 6e 6c 79 20 6c 6f 61 | 64 65 64 20 6f 6e 63 65 |only loa|ded once|
|00002c70| 29 2e 0a 58 53 65 63 6f | 6e 64 20 66 6f 6c 6c 6f |)..XSeco|nd follo|
|00002c80| 77 73 20 67 6c 6f 62 61 | 6c 20 64 65 66 69 6e 69 |ws globa|l defini|
|00002c90| 74 69 6f 6e 73 20 66 6f | 72 20 74 68 65 20 6d 6f |tions fo|r the mo|
|00002ca0| 64 75 6c 65 2e 20 4e 6f | 72 6d 61 6c 6c 79 20 74 |dule. No|rmally t|
|00002cb0| 68 69 73 20 69 73 20 0a | 58 61 20 76 6f 63 61 62 |his is .|Xa vocab|
|00002cc0| 75 6c 61 72 79 20 66 6f | 72 20 74 68 65 20 6d 6f |ulary fo|r the mo|
|00002cd0| 64 75 6c 65 2e 20 54 68 | 69 72 64 20 63 6f 6d 65 |dule. Th|ird come|
|00002ce0| 73 20 74 68 65 20 73 65 | 61 72 63 68 20 63 68 61 |s the se|arch cha|
|00002cf0| 69 6e 20 74 6f 20 62 65 | 20 75 73 65 64 0a 58 74 |in to be| used.Xt|
|00002d00| 68 72 6f 75 67 68 6f 75 | 74 20 74 68 65 20 6d 6f |hroughou|t the mo|
|00002d10| 64 75 6c 65 2e 20 49 74 | 20 69 73 20 69 6d 70 6f |dule. It| is impo|
|00002d20| 72 74 61 6e 74 20 6e 6f | 74 20 74 6f 20 63 68 61 |rtant no|t to cha|
|00002d30| 6e 67 65 20 74 68 65 20 | 73 65 61 72 63 68 20 6f |nge the |search o|
|00002d40| 72 64 65 72 0a 58 61 73 | 20 31 29 20 69 74 20 62 |rder.Xas| 1) it b|
|00002d50| 65 63 6f 6d 65 73 20 64 | 69 66 66 69 63 75 6c 74 |ecomes d|ifficult|
|00002d60| 20 66 6f 72 20 61 20 72 | 65 61 64 65 72 20 74 6f | for a r|eader to|
|00002d70| 20 75 6e 64 65 72 73 74 | 61 6e 64 20 74 68 65 20 | underst|and the |
|00002d80| 63 6f 64 65 2c 20 32 29 | 0a 58 61 6e 79 20 63 68 |code, 2)|.Xany ch|
|00002d90| 61 6e 67 65 20 69 6e 20 | 74 68 65 20 73 65 61 72 |ange in |the sear|
|00002da0| 63 68 20 63 68 61 69 6e | 20 66 6c 75 73 68 65 73 |ch chain| flushes|
|00002db0| 20 74 68 65 20 69 6e 74 | 65 72 6e 61 6c 20 6c 6f | the int|ernal lo|
|00002dc0| 6f 6b 75 70 20 63 61 63 | 68 65 0a 58 69 6e 20 54 |okup cac|he.Xin T|
|00002dd0| 49 4c 45 20 46 6f 72 74 | 68 20 61 6e 64 20 72 65 |ILE Fort|h and re|
|00002de0| 64 75 63 65 73 20 63 6f | 6d 70 69 6c 61 74 69 6f |duces co|mpilatio|
|00002df0| 6e 20 73 70 65 65 64 2e | 0a 58 0a 58 09 2e 28 20 |n speed.|.X.X..( |
|00002e00| 4c 6f 61 64 69 6e 67 20 | 74 68 65 20 4c 69 62 72 |Loading |the Libr|
|00002e10| 61 72 79 2e 2e 2e 29 20 | 63 72 0a 58 0a 58 09 23 |ary...) |cr.X.X.#|
|00002e20| 69 6e 63 6c 75 64 65 20 | 73 6f 6d 65 4c 69 62 72 |include |someLibr|
|00002e30| 61 72 79 2e 66 38 33 0a | 58 09 2e 2e 2e 0a 58 0a |ary.f83.|X.....X.|
|00002e40| 58 09 28 20 47 6c 6f 62 | 61 6c 20 64 61 74 61 20 |X.( Glob|al data |
|00002e50| 61 6e 64 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 29 |and defi|nitions)|
|00002e60| 0a 58 0a 58 09 3a 20 73 | 6f 6d 65 47 6c 6f 62 61 |.X.X.: s|omeGloba|
|00002e70| 6c 44 65 66 69 6e 69 74 | 69 6f 6e 73 20 28 20 2d |lDefinit|ions ( -|
|00002e80| 2d 20 29 20 2e 2e 2e 20 | 3b 0a 58 0a 58 09 76 6f |- ) ... |;.X.X.vo|
|00002e90| 63 61 62 75 6c 61 72 79 | 20 74 68 65 4c 69 62 72 |cabulary| theLibr|
|00002ea0| 61 72 79 0a 58 0a 58 09 | 73 6f 6d 65 4c 69 62 72 |ary.X.X.|someLibr|
|00002eb0| 61 72 79 20 2e 2e 2e 20 | 74 68 65 4c 69 62 72 61 |ary ... |theLibra|
|00002ec0| 72 79 20 64 65 66 69 6e | 69 74 69 6f 6e 73 0a 58 |ry defin|itions.X|
|00002ed0| 0a 58 09 28 20 4c 6f 63 | 61 6c 20 64 61 74 61 20 |.X.( Loc|al data |
|00002ee0| 61 6e 64 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 29 |and defi|nitions)|
|00002ef0| 0a 58 0a 58 09 3a 20 73 | 6f 6d 65 50 72 69 76 61 |.X.X.: s|omePriva|
|00002f00| 74 65 44 65 66 69 6e 69 | 74 69 6f 6e 73 20 28 20 |teDefini|tions ( |
|00002f10| 2d 2d 20 29 20 2e 2e 2e | 20 3b 20 70 72 69 76 61 |-- ) ...| ; priva|
|00002f20| 74 65 0a 58 09 2e 2e 2e | 0a 58 09 3a 20 73 6f 6d |te.X....|.X.: som|
|00002f30| 65 44 65 66 69 6e 69 74 | 69 6f 6e 73 20 28 20 2d |eDefinit|ions ( -|
|00002f40| 2d 20 29 20 2e 2e 2e 20 | 3b 20 0a 58 0a 58 09 66 |- ) ... |; .X.X.f|
|00002f50| 6f 72 74 68 20 6f 6e 6c | 79 0a 58 0a 58 54 6f 20 |orth onl|y.X.XTo |
|00002f60| 63 72 65 61 74 65 20 6c | 65 78 69 63 61 6c 20 6c |create l|exical l|
|00002f70| 65 76 65 6c 73 20 77 69 | 74 68 69 6e 20 74 68 65 |evels wi|thin the|
|00002f80| 20 73 61 6d 65 20 76 6f | 63 61 62 75 6c 61 72 79 | same vo|cabulary|
|00002f90| 20 74 68 65 20 77 6f 72 | 64 20 22 72 65 73 74 6f | the wor|d "resto|
|00002fa0| 72 65 22 20 0a 58 6d 61 | 79 20 62 65 20 75 73 65 |re" .Xma|y be use|
|00002fb0| 64 2e 20 49 74 20 73 74 | 6f 72 65 73 20 74 68 65 |d. It st|ores the|
|00002fc0| 20 76 6f 63 61 62 75 6c | 61 72 79 20 70 6f 69 6e | vocabul|ary poin|
|00002fd0| 74 65 72 20 74 6f 20 74 | 68 65 20 67 69 76 65 6e |ter to t|he given|
|00002fe0| 20 65 6e 74 72 79 20 61 | 6e 64 20 0a 58 74 68 75 | entry a|nd .Xthu|
|00002ff0| 73 20 68 69 64 65 73 20 | 74 68 65 20 77 6f 72 64 |s hides |the word|
|00003000| 73 20 64 65 66 69 6e 65 | 64 20 61 66 74 65 72 20 |s define|d after |
|00003010| 74 68 69 73 20 65 6e 74 | 72 79 2e 20 54 68 65 20 |this ent|ry. The |
|00003020| 77 6f 72 64 20 22 72 65 | 73 74 6f 72 65 22 20 68 |word "re|store" h|
|00003030| 61 73 20 0a 58 6d 75 63 | 68 20 74 68 65 20 73 61 |as .Xmuc|h the sa|
|00003040| 6d 65 20 61 63 74 69 6f | 6e 20 61 73 20 22 66 6f |me actio|n as "fo|
|00003050| 72 67 65 74 22 20 62 75 | 74 20 77 69 74 68 6f 75 |rget" bu|t withou|
|00003060| 74 20 70 75 74 74 69 6e | 67 20 62 61 63 6b 20 74 |t puttin|g back t|
|00003070| 68 65 20 64 69 63 74 69 | 6f 6e 61 72 79 20 0a 58 |he dicti|onary .X|
|00003080| 70 6f 69 6e 74 65 72 2e | 0a 58 0a 58 0a 58 35 2e |pointer.|.X.X.X5.|
|00003090| 09 53 4f 55 52 43 45 20 | 46 49 4c 45 53 0a 58 0a |.SOURCE |FILES.X.|
|000030a0| 58 54 68 65 20 54 49 4c | 45 20 46 6f 72 74 68 20 |XThe TIL|E Forth |
|000030b0| 73 6f 75 72 63 65 20 69 | 73 20 62 72 6f 6b 65 6e |source i|s broken|
|000030c0| 20 64 6f 77 6e 20 69 6e | 74 6f 20 74 68 65 20 66 | down in|to the f|
|000030d0| 6f 6c 6c 6f 77 69 6e 67 | 20 66 69 6c 65 73 3a 0a |ollowing| files:.|
|000030e0| 58 0a 58 52 45 41 44 4d | 45 0a 58 20 20 20 54 68 |X.XREADM|E.X Th|
|000030f0| 69 73 20 73 68 6f 72 74 | 20 64 6f 63 75 6d 65 6e |is short| documen|
|00003100| 74 61 74 69 6f 6e 20 6f | 66 20 54 49 4c 45 2e 0a |tation o|f TILE..|
|00003110| 58 0a 58 43 4f 50 59 49 | 4e 47 0a 58 20 20 20 54 |X.XCOPYI|NG.X T|
|00003120| 68 65 20 47 4e 55 20 47 | 65 6e 65 72 61 6c 20 50 |he GNU G|eneral P|
|00003130| 75 62 6c 69 63 20 4c 69 | 63 65 6e 73 65 2e 0a 58 |ublic Li|cense..X|
|00003140| 0a 58 49 4e 53 54 41 4c | 4c 0a 58 20 20 20 53 6f |.XINSTAL|L.X So|
|00003150| 6d 65 20 68 65 6c 70 20 | 6f 6e 20 68 6f 77 20 74 |me help |on how t|
|00003160| 6f 20 69 6e 73 74 61 6c | 6c 20 54 49 4c 45 20 46 |o instal|l TILE F|
|00003170| 6f 72 74 68 2e 0a 58 0a | 58 50 4f 52 54 49 4e 47 |orth..X.|XPORTING|
|00003180| 0a 58 20 20 20 53 6f 6d | 65 20 68 65 6c 70 20 6f |.X Som|e help o|
|00003190| 6e 20 68 6f 77 20 74 6f | 20 70 6f 72 74 20 54 49 |n how to| port TI|
|000031a0| 4c 45 20 46 6f 72 74 68 | 20 61 6e 64 20 74 79 70 |LE Forth| and typ|
|000031b0| 69 63 61 6c 20 70 72 6f | 62 6c 65 6d 73 0a 58 0a |ical pro|blems.X.|
|000031c0| 58 4d 61 6b 65 66 69 6c | 65 0a 58 20 20 20 41 6c |XMakefil|e.X Al|
|000031d0| 6c 6f 77 73 20 61 20 6e | 75 6d 62 65 72 20 6f 66 |lows a n|umber of|
|000031e0| 20 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 20 73 74 79 | compila|tion sty|
|000031f0| 6c 65 73 20 66 6f 72 20 | 64 65 62 75 67 67 69 6e |les for |debuggin|
|00003200| 67 2c 20 70 72 6f 66 69 | 6c 69 6e 67 2c 20 0a 58 |g, profi|ling, .X|
|00003210| 20 20 20 73 68 61 72 69 | 6e 67 20 65 74 63 2e 20 | shari|ng etc. |
|00003220| 4e 65 77 20 6d 61 63 68 | 69 6e 65 73 20 61 6e 64 |New mach|ines and|
|00003230| 20 63 6f 6e 64 69 74 69 | 6f 6e 61 6c 20 63 6f 6d | conditi|onal com|
|00003240| 70 69 6c 61 74 69 6f 6e | 20 73 79 6d 62 6f 6c 73 |pilation| symbols|
|00003250| 20 61 72 65 20 0a 58 20 | 20 20 61 64 64 65 64 20 | are .X | added |
|00003260| 68 65 72 65 2e 0a 58 0a | 58 73 72 63 0a 58 20 20 |here..X.|Xsrc.X |
|00003270| 54 68 65 20 43 20 73 6f | 75 72 63 65 20 6c 69 62 |The C so|urce lib|
|00003280| 72 61 72 79 20 77 69 74 | 68 20 74 68 65 20 6b 65 |rary wit|h the ke|
|00003290| 72 6e 65 6c 20 63 6f 64 | 65 20 61 6e 64 20 47 4e |rnel cod|e and GN|
|000032a0| 55 20 45 6d 61 63 73 20 | 66 6f 72 74 68 2d 6d 6f |U Emacs |forth-mo|
|000032b0| 64 65 2e 0a 58 0a 58 6c | 69 62 0a 58 20 20 20 54 |de..X.Xl|ib.X T|
|000032c0| 68 65 20 46 6f 72 74 68 | 2d 38 33 20 73 6f 75 72 |he Forth|-83 sour|
|000032d0| 63 65 20 6c 69 62 72 61 | 72 79 20 66 6f 72 20 64 |ce libra|ry for d|
|000032e0| 61 74 61 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |ata desc|ription |
|000032f0| 61 6e 64 20 6d 61 6e 61 | 67 65 6d 65 6e 74 2c 20 |and mana|gement, |
|00003300| 0a 58 20 20 20 68 69 67 | 68 20 6c 65 76 65 6c 20 |.X hig|h level |
|00003310| 74 61 73 6b 69 6e 67 2c | 20 65 74 63 2e 0a 58 0a |tasking,| etc..X.|
|00003320| 58 74 73 74 0a 58 20 20 | 20 54 65 73 74 20 66 69 |Xtst.X | Test fi|
|00003330| 6c 65 20 66 6f 72 20 65 | 61 63 68 20 46 6f 72 74 |le for e|ach Fort|
|00003340| 68 2d 38 33 20 73 6f 75 | 72 63 65 20 63 6f 64 65 |h-83 sou|rce code|
|00003350| 20 66 69 6c 65 20 61 6e | 64 20 61 20 73 65 74 20 | file an|d a set |
|00003360| 6f 66 20 62 65 6e 63 68 | 6d 61 72 6b 73 2e 0a 58 |of bench|marks..X|
|00003370| 0a 58 6d 61 6e 0a 58 20 | 20 20 4d 61 6e 75 61 6c |.Xman.X | Manual|
|00003380| 20 70 61 67 65 73 20 66 | 6f 72 20 74 68 65 20 54 | pages f|or the T|
|00003390| 49 4c 45 20 46 6f 72 74 | 68 20 43 20 6b 65 72 6e |ILE Fort|h C kern|
|000033a0| 65 6c 20 61 6e 64 20 46 | 6f 72 74 68 2d 38 33 20 |el and F|orth-83 |
|000033b0| 73 6f 75 72 63 65 20 63 | 6f 64 65 20 0a 58 20 20 |source c|ode .X |
|000033c0| 20 6c 69 62 72 61 72 79 | 2e 0a 58 0a 58 64 6f 63 | library|..X.Xdoc|
|000033d0| 0a 58 20 20 20 44 6f 63 | 75 6d 65 6e 74 61 74 69 |.X Doc|umentati|
|000033e0| 6f 6e 20 61 6e 64 20 67 | 6c 6f 73 73 61 72 69 65 |on and g|lossarie|
|000033f0| 73 20 66 6f 72 20 65 61 | 63 68 20 73 6f 75 72 63 |s for ea|ch sourc|
|00003400| 65 20 63 6f 64 65 20 66 | 69 6c 65 20 61 6e 64 20 |e code f|ile and |
|00003410| 6b 65 72 6e 65 6c 0a 58 | 20 20 20 76 6f 63 61 62 |kernel.X| vocab|
|00003420| 75 6c 61 72 69 65 73 2e | 0a 58 0a 58 62 69 6e 0a |ularies.|.X.Xbin.|
|00003430| 58 20 20 20 55 74 69 6c | 69 74 79 20 63 6f 6d 6d |X Util|ity comm|
|00003440| 61 6e 64 73 20 61 6e 64 | 20 74 68 65 20 54 49 4c |ands and| the TIL|
|00003450| 45 20 66 6f 72 74 68 20 | 63 6f 6d 70 69 6c 65 72 |E forth |compiler|
|00003460| 2f 69 6e 74 65 72 70 72 | 65 74 65 72 2e 0a 58 0a |/interpr|eter..X.|
|00003470| 58 0a 58 0a 58 36 2e 09 | 43 4f 4e 46 49 47 55 52 |X.X.X6..|CONFIGUR|
|00003480| 41 54 49 4f 4e 0a 58 0a | 58 54 49 4c 45 20 66 6f |ATION.X.|XTILE fo|
|00003490| 72 74 68 20 69 73 20 74 | 61 72 67 65 74 65 64 20 |rth is t|argeted |
|000034a0| 66 6f 72 20 33 32 2d 62 | 69 74 20 6d 61 63 68 69 |for 32-b|it machi|
|000034b0| 6e 65 73 20 61 6e 64 20 | 6e 6f 20 73 70 65 63 69 |nes and |no speci|
|000034c0| 61 6c 20 61 69 64 20 69 | 73 20 0a 58 61 76 61 69 |al aid i|s .Xavai|
|000034d0| 6c 61 62 6c 65 20 74 6f | 20 61 6c 6c 6f 77 20 69 |lable to| allow i|
|000034e0| 74 20 74 6f 20 62 65 20 | 63 6f 6d 70 69 6c 65 64 |t to be |compiled|
|000034f0| 20 66 6f 72 20 6f 74 68 | 65 72 20 62 69 74 2d 77 | for oth|er bit-w|
|00003500| 69 64 74 68 73 2e 20 54 | 68 65 20 0a 58 63 6f 6e |idths. T|he .Xcon|
|00003510| 66 69 67 75 72 61 74 69 | 6f 6e 20 69 73 20 6d 61 |figurati|on is ma|
|00003520| 69 6e 74 61 69 6e 65 64 | 20 62 79 20 61 20 22 6d |intained| by a "m|
|00003530| 61 6b 65 22 20 66 69 6c | 65 73 2e 20 0a 58 0a 58 |ake" fil|es. .X.X|
|00003540| 54 68 69 73 20 63 6f 6e | 66 69 67 75 72 61 74 69 |This con|figurati|
|00003550| 6f 6e 20 66 69 6c 65 20 | 61 6c 6c 6f 77 73 20 61 |on file |allows a|
|00003560| 20 6e 75 6d 62 65 72 20 | 6f 66 20 64 69 66 66 65 | number |of diffe|
|00003570| 72 65 6e 74 20 6d 6f 64 | 65 73 20 74 6f 20 73 75 |rent mod|es to su|
|00003580| 70 70 6f 72 74 0a 58 74 | 79 70 69 63 61 6c 20 70 |pport.Xt|ypical p|
|00003590| 72 6f 67 72 61 6d 20 64 | 65 76 65 6c 6f 70 6d 65 |rogram d|evelopme|
|000035a0| 6e 74 20 70 68 61 73 65 | 73 20 28 6f 6e 20 43 20 |nt phase|s (on C |
|000035b0| 6c 65 76 65 6c 29 20 73 | 75 63 68 20 61 73 20 64 |level) s|uch as d|
|000035c0| 65 62 75 67 67 69 6e 67 | 2c 20 0a 58 70 72 6f 66 |ebugging|, .Xprof|
|000035d0| 69 6c 69 6e 67 2c 20 6f | 70 74 69 6d 69 7a 61 74 |iling, o|ptimizat|
|000035e0| 69 6f 6e 20 61 6e 64 20 | 70 61 63 6b 61 67 69 6e |ion and |packagin|
|000035f0| 67 2e 20 50 6c 65 61 73 | 65 20 73 65 65 20 74 68 |g. Pleas|e see th|
|00003600| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 69 6e |e inform|ation in|
|00003610| 0a 58 74 68 65 73 65 20 | 66 69 6c 65 73 2e 0a 58 |.Xthese |files..X|
|00003620| 0a 58 0a 58 37 2e 09 43 | 4f 50 59 49 4e 47 0a 58 |.X.X7..C|OPYING.X|
|00003630| 0a 58 54 68 69 73 20 73 | 6f 66 74 77 61 72 65 20 |.XThis s|oftware |
|00003640| 69 73 20 6f 66 66 65 72 | 65 64 20 61 73 20 73 68 |is offer|ed as sh|
|00003650| 61 72 65 77 61 72 65 2e | 20 59 6f 75 20 6d 61 79 |areware.| You may|
|00003660| 20 75 73 65 20 69 74 20 | 66 72 65 65 6c 79 2c 20 | use it |freely, |
|00003670| 62 75 74 20 0a 58 69 66 | 20 79 6f 75 20 64 6f 20 |but .Xif| you do |
|00003680| 75 73 65 20 69 74 20 61 | 6e 64 20 66 69 6e 64 20 |use it a|nd find |
|00003690| 69 74 20 75 73 65 66 75 | 6c 2c 20 79 6f 75 20 61 |it usefu|l, you a|
|000036a0| 72 65 20 65 6e 63 6f 75 | 72 61 67 65 64 20 74 6f |re encou|raged to|
|000036b0| 20 73 65 6e 64 20 74 68 | 65 0a 58 61 75 74 68 6f | send th|e.Xautho|
|000036c0| 72 20 61 20 63 6f 6e 74 | 72 69 62 75 74 69 6f 6e |r a cont|ribution|
|000036d0| 20 28 3e 3d 20 24 35 30 | 29 20 74 6f 20 74 68 65 | (>= $50|) to the|
|000036e0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 61 64 64 72 65 | followi|ng addre|
|000036f0| 73 73 3a 0a 58 0a 58 09 | 54 49 4c 45 20 54 65 63 |ss:.X.X.|TILE Tec|
|00003700| 68 6e 6f 6c 6f 67 79 20 | 48 42 0a 58 09 53 74 72 |hnology |HB.X.Str|
|00003710| 61 67 61 74 61 6e 20 31 | 39 0a 58 09 53 2d 35 38 |agatan 1|9.X.S-58|
|00003720| 32 20 36 37 20 4c 69 6e | 6b 6f 70 69 6e 67 0a 58 |2 67 Lin|koping.X|
|00003730| 09 53 57 45 44 45 4e 0a | 58 0a 58 49 66 20 79 6f |.SWEDEN.|X.XIf yo|
|00003740| 75 20 73 65 6e 64 20 6d | 65 20 61 20 63 6f 6e 74 |u send m|e a cont|
|00003750| 72 69 62 75 74 69 6f 6e | 2c 20 49 20 77 69 6c 6c |ribution|, I will|
|00003760| 20 73 65 6e 64 20 79 6f | 75 20 6d 61 6e 75 61 6c | send yo|u manual|
|00003770| 20 70 61 67 65 73 20 61 | 6e 64 20 0a 58 64 6f 63 | pages a|nd .Xdoc|
|00003780| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 66 69 6c 65 73 |umentati|on files|
|00003790| 20 61 6e 64 20 77 69 6c | 6c 20 61 6e 73 77 65 72 | and wil|l answer|
|000037a0| 20 71 75 65 73 74 69 6f | 6e 73 20 62 79 20 6d 61 | questio|ns by ma|
|000037b0| 69 6c 2e 20 41 6c 73 6f | 20 79 6f 75 72 0a 58 6e |il. Also| your.Xn|
|000037c0| 61 6d 65 20 77 69 6c 6c | 20 62 65 20 70 75 74 20 |ame will| be put |
|000037d0| 6f 6e 20 61 20 64 69 73 | 74 72 69 62 75 74 69 6f |on a dis|tributio|
|000037e0| 6e 20 6c 69 73 74 20 66 | 6f 72 20 66 75 74 75 72 |n list f|or futur|
|000037f0| 65 20 72 65 6c 65 61 73 | 65 73 2e 0a 58 0a 58 46 |e releas|es..X.XF|
|00003800| 6f 72 20 66 75 72 74 68 | 65 72 20 69 6e 66 6f 72 |or furth|er infor|
|00003810| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 20 63 6f 70 |mation a|bout cop|
|00003820| 79 69 6e 67 20 73 65 65 | 20 74 68 65 20 66 69 6c |ying see| the fil|
|00003830| 65 20 43 4f 50 59 49 4e | 47 20 61 6e 64 0a 58 74 |e COPYIN|G and.Xt|
|00003840| 68 65 20 68 65 61 64 65 | 72 73 20 69 6e 20 74 68 |he heade|rs in th|
|00003850| 65 20 73 6f 75 72 63 65 | 20 63 6f 64 65 20 66 69 |e source| code fi|
|00003860| 6c 65 73 2e 20 43 6f 6d | 6d 65 72 63 69 61 6c 20 |les. Com|mercial |
|00003870| 75 73 61 67 65 20 6f 66 | 20 74 68 65 0a 58 6b 65 |usage of| the.Xke|
|00003880| 72 6e 65 6c 20 69 73 20 | 6e 6f 74 20 61 6c 6c 6f |rnel is |not allo|
|00003890| 77 65 64 20 77 69 74 68 | 6f 75 74 20 61 20 6c 69 |wed with|out a li|
|000038a0| 63 65 6e 73 65 20 66 72 | 6f 6d 20 74 68 65 20 63 |cense fr|om the c|
|000038b0| 6f 6d 70 61 6e 79 20 61 | 62 6f 76 65 2e 0a 58 0a |ompany a|bove..X.|
|000038c0| 58 0a 58 38 2e 09 4e 4f | 54 45 0a 58 0a 58 44 75 |X.X8..NO|TE.X.XDu|
|000038d0| 65 20 74 6f 20 74 68 65 | 20 33 32 2d 62 69 74 20 |e to the| 32-bit |
|000038e0| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 69 |implemen|tation i|
|000038f0| 6e 20 43 20 61 20 6e 75 | 6d 62 65 72 20 6f 66 20 |n C a nu|mber of |
|00003900| 46 6f 72 74 68 2d 38 33 | 20 64 65 66 69 6e 69 74 |Forth-83| definit|
|00003910| 69 6f 6e 73 20 0a 58 61 | 72 65 20 6e 6f 74 20 64 |ions .Xa|re not d|
|00003920| 69 72 65 63 74 6c 79 20 | 63 6f 6e 66 69 72 6d 65 |irectly |confirme|
|00003930| 64 2e 20 42 65 6c 6f 77 | 20 69 73 20 61 20 73 68 |d. Below| is a sh|
|00003940| 6f 72 74 20 6c 69 73 74 | 20 6f 66 20 77 6f 72 64 |ort list| of word|
|00003950| 73 20 74 68 61 74 20 6d | 69 67 68 74 20 0a 58 67 |s that m|ight .Xg|
|00003960| 69 76 65 20 70 72 6f 62 | 6c 65 6d 73 20 77 68 65 |ive prob|lems whe|
|00003970| 6e 20 70 6f 72 74 69 6e | 67 20 46 6f 72 74 68 20 |n portin|g Forth |
|00003980| 63 6f 64 65 20 74 6f 20 | 74 68 69 73 20 65 6e 76 |code to |this env|
|00003990| 69 72 6f 6e 6d 65 6e 74 | 3a 0a 58 0a 58 2a 20 54 |ironment|:.X.X* T|
|000039a0| 68 65 20 42 6c 6f 63 6b | 20 57 6f 72 64 20 53 65 |he Block| Word Se|
|000039b0| 74 20 69 73 20 6e 6f 74 | 20 73 75 70 70 6f 72 74 |t is not| support|
|000039c0| 65 64 2e 20 53 6f 75 72 | 63 65 20 63 6f 64 65 20 |ed. Sour|ce code |
|000039d0| 69 73 20 73 61 76 65 64 | 20 61 73 20 74 65 78 74 |is saved| as text|
|000039e0| 20 0a 58 20 20 66 69 6c | 65 73 2e 0a 58 0a 58 2a | .X fil|es..X.X*|
|000039f0| 20 41 6c 6c 20 73 74 61 | 63 6b 73 20 61 6e 64 20 | All sta|cks and |
|00003a00| 77 6f 72 64 73 20 73 69 | 7a 65 20 61 72 65 20 33 |words si|ze are 3|
|00003a10| 32 2d 62 69 74 2e 20 54 | 68 75 73 20 73 70 65 63 |2-bit. T|hus spec|
|00003a20| 69 61 6c 20 63 61 72 65 | 20 6d 75 73 74 20 62 65 |ial care| must be|
|00003a30| 20 0a 58 20 20 74 61 6b | 65 6e 20 77 69 74 68 20 | .X tak|en with |
|00003a40| 6d 65 6d 6f 72 79 20 61 | 6c 6c 6f 63 61 74 69 6f |memory a|llocatio|
|00003a50| 6e 20 61 6e 64 20 61 63 | 63 65 73 73 2e 0a 58 0a |n and ac|cess..X.|
|00003a60| 58 2a 20 4c 6f 77 65 72 | 63 61 73 65 20 61 6e 64 |X* Lower|case and|
|00003a70| 20 75 70 70 65 72 63 61 | 73 65 20 61 72 65 20 64 | upperca|se are d|
|00003a80| 69 73 74 69 6e 67 75 69 | 73 68 65 64 2c 20 61 6e |istingui|shed, an|
|00003a90| 64 20 61 6c 6c 20 66 6f | 72 74 68 20 77 6f 72 64 |d all fo|rth word|
|00003aa0| 73 20 61 72 65 0a 58 20 | 20 6c 6f 77 65 72 63 61 |s are.X | lowerca|
|00003ab0| 73 65 2e 20 0a 58 0a 58 | 2a 20 41 20 77 6f 72 64 |se. .X.X|* A word|
|00003ac0| 20 69 6e 20 54 49 4c 45 | 20 69 73 20 61 6c 6c 6f | in TILE| is allo|
|00003ad0| 77 65 64 20 61 72 62 69 | 74 72 61 72 79 20 6c 65 |wed arbi|trary le|
|00003ae0| 6e 67 74 68 20 61 73 20 | 74 68 65 20 6e 61 6d 65 |ngth as |the name|
|00003af0| 20 69 73 20 73 74 6f 72 | 65 64 20 61 73 0a 58 20 | is stor|ed as.X |
|00003b00| 20 61 73 20 61 20 6e 75 | 6c 6c 20 74 65 72 6d 69 | as a nu|ll termi|
|00003b10| 6e 61 74 65 64 20 73 74 | 72 69 6e 67 2e 0a 58 0a |nated st|ring..X.|
|00003b20| 58 2a 20 49 6e 70 75 74 | 20 73 75 63 68 20 61 73 |X* Input| such as|
|00003b30| 20 22 6b 65 79 22 20 70 | 65 72 66 6f 72 6d 73 20 | "key" p|erforms |
|00003b40| 61 20 72 65 61 64 20 6f | 70 65 72 61 74 69 6f 6e |a read o|peration|
|00003b50| 20 74 6f 20 74 68 65 20 | 6f 70 65 72 61 74 69 6e | to the |operatin|
|00003b60| 67 20 73 79 73 74 65 6d | 0a 58 20 20 74 68 75 73 |g system|.X thus|
|00003b70| 20 77 69 6c 6c 20 65 63 | 68 6f 20 74 68 65 20 63 | will ec|ho the c|
|00003b80| 68 61 72 61 63 74 65 72 | 73 2e 0a 58 0a 58 2a 20 |haracter|s..X.X* |
|00003b90| 56 61 72 69 61 62 6c 65 | 73 20 73 68 6f 75 6c 64 |Variable|s should|
|00003ba0| 20 6e 6f 74 20 61 6c 6c | 6f 63 61 74 65 20 65 78 | not all|ocate ex|
|00003bb0| 74 72 61 20 6d 65 6d 6f | 72 79 2e 20 22 63 72 65 |tra memo|ry. "cre|
|00003bc0| 61 74 65 22 20 73 68 6f | 75 6c 64 20 62 65 20 75 |ate" sho|uld be u|
|00003bd0| 73 65 64 2e 0a 58 0a 58 | 2a 20 44 6f 75 62 6c 65 |sed..X.X|* Double|
|00003be0| 20 6e 75 6d 62 65 72 20 | 61 72 69 74 68 6d 65 74 | number |arithmet|
|00003bf0| 69 63 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 72 65 |ic funct|ions are|
|00003c00| 20 6e 6f 74 20 61 76 61 | 69 6c 61 62 6c 65 2e 0a | not ava|ilable..|
|00003c10| 58 0a 58 53 6f 6d 65 20 | 6d 61 6a 6f 72 20 63 68 |X.XSome |major ch|
|00003c20| 61 6e 67 65 73 20 68 61 | 76 65 20 62 65 65 6e 20 |anges ha|ve been |
|00003c30| 6d 61 64 65 20 74 6f 20 | 74 68 65 20 6b 65 72 6e |made to |the kern|
|00003c40| 65 6c 20 69 6e 20 74 68 | 69 73 20 73 65 63 6f 6e |el in th|is secon|
|00003c50| 64 20 72 65 6c 65 61 73 | 65 2e 0a 58 54 6f 20 61 |d releas|e..XTo a|
|00003c60| 6c 6c 6f 77 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |llow imp|lementat|
|00003c70| 69 6f 6e 20 6f 66 20 66 | 6c 6f 61 74 69 6e 67 20 |ion of f|loating |
|00003c80| 70 6f 69 6e 74 20 6e 75 | 6d 62 65 72 73 20 61 6e |point nu|mbers an|
|00003c90| 64 20 69 6e 63 72 65 61 | 73 65 20 70 6f 72 74 69 |d increa|se porti|
|00003ca0| 6e 67 0a 58 74 68 65 20 | 6b 65 72 6e 65 6c 20 69 |ng.Xthe |kernel i|
|00003cb0| 73 20 6e 6f 77 20 77 72 | 69 74 74 65 6e 20 69 6e |s now wr|itten in|
|00003cc0| 20 69 74 73 20 6f 77 6e | 20 65 78 74 65 6e 64 61 | its own| extenda|
|00003cd0| 62 6c 65 20 74 79 70 69 | 6e 67 20 73 79 73 74 65 |ble typi|ng syste|
|00003ce0| 6d 2e 20 53 6f 6d 65 0a | 58 65 78 74 65 6e 73 69 |m. Some.|Xextensi|
|00003cf0| 6f 6e 20 68 61 76 65 20 | 62 65 65 6e 20 72 65 6d |on have |been rem|
|00003d00| 6f 76 65 64 20 73 75 63 | 68 20 61 73 20 74 68 65 |oved suc|h as the|
|00003d10| 20 63 61 73 74 69 6e 67 | 20 6f 70 65 72 61 74 6f | casting| operato|
|00003d20| 72 20 69 6e 20 74 68 65 | 20 0a 58 69 6e 74 65 72 |r in the| .Xinter|
|00003d30| 70 72 65 74 65 72 2e 0a | 58 0a 58 0a 58 41 43 4b |preter..|X.X.XACK|
|00003d40| 4e 4f 57 4c 45 44 47 4d | 45 4e 54 53 0a 58 0a 58 |NOWLEDGM|ENTS.X.X|
|00003d50| 46 69 72 73 74 20 6f 66 | 20 61 6c 6c 20 49 20 77 |First of| all I w|
|00003d60| 69 73 68 20 74 6f 20 65 | 78 70 72 65 73 73 20 6d |ish to e|xpress m|
|00003d70| 79 20 67 72 61 74 69 74 | 75 64 65 20 74 6f 20 47 |y gratit|ude to G|
|00003d80| 6f 72 61 6e 20 52 79 64 | 71 76 69 73 74 20 66 6f |oran Ryd|qvist fo|
|00003d90| 72 20 68 65 6c 70 65 64 | 0a 58 6d 65 20 6f 75 74 |r helped|.Xme out|
|00003da0| 20 77 69 74 68 20 74 68 | 65 20 66 69 72 73 74 20 | with th|e first |
|00003db0| 76 65 72 73 69 6f 6e 20 | 6f 66 20 74 68 65 20 6b |version |of the k|
|00003dc0| 65 72 6e 65 6c 20 61 6e | 64 20 77 68 6f 20 69 6d |ernel an|d who im|
|00003dd0| 70 6c 65 6d 65 6e 74 65 | 64 20 74 68 65 20 0a 58 |plemente|d the .X|
|00003de0| 66 6f 72 74 68 2d 6d 6f | 64 65 20 66 6f 72 20 47 |forth-mo|de for G|
|00003df0| 4e 55 20 45 6d 61 63 73 | 2e 20 0a 58 0a 58 53 65 |NU Emacs|. .X.XSe|
|00003e00| 63 6f 6e 64 20 61 20 73 | 70 65 63 69 61 6c 20 74 |cond a s|pecial t|
|00003e10| 68 61 6e 6b 73 20 74 6f | 20 74 68 65 20 62 65 74 |hanks to| the bet|
|00003e20| 61 20 74 65 73 74 20 67 | 72 6f 75 70 20 77 68 6f |a test g|roup who|
|00003e30| 20 67 61 76 65 20 6d 65 | 20 76 61 6c 75 61 62 6c | gave me| valuabl|
|00003e40| 65 0a 58 66 65 65 64 62 | 61 63 6b 2e 20 45 73 70 |e.Xfeedb|ack. Esp|
|00003e50| 65 63 69 61 6c 6c 79 20 | 4d 69 74 63 68 20 42 72 |ecially |Mitch Br|
|00003e60| 61 64 6c 65 79 2c 20 42 | 6f 62 20 47 69 6f 76 61 |adley, B|ob Giova|
|00003e70| 6e 6e 75 63 63 69 20 4a | 72 2e 2c 20 4d 6f 69 73 |nnucci J|r., Mois|
|00003e80| 65 73 20 4c 65 6a 74 65 | 72 2c 20 0a 58 61 6e 64 |es Lejte|r, .Xand|
|00003e90| 20 42 72 6f 6f 6b 73 20 | 44 61 76 69 64 20 53 6d | Brooks |David Sm|
|00003ea0| 69 74 68 2e 20 0a 58 0a | 58 4c 61 73 74 2c 20 49 |ith. .X.|XLast, I|
|00003eb0| 20 77 69 73 68 20 74 6f | 20 74 68 61 6e 6b 20 74 | wish to| thank t|
|00003ec0| 68 65 20 6d 61 79 20 75 | 73 65 72 73 20 74 68 61 |he may u|sers tha|
|00003ed0| 74 20 68 61 76 65 20 62 | 65 65 6e 20 69 6e 20 74 |t have b|een in t|
|00003ee0| 6f 75 63 68 20 61 66 74 | 65 72 20 74 68 65 0a 58 |ouch aft|er the.X|
|00003ef0| 66 69 72 73 74 20 72 65 | 6c 65 61 73 65 20 61 6e |first re|lease an|
|00003f00| 64 20 67 69 76 65 6e 20 | 6d 65 20 6d 61 6e 79 20 |d given |me many |
|00003f10| 63 6f 6d 6d 65 6e 74 73 | 20 61 6e 64 20 65 6e 63 |comments| and enc|
|00003f20| 6f 75 72 61 67 65 6d 65 | 6e 74 73 2e 0a 58 0a 58 |ourageme|nts..X.X|
|00003f30| 54 68 61 6e 6b 20 79 6f | 75 20 61 6c 6c 2e 0a 45 |Thank yo|u all..E|
|00003f40| 4e 44 5f 4f 46 5f 52 45 | 41 44 4d 45 0a 69 66 20 |ND_OF_RE|ADME.if |
|00003f50| 74 65 73 74 20 31 34 33 | 37 31 20 2d 6e 65 20 60 |test 143|71 -ne `|
|00003f60| 77 63 20 2d 63 20 3c 52 | 45 41 44 4d 45 60 3b 20 |wc -c <R|EADME`; |
|00003f70| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00003f80| 61 72 3a 20 5c 22 52 45 | 41 44 4d 45 5c 22 20 75 |ar: \"RE|ADME\" u|
|00003f90| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00003fa0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00003fb0| 64 20 6f 66 20 6f 76 65 | 72 77 72 69 74 69 6e 67 |d of ove|rwriting|
|00003fc0| 20 63 68 65 63 6b 0a 66 | 69 0a 69 66 20 74 65 73 | check.f|i.if tes|
|00003fd0| 74 20 21 20 2d 64 20 62 | 69 6e 20 3b 20 74 68 65 |t ! -d b|in ; the|
|00003fe0| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00003ff0| 20 43 72 65 61 74 69 6e | 67 20 64 69 72 65 63 74 | Creatin|g direct|
|00004000| 6f 72 79 20 5c 22 62 69 | 6e 5c 22 0a 20 20 20 20 |ory \"bi|n\". |
|00004010| 6d 6b 64 69 72 20 62 69 | 6e 0a 66 69 0a 69 66 20 |mkdir bi|n.fi.if |
|00004020| 74 65 73 74 20 2d 66 20 | 62 69 6e 2f 66 6f 72 74 |test -f |bin/fort|
|00004030| 68 74 6f 6f 6c 20 2d 61 | 20 22 24 7b 31 7d 22 20 |htool -a| "${1}" |
|00004040| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00004050| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00004060| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00004070| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00004080| 22 62 69 6e 2f 66 6f 72 | 74 68 74 6f 6f 6c 5c 22 |"bin/for|thtool\"|
|00004090| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|000040a0| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 62 69 | Extract|ing \"bi|
|000040b0| 6e 2f 66 6f 72 74 68 74 | 6f 6f 6c 5c 22 20 5c 28 |n/fortht|ool\" \(|
|000040c0| 37 36 36 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |766 char|acters\)|
|000040d0| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 62 |.sed "s/|^X//" >b|
|000040e0| 69 6e 2f 66 6f 72 74 68 | 74 6f 6f 6c 20 3c 3c 27 |in/forth|tool <<'|
|000040f0| 45 4e 44 5f 4f 46 5f 62 | 69 6e 2f 66 6f 72 74 68 |END_OF_b|in/forth|
|00004100| 74 6f 6f 6c 27 0a 58 23 | 21 20 2f 62 69 6e 2f 73 |tool'.X#|! /bin/s|
|00004110| 68 0a 58 23 20 4e 41 4d | 45 0a 58 23 09 66 6f 72 |h.X# NAM|E.X#.for|
|00004120| 74 68 74 6f 6f 6c 20 2d | 20 74 69 6c 65 20 66 6f |thtool -| tile fo|
|00004130| 72 74 68 20 69 6e 74 65 | 72 61 63 74 69 6f 6e 20 |rth inte|raction |
|00004140| 74 6f 6f 6c 20 69 6e 20 | 73 75 6e 76 69 65 77 0a |tool in |sunview.|
|00004150| 58 23 20 53 59 4e 4f 50 | 53 49 53 0a 58 23 09 66 |X# SYNOP|SIS.X#.f|
|00004160| 6f 72 74 68 74 6f 6f 6c | 20 5b 3c 70 61 72 61 6d |orthtool| [<param|
|00004170| 65 74 65 72 3e 2e 2e 2e | 5d 0a 58 23 20 44 45 53 |eter>...|].X# DES|
|00004180| 43 52 49 50 54 49 4f 4e | 0a 58 23 09 53 74 61 72 |CRIPTION|.X#.Star|
|00004190| 74 73 20 66 6f 72 74 68 | 20 69 6e 20 61 20 63 6d |ts forth| in a cm|
|000041a0| 64 74 6f 6f 6c 20 77 69 | 6e 64 6f 77 20 77 69 74 |dtool wi|ndow wit|
|000041b0| 68 20 54 49 4c 45 20 46 | 6f 72 74 68 20 69 63 6f |h TILE F|orth ico|
|000041c0| 6e 20 77 68 65 6e 20 63 | 6c 6f 73 65 64 2e 0a 58 |n when c|losed..X|
|000041d0| 23 09 41 6c 6c 6f 77 73 | 20 63 6d 64 74 6f 6f 6c |#.Allows| cmdtool|
|000041e0| 20 65 64 69 74 69 6e 67 | 20 61 6e 64 20 73 65 73 | editing| and ses|
|000041f0| 73 69 6f 6e 20 66 69 6c | 65 20 73 61 76 69 6e 67 |sion fil|e saving|
|00004200| 2e 20 41 6e 79 20 70 61 | 72 61 6d 65 74 65 72 73 |. Any pa|rameters|
|00004210| 0a 58 23 09 61 72 65 20 | 70 61 73 73 65 64 20 6f |.X#.are |passed o|
|00004220| 6e 20 74 6f 20 66 6f 72 | 74 68 2e 20 0a 58 23 20 |n to for|th. .X# |
|00004230| 4f 50 54 49 4f 4e 53 0a | 58 23 09 6e 6f 6e 65 0a |OPTIONS.|X#.none.|
|00004240| 58 23 20 46 49 4c 45 53 | 0a 58 23 09 2e 66 6f 72 |X# FILES|.X#..for|
|00004250| 74 68 69 63 6f 6e 09 69 | 63 6f 6e 20 66 6f 72 20 |thicon.i|con for |
|00004260| 63 6c 6f 73 65 64 20 66 | 6f 72 74 68 74 6f 6f 6c |closed f|orthtool|
|00004270| 0a 58 23 20 53 45 45 20 | 41 4c 53 4f 0a 58 23 09 |.X# SEE |ALSO.X#.|
|00004280| 74 69 6c 65 28 31 29 2c | 20 63 6d 64 74 6f 6f 6c |tile(1),| cmdtool|
|00004290| 28 31 29 2c 20 73 75 6e | 76 69 65 77 28 31 29 0a |(1), sun|view(1).|
|000042a0| 58 23 20 41 55 54 48 4f | 52 0a 58 23 09 4d 69 6b |X# AUTHO|R.X#.Mik|
|000042b0| 61 65 6c 20 52 2e 4b 2e | 20 50 61 74 65 6c 0a 58 |ael R.K.| Patel.X|
|000042c0| 23 09 43 6f 6d 70 75 74 | 65 72 20 41 69 64 65 64 |#.Comput|er Aided|
|000042d0| 20 44 65 73 69 67 6e 20 | 4c 61 62 6f 72 61 74 6f | Design |Laborato|
|000042e0| 72 79 20 28 43 41 44 4c | 41 42 29 0a 58 23 09 44 |ry (CADL|AB).X#.D|
|000042f0| 65 70 61 72 74 6d 65 6e | 74 20 6f 66 20 43 6f 6d |epartmen|t of Com|
|00004300| 70 75 74 65 72 20 61 6e | 64 20 49 6e 66 6f 72 6d |puter an|d Inform|
|00004310| 61 74 69 6f 6e 20 53 63 | 69 65 6e 63 65 0a 58 23 |ation Sc|ience.X#|
|00004320| 09 4c 69 6e 6b 6f 70 69 | 6e 67 20 55 6e 69 76 65 |.Linkopi|ng Unive|
|00004330| 72 73 69 74 79 0a 58 23 | 09 53 2d 35 38 31 20 38 |rsity.X#|.S-581 8|
|00004340| 33 20 4c 49 4e 4b 4f 50 | 49 4e 47 0a 58 23 09 53 |3 LINKOP|ING.X#.S|
|00004350| 57 45 44 45 4e 0a 58 23 | 09 45 6d 61 69 6c 3a 20 |WEDEN.X#|.Email: |
|00004360| 6d 69 70 40 69 64 61 2e | 6c 69 75 2e 73 65 0a 58 |mip@ida.|liu.se.X|
|00004370| 23 20 48 49 53 54 4f 52 | 59 0a 58 23 20 09 43 72 |# HISTOR|Y.X# .Cr|
|00004380| 65 61 74 65 64 20 6f 6e | 3a 20 09 30 31 20 41 70 |eated on|: .01 Ap|
|00004390| 72 69 6c 20 31 39 38 39 | 0a 58 23 09 4c 61 73 74 |ril 1989|.X#.Last|
|000043a0| 65 64 20 75 70 64 61 74 | 65 64 3a 09 32 33 20 4d |ed updat|ed:.23 M|
|000043b0| 61 79 20 31 39 39 30 0a | 58 0a 58 63 6d 64 74 6f |ay 1990.|X.Xcmdto|
|000043c0| 6f 6c 20 2d 57 6c 20 22 | 66 6f 72 74 68 74 6f 6f |ol -Wl "|forthtoo|
|000043d0| 6c 20 2d 20 66 6f 72 74 | 68 22 20 2d 57 4c 20 46 |l - fort|h" -WL F|
|000043e0| 6f 72 74 68 20 2d 57 49 | 20 24 54 49 4c 45 2f 62 |orth -WI| $TILE/b|
|000043f0| 69 6e 2f 66 6f 72 74 68 | 69 63 6f 6e 20 66 6f 72 |in/forth|icon for|
|00004400| 74 68 20 24 31 20 24 32 | 20 24 33 20 24 34 20 24 |th $1 $2| $3 $4 $|
|00004410| 35 20 24 36 20 24 37 20 | 24 38 20 24 39 0a 58 0a |5 $6 $7 |$8 $9.X.|
|00004420| 58 0a 45 4e 44 5f 4f 46 | 5f 62 69 6e 2f 66 6f 72 |X.END_OF|_bin/for|
|00004430| 74 68 74 6f 6f 6c 0a 69 | 66 20 74 65 73 74 20 37 |thtool.i|f test 7|
|00004440| 36 36 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 62 |66 -ne `|wc -c <b|
|00004450| 69 6e 2f 66 6f 72 74 68 | 74 6f 6f 6c 60 3b 20 74 |in/forth|tool`; t|
|00004460| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00004470| 72 3a 20 5c 22 62 69 6e | 2f 66 6f 72 74 68 74 6f |r: \"bin|/forthto|
|00004480| 6f 6c 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |ol\" unp|acked wi|
|00004490| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|000044a0| 69 0a 63 68 6d 6f 64 20 | 2b 78 20 62 69 6e 2f 66 |i.chmod |+x bin/f|
|000044b0| 6f 72 74 68 74 6f 6f 6c | 0a 23 20 65 6e 64 20 6f |orthtool|.# end o|
|000044c0| 66 20 6f 76 65 72 77 72 | 69 74 69 6e 67 20 63 68 |f overwr|iting ch|
|000044d0| 65 63 6b 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |eck.fi.i|f test -|
|000044e0| 66 20 62 69 6e 2f 6d 6b | 64 6f 63 20 2d 61 20 22 |f bin/mk|doc -a "|
|000044f0| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00004500| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00004510| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |r: Will |not over|
|00004520| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|00004530| 66 69 6c 65 20 5c 22 62 | 69 6e 2f 6d 6b 64 6f 63 |file \"b|in/mkdoc|
|00004540| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00004550| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00004560| 62 69 6e 2f 6d 6b 64 6f | 63 5c 22 20 5c 28 36 37 |bin/mkdo|c\" \(67|
|00004570| 35 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |5 charac|ters\).s|
|00004580| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 62 69 6e |ed "s/^X|//" >bin|
|00004590| 2f 6d 6b 64 6f 63 20 3c | 3c 27 45 4e 44 5f 4f 46 |/mkdoc <|<'END_OF|
|000045a0| 5f 62 69 6e 2f 6d 6b 64 | 6f 63 27 0a 58 23 21 20 |_bin/mkd|oc'.X#! |
|000045b0| 2f 62 69 6e 2f 73 68 0a | 58 23 20 4e 41 4d 45 0a |/bin/sh.|X# NAME.|
|000045c0| 58 23 09 6d 6b 64 6f 63 | 20 2d 20 63 72 65 61 74 |X#.mkdoc| - creat|
|000045d0| 65 20 64 6f 63 75 6d 65 | 6e 61 74 69 6f 6e 20 66 |e docume|nation f|
|000045e0| 69 6c 65 20 66 72 6f 6d | 20 6d 61 6e 75 61 6c 20 |ile from| manual |
|000045f0| 70 61 67 65 73 0a 58 23 | 20 53 59 4e 4f 50 53 49 |pages.X#| SYNOPSI|
|00004600| 53 0a 58 23 09 6d 6b 64 | 6f 63 20 3c 66 69 6c 65 |S.X#.mkd|oc <file|
|00004610| 73 3e 0a 58 23 20 44 45 | 53 43 52 49 50 54 49 4f |s>.X# DE|SCRIPTIO|
|00004620| 4e 0a 58 23 09 43 72 65 | 61 74 65 73 20 64 6f 63 |N.X#.Cre|ates doc|
|00004630| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 28 74 65 78 74 |umentati|on (text|
|00004640| 29 20 66 69 6c 65 73 20 | 66 72 6f 6d 20 6d 61 6e |) files |from man|
|00004650| 75 61 6c 20 70 61 67 65 | 73 2e 0a 58 23 20 20 20 |ual page|s..X# |
|00004660| 20 20 20 20 54 68 65 20 | 64 6f 63 75 6d 65 6e 74 | The |document|
|00004670| 61 74 69 6f 6e 20 66 69 | 6c 65 73 20 61 72 65 20 |ation fi|les are |
|00004680| 75 73 65 64 20 62 79 20 | 68 65 6c 70 20 66 75 6e |used by |help fun|
|00004690| 63 74 69 6f 6e 20 6d 6f | 64 65 0a 58 23 20 20 20 |ction mo|de.X# |
|000046a0| 20 20 20 20 69 6e 20 47 | 4e 55 20 45 6d 61 63 73 | in G|NU Emacs|
|000046b0| 20 28 66 6f 72 20 74 68 | 65 20 74 69 6c 65 20 66 | (for th|e tile f|
|000046c0| 6f 72 74 68 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |orth env|ironment|
|000046d0| 29 2e 0a 58 23 20 4f 50 | 54 49 4f 4e 53 0a 58 23 |)..X# OP|TIONS.X#|
|000046e0| 09 6e 6f 6e 65 0a 58 23 | 20 53 45 45 20 41 4c 53 |.none.X#| SEE ALS|
|000046f0| 4f 0a 58 23 09 6e 72 6f | 66 66 28 31 29 2c 20 74 |O.X#.nro|ff(1), t|
|00004700| 72 28 31 29 2e 0a 58 23 | 20 41 55 54 48 4f 52 0a |r(1)..X#| AUTHOR.|
|00004710| 58 23 09 4d 69 6b 61 65 | 6c 20 52 2e 4b 2e 20 50 |X#.Mikae|l R.K. P|
|00004720| 61 74 65 6c 0a 58 23 09 | 43 6f 6d 70 75 74 65 72 |atel.X#.|Computer|
|00004730| 20 41 69 64 65 64 20 44 | 65 73 69 67 6e 20 4c 61 | Aided D|esign La|
|00004740| 62 6f 72 61 74 6f 72 79 | 20 28 43 41 44 4c 41 42 |boratory| (CADLAB|
|00004750| 29 0a 58 23 09 44 65 70 | 61 72 74 6d 65 6e 74 20 |).X#.Dep|artment |
|00004760| 6f 66 20 43 6f 6d 70 75 | 74 65 72 20 61 6e 64 20 |of Compu|ter and |
|00004770| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 53 63 69 65 |Informat|ion Scie|
|00004780| 6e 63 65 0a 58 23 09 4c | 69 6e 6b 6f 70 69 6e 67 |nce.X#.L|inkoping|
|00004790| 20 55 6e 69 76 65 72 73 | 69 74 79 0a 58 23 09 53 | Univers|ity.X#.S|
|000047a0| 2d 35 38 31 20 38 33 20 | 4c 49 4e 4b 4f 50 49 4e |-581 83 |LINKOPIN|
|000047b0| 47 0a 58 23 09 53 57 45 | 44 45 4e 0a 58 23 09 45 |G.X#.SWE|DEN.X#.E|
|000047c0| 6d 61 69 6c 3a 20 6d 69 | 70 40 69 64 61 2e 6c 69 |mail: mi|p@ida.li|
|000047d0| 75 2e 73 65 0a 58 23 20 | 48 49 53 54 4f 52 59 0a |u.se.X# |HISTORY.|
|000047e0| 58 23 20 09 43 72 65 61 | 74 65 64 20 6f 6e 3a 20 |X# .Crea|ted on: |
|000047f0| 09 32 30 20 4a 75 6e 65 | 20 31 39 39 30 0a 58 23 |.20 June| 1990.X#|
|00004800| 09 4c 61 73 74 65 64 20 | 75 70 64 61 74 65 64 3a |.Lasted |updated:|
|00004810| 09 32 30 20 4a 75 6e 65 | 20 31 39 39 30 0a 58 0a |.20 June| 1990.X.|
|00004820| 58 66 6f 72 20 66 69 6c | 65 20 69 6e 20 24 31 0a |Xfor fil|e in $1.|
|00004830| 58 64 6f 09 0a 58 09 6e | 72 6f 66 66 20 2d 6d 61 |Xdo..X.n|roff -ma|
|00004840| 6e 20 24 66 69 6c 65 20 | 7c 20 74 72 20 2d 64 20 |n $file || tr -d |
|00004850| 22 5f 5c 30 31 30 22 20 | 3e 20 24 66 69 6c 65 2e |"_\010" |> $file.|
|00004860| 64 6f 63 0a 58 64 6f 6e | 65 0a 58 0a 58 0a 45 4e |doc.Xdon|e.X.X.EN|
|00004870| 44 5f 4f 46 5f 62 69 6e | 2f 6d 6b 64 6f 63 0a 69 |D_OF_bin|/mkdoc.i|
|00004880| 66 20 74 65 73 74 20 36 | 37 35 20 2d 6e 65 20 60 |f test 6|75 -ne `|
|00004890| 77 63 20 2d 63 20 3c 62 | 69 6e 2f 6d 6b 64 6f 63 |wc -c <b|in/mkdoc|
|000048a0| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|000048b0| 20 73 68 61 72 3a 20 5c | 22 62 69 6e 2f 6d 6b 64 | shar: \|"bin/mkd|
|000048c0| 6f 63 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |oc\" unp|acked wi|
|000048d0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|000048e0| 69 0a 63 68 6d 6f 64 20 | 2b 78 20 62 69 6e 2f 6d |i.chmod |+x bin/m|
|000048f0| 6b 64 6f 63 0a 23 20 65 | 6e 64 20 6f 66 20 6f 76 |kdoc.# e|nd of ov|
|00004900| 65 72 77 72 69 74 69 6e | 67 20 63 68 65 63 6b 0a |erwritin|g check.|
|00004910| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 62 69 |fi.if te|st -f bi|
|00004920| 6e 2f 73 68 6f 72 74 20 | 2d 61 20 22 24 7b 31 7d |n/short |-a "${1}|
|00004930| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00004940| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00004950| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00004960| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00004970| 20 5c 22 62 69 6e 2f 73 | 68 6f 72 74 5c 22 0a 65 | \"bin/s|hort\".e|
|00004980| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00004990| 78 74 72 61 63 74 69 6e | 67 20 5c 22 62 69 6e 2f |xtractin|g \"bin/|
|000049a0| 73 68 6f 72 74 5c 22 20 | 5c 28 36 35 39 20 63 68 |short\" |\(659 ch|
|000049b0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000049c0| 73 2f 5e 58 2f 2f 22 20 | 3e 62 69 6e 2f 73 68 6f |s/^X//" |>bin/sho|
|000049d0| 72 74 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 62 69 6e |rt <<'EN|D_OF_bin|
|000049e0| 2f 73 68 6f 72 74 27 0a | 58 23 21 20 2f 62 69 6e |/short'.|X#! /bin|
|000049f0| 2f 73 68 0a 58 23 20 4e | 41 4d 45 0a 58 23 09 73 |/sh.X# N|AME.X#.s|
|00004a00| 68 6f 72 74 20 2d 20 61 | 20 73 68 6f 72 74 20 64 |hort - a| short d|
|00004a10| 65 73 63 72 69 70 74 69 | 6f 6e 20 6f 66 20 61 76 |escripti|on of av|
|00004a20| 61 69 6c 61 62 6c 65 20 | 64 65 66 69 6e 69 74 69 |ailable |definiti|
|00004a30| 6f 6e 73 20 69 6e 20 61 | 20 74 69 6c 65 20 66 69 |ons in a| tile fi|
|00004a40| 6c 65 0a 58 23 20 53 59 | 4e 4f 50 53 49 53 0a 58 |le.X# SY|NOPSIS.X|
|00004a50| 23 09 73 68 6f 72 74 20 | 3c 66 69 6c 65 3e 0a 58 |#.short |<file>.X|
|00004a60| 23 20 44 45 53 43 52 49 | 50 54 49 4f 4e 0a 58 23 |# DESCRI|PTION.X#|
|00004a70| 09 47 69 76 65 73 20 61 | 6c 6c 20 74 68 65 20 64 |.Gives a|ll the d|
|00004a80| 65 66 69 6e 69 6e 69 74 | 69 6f 6e 20 6c 69 6e 65 |efininit|ion line|
|00004a90| 73 20 69 6e 20 61 20 74 | 69 6c 65 20 66 6f 72 74 |s in a t|ile fort|
|00004aa0| 68 20 73 6f 75 72 63 65 | 20 66 69 6c 65 2e 0a 58 |h source| file..X|
|00004ab0| 23 09 0a 58 23 20 4f 50 | 54 49 4f 4e 53 0a 58 23 |#..X# OP|TIONS.X#|
|00004ac0| 09 6e 6f 6e 65 0a 58 23 | 20 53 45 45 20 41 4c 53 |.none.X#| SEE ALS|
|00004ad0| 4f 0a 58 23 09 74 69 6c | 65 28 31 29 2c 20 67 72 |O.X#.til|e(1), gr|
|00004ae0| 65 70 28 31 29 0a 58 23 | 20 41 55 54 48 4f 52 0a |ep(1).X#| AUTHOR.|
|00004af0| 58 23 09 4d 69 6b 61 65 | 6c 20 52 2e 4b 2e 20 50 |X#.Mikae|l R.K. P|
|00004b00| 61 74 65 6c 0a 58 23 09 | 43 6f 6d 70 75 74 65 72 |atel.X#.|Computer|
|00004b10| 20 41 69 64 65 64 20 44 | 65 73 69 67 6e 20 4c 61 | Aided D|esign La|
|00004b20| 62 6f 72 61 74 6f 72 79 | 20 28 43 41 44 4c 41 42 |boratory| (CADLAB|
|00004b30| 29 0a 58 23 09 44 65 70 | 61 72 74 6d 65 6e 74 20 |).X#.Dep|artment |
|00004b40| 6f 66 20 43 6f 6d 70 75 | 74 65 72 20 61 6e 64 20 |of Compu|ter and |
|00004b50| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 53 63 69 65 |Informat|ion Scie|
|00004b60| 6e 63 65 0a 58 23 09 4c | 69 6e 6b 6f 70 69 6e 67 |nce.X#.L|inkoping|
|00004b70| 20 55 6e 69 76 65 72 73 | 69 74 79 0a 58 23 09 53 | Univers|ity.X#.S|
|00004b80| 2d 35 38 31 20 38 33 20 | 4c 49 4e 4b 4f 50 49 4e |-581 83 |LINKOPIN|
|00004b90| 47 0a 58 23 09 53 57 45 | 44 45 4e 0a 58 23 09 45 |G.X#.SWE|DEN.X#.E|
|00004ba0| 6d 61 69 6c 3a 20 6d 69 | 70 40 69 64 61 2e 6c 69 |mail: mi|p@ida.li|
|00004bb0| 75 2e 73 65 0a 58 23 20 | 48 49 53 54 4f 52 59 0a |u.se.X# |HISTORY.|
|00004bc0| 58 23 20 09 43 72 65 61 | 74 65 64 20 6f 6e 3a 20 |X# .Crea|ted on: |
|00004bd0| 09 30 32 20 4a 75 6e 65 | 20 31 39 39 30 0a 58 23 |.02 June| 1990.X#|
|00004be0| 09 4c 61 73 74 65 64 20 | 75 70 64 61 74 65 64 3a |.Lasted |updated:|
|00004bf0| 09 30 32 20 4a 75 6e 65 | 20 31 39 39 30 0a 58 0a |.02 June| 1990.X.|
|00004c00| 58 69 66 20 5b 20 22 24 | 31 22 20 3d 20 22 22 20 |Xif [ "$|1" = "" |
|00004c10| 5d 0a 58 74 68 65 6e 0a | 58 09 65 63 68 6f 20 22 |].Xthen.|X.echo "|
|00004c20| 55 73 61 67 65 3a 20 20 | 73 68 6f 72 74 20 66 69 |Usage: |short fi|
|00004c30| 6c 65 20 2e 2e 2e 22 0a | 58 65 6c 73 65 0a 58 09 |le ...".|Xelse.X.|
|00004c40| 66 6f 72 20 66 69 6c 65 | 20 69 6e 20 24 31 0a 58 |for file| in $1.X|
|00004c50| 09 64 6f 09 0a 58 09 09 | 65 63 68 6f 20 22 44 65 |.do..X..|echo "De|
|00004c60| 66 69 6e 69 74 69 6f 6e | 73 20 69 6e 3a 20 24 66 |finition|s in: $f|
|00004c70| 69 6c 65 22 0a 58 09 09 | 67 72 65 70 20 22 5c 2d |ile".X..|grep "\-|
|00004c80| 5c 2d 22 20 24 66 69 6c | 65 0a 58 09 09 65 63 68 |\-" $fil|e.X..ech|
|00004c90| 6f 0a 58 09 64 6f 6e 65 | 0a 58 66 69 0a 58 0a 45 |o.X.done|.Xfi.X.E|
|00004ca0| 4e 44 5f 4f 46 5f 62 69 | 6e 2f 73 68 6f 72 74 0a |ND_OF_bi|n/short.|
|00004cb0| 69 66 20 74 65 73 74 20 | 36 35 39 20 2d 6e 65 20 |if test |659 -ne |
|00004cc0| 60 77 63 20 2d 63 20 3c | 62 69 6e 2f 73 68 6f 72 |`wc -c <|bin/shor|
|00004cd0| 74 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |t`; then|. ech|
|00004ce0| 6f 20 73 68 61 72 3a 20 | 5c 22 62 69 6e 2f 73 68 |o shar: |\"bin/sh|
|00004cf0| 6f 72 74 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |ort\" un|packed w|
|00004d00| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00004d10| 66 69 0a 63 68 6d 6f 64 | 20 2b 78 20 62 69 6e 2f |fi.chmod| +x bin/|
|00004d20| 73 68 6f 72 74 0a 23 20 | 65 6e 64 20 6f 66 20 6f |short.# |end of o|
|00004d30| 76 65 72 77 72 69 74 69 | 6e 67 20 63 68 65 63 6b |verwriti|ng check|
|00004d40| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 62 |.fi.if t|est -f b|
|00004d50| 69 6e 2f 73 6f 70 20 2d | 61 20 22 24 7b 31 7d 22 |in/sop -|a "${1}"|
|00004d60| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00004d70| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00004d80| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00004d90| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00004da0| 5c 22 62 69 6e 2f 73 6f | 70 5c 22 0a 65 6c 73 65 |\"bin/so|p\".else|
|00004db0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00004dc0| 61 63 74 69 6e 67 20 5c | 22 62 69 6e 2f 73 6f 70 |acting \|"bin/sop|
|00004dd0| 5c 22 20 5c 28 36 31 39 | 20 63 68 61 72 61 63 74 |\" \(619| charact|
|00004de0| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00004df0| 2f 22 20 3e 62 69 6e 2f | 73 6f 70 20 3c 3c 27 45 |/" >bin/|sop <<'E|
|00004e00| 4e 44 5f 4f 46 5f 62 69 | 6e 2f 73 6f 70 27 0a 58 |ND_OF_bi|n/sop'.X|
|00004e10| 23 21 20 2f 62 69 6e 2f | 73 68 0a 58 23 0a 58 23 |#! /bin/|sh.X#.X#|
|00004e20| 20 4e 41 4d 45 0a 58 23 | 09 73 6f 70 20 2d 20 73 | NAME.X#|.sop - s|
|00004e30| 74 61 63 6b 20 6f 70 65 | 72 61 74 69 6f 6e 73 0a |tack ope|rations.|
|00004e40| 58 23 20 53 59 4e 4f 50 | 53 49 53 0a 58 23 09 73 |X# SYNOP|SIS.X#.s|
|00004e50| 6f 70 20 66 69 6c 65 73 | 0a 58 23 20 44 45 53 43 |op files|.X# DESC|
|00004e60| 52 49 50 54 49 4f 4e 0a | 58 23 09 46 69 6e 64 20 |RIPTION.|X#.Find |
|00004e70| 70 6f 73 73 69 62 6c 65 | 20 73 74 61 63 6b 20 6f |possible| stack o|
|00004e80| 70 74 69 6d 69 7a 61 74 | 69 6f 6e 73 2e 0a 58 23 |ptimizat|ions..X#|
|00004e90| 20 53 45 45 20 41 4c 53 | 4f 0a 58 23 09 67 72 65 | SEE ALS|O.X#.gre|
|00004ea0| 70 28 31 29 0a 58 23 20 | 41 55 54 48 4f 52 0a 58 |p(1).X# |AUTHOR.X|
|00004eb0| 23 09 4d 69 6b 61 65 6c | 20 52 2e 4b 2e 20 50 61 |#.Mikael| R.K. Pa|
|00004ec0| 74 65 6c 0a 58 23 09 43 | 6f 6d 70 75 74 65 72 20 |tel.X#.C|omputer |
|00004ed0| 41 69 64 65 64 20 44 65 | 73 69 67 6e 20 4c 61 62 |Aided De|sign Lab|
|00004ee0| 6f 72 61 74 6f 72 79 20 | 28 43 41 44 4c 41 42 29 |oratory |(CADLAB)|
|00004ef0| 0a 58 23 09 44 65 70 61 | 72 74 6d 65 6e 74 20 6f |.X#.Depa|rtment o|
|00004f00| 66 20 43 6f 6d 70 75 74 | 65 72 20 61 6e 64 20 49 |f Comput|er and I|
|00004f10| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 53 63 69 65 6e |nformati|on Scien|
|00004f20| 63 65 0a 58 23 09 4c 69 | 6e 6b 6f 70 69 6e 67 20 |ce.X#.Li|nkoping |
|00004f30| 55 6e 69 76 65 72 73 69 | 74 79 0a 58 23 09 53 2d |Universi|ty.X#.S-|
|00004f40| 35 38 31 20 38 33 20 4c | 49 4e 4b 4f 50 49 4e 47 |581 83 L|INKOPING|
|00004f50| 0a 58 23 09 53 57 45 44 | 45 4e 0a 58 23 09 45 6d |.X#.SWED|EN.X#.Em|
|00004f60| 61 69 6c 3a 20 6d 69 70 | 40 69 64 61 2e 6c 69 75 |ail: mip|@ida.liu|
|00004f70| 2e 73 65 0a 58 23 20 48 | 49 53 54 4f 52 59 0a 58 |.se.X# H|ISTORY.X|
|00004f80| 23 20 09 43 72 65 61 74 | 65 64 20 6f 6e 3a 20 09 |# .Creat|ed on: .|
|00004f90| 30 31 20 4d 61 72 63 68 | 20 31 39 39 30 0a 58 23 |01 March| 1990.X#|
|00004fa0| 09 4c 61 73 74 65 64 20 | 75 70 64 61 74 65 64 3a |.Lasted |updated:|
|00004fb0| 09 30 32 20 4a 75 6e 65 | 20 31 39 39 30 0a 58 0a |.02 June| 1990.X.|
|00004fc0| 58 69 66 20 5b 20 22 24 | 31 22 20 3d 20 22 22 20 |Xif [ "$|1" = "" |
|00004fd0| 5d 0a 58 74 68 65 6e 0a | 58 09 65 63 68 6f 20 22 |].Xthen.|X.echo "|
|00004fe0| 55 73 61 67 65 3a 20 20 | 73 6f 70 20 66 69 6c 65 |Usage: |sop file|
|00004ff0| 20 2e 2e 2e 22 0a 58 65 | 6c 73 65 0a 58 09 66 6f | ...".Xe|lse.X.fo|
|00005000| 72 20 66 69 6c 65 20 69 | 6e 20 24 31 0a 58 09 64 |r file i|n $1.X.d|
|00005010| 6f 09 0a 58 09 09 65 63 | 68 6f 20 22 53 74 61 63 |o..X..ec|ho "Stac|
|00005020| 6b 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 73 20 |k optimi|zations |
|00005030| 69 6e 3a 20 24 66 69 6c | 65 22 0a 58 09 09 65 67 |in: $fil|e".X..eg|
|00005040| 72 65 70 20 2d 6e 20 22 | 73 77 61 70 20 64 72 6f |rep -n "|swap dro|
|00005050| 70 20 7c 20 64 72 6f 70 | 20 64 72 6f 70 20 7c 20 |p | drop| drop | |
|00005060| 72 6f 74 20 72 6f 74 20 | 7c 20 73 77 61 70 20 6f |rot rot || swap o|
|00005070| 76 65 72 20 7c 20 6f 76 | 65 72 20 6f 76 65 72 22 |ver | ov|er over"|
|00005080| 20 24 66 69 6c 65 0a 58 | 09 09 65 63 68 6f 0a 58 | $file.X|..echo.X|
|00005090| 09 64 6f 6e 65 0a 58 0a | 58 66 69 0a 45 4e 44 5f |.done.X.|Xfi.END_|
|000050a0| 4f 46 5f 62 69 6e 2f 73 | 6f 70 0a 69 66 20 74 65 |OF_bin/s|op.if te|
|000050b0| 73 74 20 36 31 39 20 2d | 6e 65 20 60 77 63 20 2d |st 619 -|ne `wc -|
|000050c0| 63 20 3c 62 69 6e 2f 73 | 6f 70 60 3b 20 74 68 65 |c <bin/s|op`; the|
|000050d0| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|000050e0| 20 5c 22 62 69 6e 2f 73 | 6f 70 5c 22 20 75 6e 70 | \"bin/s|op\" unp|
|000050f0| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00005100| 20 73 69 7a 65 21 0a 66 | 69 0a 63 68 6d 6f 64 20 | size!.f|i.chmod |
|00005110| 2b 78 20 62 69 6e 2f 73 | 6f 70 0a 23 20 65 6e 64 |+x bin/s|op.# end|
|00005120| 20 6f 66 20 6f 76 65 72 | 77 72 69 74 69 6e 67 20 | of over|writing |
|00005130| 63 68 65 63 6b 0a 66 69 | 0a 69 66 20 74 65 73 74 |check.fi|.if test|
|00005140| 20 21 20 2d 64 20 64 6f | 63 20 3b 20 74 68 65 6e | ! -d do|c ; then|
|00005150| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00005160| 43 72 65 61 74 69 6e 67 | 20 64 69 72 65 63 74 6f |Creating| directo|
|00005170| 72 79 20 5c 22 64 6f 63 | 5c 22 0a 20 20 20 20 6d |ry \"doc|\". m|
|00005180| 6b 64 69 72 20 64 6f 63 | 0a 66 69 0a 69 66 20 74 |kdir doc|.fi.if t|
|00005190| 65 73 74 20 21 20 2d 64 | 20 6c 69 62 20 3b 20 74 |est ! -d| lib ; t|
|000051a0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|000051b0| 72 3a 20 43 72 65 61 74 | 69 6e 67 20 64 69 72 65 |r: Creat|ing dire|
|000051c0| 63 74 6f 72 79 20 5c 22 | 6c 69 62 5c 22 0a 20 20 |ctory \"|lib\". |
|000051d0| 20 20 6d 6b 64 69 72 20 | 6c 69 62 0a 66 69 0a 69 | mkdir |lib.fi.i|
|000051e0| 66 20 74 65 73 74 20 21 | 20 2d 64 20 6d 61 6e 20 |f test !| -d man |
|000051f0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00005200| 73 68 61 72 3a 20 43 72 | 65 61 74 69 6e 67 20 64 |shar: Cr|eating d|
|00005210| 69 72 65 63 74 6f 72 79 | 20 5c 22 6d 61 6e 5c 22 |irectory| \"man\"|
|00005220| 0a 20 20 20 20 6d 6b 64 | 69 72 20 6d 61 6e 0a 66 |. mkd|ir man.f|
|00005230| 69 0a 69 66 20 74 65 73 | 74 20 21 20 2d 64 20 6d |i.if tes|t ! -d m|
|00005240| 61 6e 2f 6d 61 6e 31 20 | 3b 20 74 68 65 6e 0a 20 |an/man1 |; then. |
|00005250| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 43 72 | echo |shar: Cr|
|00005260| 65 61 74 69 6e 67 20 64 | 69 72 65 63 74 6f 72 79 |eating d|irectory|
|00005270| 20 5c 22 6d 61 6e 2f 6d | 61 6e 31 5c 22 0a 20 20 | \"man/m|an1\". |
|00005280| 20 20 6d 6b 64 69 72 20 | 6d 61 6e 2f 6d 61 6e 31 | mkdir |man/man1|
|00005290| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 21 20 2d 64 |.fi.if t|est ! -d|
|000052a0| 20 6d 61 6e 2f 6d 61 6e | 33 20 3b 20 74 68 65 6e | man/man|3 ; then|
|000052b0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|000052c0| 43 72 65 61 74 69 6e 67 | 20 64 69 72 65 63 74 6f |Creating| directo|
|000052d0| 72 79 20 5c 22 6d 61 6e | 2f 6d 61 6e 33 5c 22 0a |ry \"man|/man3\".|
|000052e0| 20 20 20 20 6d 6b 64 69 | 72 20 6d 61 6e 2f 6d 61 | mkdi|r man/ma|
|000052f0| 6e 33 0a 66 69 0a 69 66 | 20 74 65 73 74 20 21 20 |n3.fi.if| test ! |
|00005300| 2d 64 20 73 72 63 20 3b | 20 74 68 65 6e 0a 20 20 |-d src ;| then. |
|00005310| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 43 72 65 | echo s|har: Cre|
|00005320| 61 74 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 20 |ating di|rectory |
|00005330| 5c 22 73 72 63 5c 22 0a | 20 20 20 20 6d 6b 64 69 |\"src\".| mkdi|
|00005340| 72 20 73 72 63 0a 66 69 | 0a 69 66 20 74 65 73 74 |r src.fi|.if test|
|00005350| 20 2d 66 20 73 72 63 2f | 65 72 72 6f 72 2e 68 20 | -f src/|error.h |
|00005360| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00005370| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00005380| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00005390| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|000053a0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 73 72 63 2f 65 |ing file| \"src/e|
|000053b0| 72 72 6f 72 2e 68 5c 22 | 0a 65 6c 73 65 0a 65 63 |rror.h\"|.else.ec|
|000053c0| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|000053d0| 69 6e 67 20 5c 22 73 72 | 63 2f 65 72 72 6f 72 2e |ing \"sr|c/error.|
|000053e0| 68 5c 22 20 5c 28 33 39 | 36 20 63 68 61 72 61 63 |h\" \(39|6 charac|
|000053f0| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00005400| 2f 2f 22 20 3e 73 72 63 | 2f 65 72 72 6f 72 2e 68 |//" >src|/error.h|
|00005410| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 73 72 63 2f 65 | <<'END_|OF_src/e|
|00005420| 72 72 6f 72 2e 68 27 0a | 58 2f 2a 0a 58 20 20 43 |rror.h'.|X/*.X C|
|00005430| 20 42 41 53 45 44 20 46 | 4f 52 54 48 2d 38 33 20 | BASED F|ORTH-83 |
|00005440| 4d 55 4c 54 49 2d 54 41 | 53 4b 49 4e 47 20 4b 45 |MULTI-TA|SKING KE|
|00005450| 52 4e 45 4c 20 45 52 52 | 4f 52 20 4d 41 4e 41 47 |RNEL ERR|OR MANAG|
|00005460| 45 4d 45 4e 54 20 44 45 | 46 49 4e 49 54 49 4f 4e |EMENT DE|FINITION|
|00005470| 53 0a 58 0a 58 20 20 43 | 6f 70 79 72 69 67 68 74 |S.X.X C|opyright|
|00005480| 20 28 63 29 20 31 39 38 | 39 2d 31 39 39 30 20 62 | (c) 198|9-1990 b|
|00005490| 79 20 4d 69 6b 61 65 6c | 20 52 2e 4b 2e 20 50 61 |y Mikael| R.K. Pa|
|000054a0| 74 65 6c 0a 58 0a 58 2a | 2f 0a 58 0a 58 0a 58 2f |tel.X.X*|/.X.X.X/|
|000054b0| 2a 20 49 4e 43 4c 55 44 | 45 20 46 49 4c 45 53 3a |* INCLUD|E FILES:|
|000054c0| 20 53 45 54 4a 55 4d 50 | 20 2a 2f 0a 58 0a 58 23 | SETJUMP| */.X.X#|
|000054d0| 69 6e 63 6c 75 64 65 20 | 3c 73 65 74 6a 6d 70 2e |include |<setjmp.|
|000054e0| 68 3e 0a 58 0a 58 0a 58 | 2f 2a 20 57 41 52 4d 20 |h>.X.X.X|/* WARM |
|000054f0| 52 45 53 54 41 52 54 20 | 45 4e 56 49 52 4f 4e 4d |RESTART |ENVIRONM|
|00005500| 45 4e 54 20 46 4f 52 20 | 4c 4f 4e 47 4a 4d 50 20 |ENT FOR |LONGJMP |
|00005510| 2a 2f 0a 58 0a 58 65 78 | 74 65 72 6e 20 6a 6d 70 |*/.X.Xex|tern jmp|
|00005520| 5f 62 75 66 20 72 65 73 | 74 61 72 74 3b 0a 58 0a |_buf res|tart;.X.|
|00005530| 58 0a 58 2f 2a 20 45 58 | 50 4f 52 54 45 44 20 46 |X.X/* EX|PORTED F|
|00005540| 55 4e 43 54 49 4f 4e 53 | 20 41 4e 44 20 50 52 4f |UNCTIONS| AND PRO|
|00005550| 43 45 44 55 52 45 53 20 | 2a 2f 0a 58 0a 58 56 4f |CEDURES |*/.X.XVO|
|00005560| 49 44 20 65 72 72 6f 72 | 5f 69 6e 69 74 69 61 74 |ID error|_initiat|
|00005570| 65 28 29 3b 0a 58 56 4f | 49 44 20 65 72 72 6f 72 |e();.XVO|ID error|
|00005580| 5f 72 65 73 74 61 72 74 | 28 29 3b 0a 58 56 4f 49 |_restart|();.XVOI|
|00005590| 44 20 65 72 72 6f 72 5f | 66 61 74 61 6c 28 29 3b |D error_|fatal();|
|000055a0| 0a 58 56 4f 49 44 20 65 | 72 72 6f 72 5f 73 69 67 |.XVOID e|rror_sig|
|000055b0| 6e 61 6c 28 29 3b 0a 58 | 56 4f 49 44 20 65 72 72 |nal();.X|VOID err|
|000055c0| 6f 72 5f 66 69 6e 69 73 | 68 28 29 3b 0a 45 4e 44 |or_finis|h();.END|
|000055d0| 5f 4f 46 5f 73 72 63 2f | 65 72 72 6f 72 2e 68 0a |_OF_src/|error.h.|
|000055e0| 69 66 20 74 65 73 74 20 | 33 39 36 20 2d 6e 65 20 |if test |396 -ne |
|000055f0| 60 77 63 20 2d 63 20 3c | 73 72 63 2f 65 72 72 6f |`wc -c <|src/erro|
|00005600| 72 2e 68 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |r.h`; th|en. e|
|00005610| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 73 72 63 2f |cho shar|: \"src/|
|00005620| 65 72 72 6f 72 2e 68 5c | 22 20 75 6e 70 61 63 6b |error.h\|" unpack|
|00005630| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00005640| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00005650| 6f 76 65 72 77 72 69 74 | 69 6e 67 20 63 68 65 63 |overwrit|ing chec|
|00005660| 6b 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |k.fi.if |test -f |
|00005670| 73 72 63 2f 69 6f 2e 68 | 20 2d 61 20 22 24 7b 31 |src/io.h| -a "${1|
|00005680| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00005690| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|000056a0| 57 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |Will not| over-wr|
|000056b0| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|000056c0| 65 20 5c 22 73 72 63 2f | 69 6f 2e 68 5c 22 0a 65 |e \"src/|io.h\".e|
|000056d0| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|000056e0| 78 74 72 61 63 74 69 6e | 67 20 5c 22 73 72 63 2f |xtractin|g \"src/|
|000056f0| 69 6f 2e 68 5c 22 20 5c | 28 31 36 39 33 20 63 68 |io.h\" \|(1693 ch|
|00005700| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00005710| 73 2f 5e 58 2f 2f 22 20 | 3e 73 72 63 2f 69 6f 2e |s/^X//" |>src/io.|
|00005720| 68 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 73 72 63 2f |h <<'END|_OF_src/|
|00005730| 69 6f 2e 68 27 0a 58 2f | 2a 0a 58 20 20 43 20 42 |io.h'.X/|*.X C B|
|00005740| 41 53 45 44 20 46 4f 52 | 54 48 2d 38 33 20 4d 55 |ASED FOR|TH-83 MU|
|00005750| 4c 54 49 2d 54 41 53 4b | 49 4e 47 20 49 4f 20 4d |LTI-TASK|ING IO M|
|00005760| 41 4e 41 47 45 4d 45 4e | 54 20 44 45 46 49 4e 49 |ANAGEMEN|T DEFINI|
|00005770| 54 49 4f 4e 53 0a 58 0a | 58 20 20 43 6f 70 79 72 |TIONS.X.|X Copyr|
|00005780| 69 67 68 74 20 28 63 29 | 20 31 39 38 38 2d 31 39 |ight (c)| 1988-19|
|00005790| 39 30 20 62 79 20 4d 69 | 6b 61 65 6c 20 52 2e 4b |90 by Mi|kael R.K|
|000057a0| 2e 20 50 61 74 65 6c 0a | 58 0a 58 2a 2f 0a 58 0a |. Patel.|X.X*/.X.|
|000057b0| 58 0a 58 2f 2a 20 49 4e | 43 4c 55 44 45 20 46 49 |X.X/* IN|CLUDE FI|
|000057c0| 4c 45 53 3a 20 53 54 41 | 4e 44 41 52 44 20 49 4e |LES: STA|NDARD IN|
|000057d0| 50 55 54 2f 4f 55 54 50 | 55 54 20 2a 2f 0a 58 0a |PUT/OUTP|UT */.X.|
|000057e0| 58 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f |X#includ|e <stdio|
|000057f0| 2e 68 3e 0a 58 0a 58 0a | 58 2f 2a 20 53 54 41 4e |.h>.X.X.|X/* STAN|
|00005800| 44 41 52 44 20 49 4e 50 | 55 54 20 41 4e 44 20 4f |DARD INP|UT AND O|
|00005810| 55 54 50 55 54 20 44 45 | 53 43 52 49 50 54 4f 52 |UTPUT DE|SCRIPTOR|
|00005820| 53 20 2a 2f 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |S */.X.X|#define |
|00005830| 53 54 44 49 4e 20 20 30 | 0a 58 23 64 65 66 69 6e |STDIN 0|.X#defin|
|00005840| 65 20 53 54 44 4f 55 54 | 20 31 0a 58 0a 58 0a 58 |e STDOUT| 1.X.X.X|
|00005850| 2f 2a 20 57 48 49 54 45 | 20 53 50 41 43 45 20 44 |/* WHITE| SPACE D|
|00005860| 45 46 49 4e 49 54 49 4f | 4e 2c 20 43 48 41 52 41 |EFINITIO|N, CHARA|
|00005870| 43 54 45 52 20 4d 41 53 | 4b 20 41 4e 44 20 44 49 |CTER MAS|K AND DI|
|00005880| 52 45 43 54 4f 52 59 20 | 53 45 50 45 52 41 54 4f |RECTORY |SEPERATO|
|00005890| 52 20 2a 2f 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |R */.X.X|#define |
|000058a0| 49 53 53 50 41 43 45 28 | 63 29 20 28 28 63 29 20 |ISSPACE(|c) ((c) |
|000058b0| 3c 3d 20 27 20 27 29 0a | 58 23 64 65 66 69 6e 65 |<= ' ').|X#define|
|000058c0| 20 43 4d 41 53 4b 20 30 | 33 37 37 0a 58 23 64 65 | CMASK 0|377.X#de|
|000058d0| 66 69 6e 65 20 44 49 52 | 53 45 50 43 48 41 52 20 |fine DIR|SEPCHAR |
|000058e0| 27 2f 27 0a 58 0a 58 0a | 58 2f 2a 20 49 4e 46 49 |'/'.X.X.|X/* INFI|
|000058f0| 4c 45 20 42 55 46 46 45 | 52 20 44 45 46 49 4e 49 |LE BUFFE|R DEFINI|
|00005900| 54 49 4f 4e 20 2a 2f 0a | 58 0a 58 23 64 65 66 69 |TION */.|X.X#defi|
|00005910| 6e 65 20 42 55 46 53 49 | 5a 45 20 31 30 32 34 0a |ne BUFSI|ZE 1024.|
|00005920| 58 0a 58 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |X.Xtyped|ef struc|
|00005930| 74 20 7b 0a 58 20 20 20 | 20 43 53 54 52 20 66 6e |t {.X | CSTR fn|
|00005940| 3b 0a 58 20 20 20 20 49 | 4e 54 20 20 6c 6e 3b 0a |;.X I|NT ln;.|
|00005950| 58 20 20 20 20 49 4e 54 | 20 20 66 64 3b 0a 58 20 |X INT| fd;.X |
|00005960| 20 20 20 49 4e 54 20 20 | 62 75 66 70 3b 0a 58 20 | INT |bufp;.X |
|00005970| 20 20 20 49 4e 54 20 20 | 63 63 3b 0a 58 20 20 20 | INT |cc;.X |
|00005980| 20 43 48 41 52 20 62 75 | 66 5b 42 55 46 53 49 5a | CHAR bu|f[BUFSIZ|
|00005990| 45 5d 3b 0a 58 7d 20 66 | 69 6c 65 5f 62 75 66 66 |E];.X} f|ile_buff|
|000059a0| 65 72 2c 20 2a 49 4e 46 | 49 4c 45 5f 42 55 46 46 |er, *INF|ILE_BUFF|
|000059b0| 45 52 3b 0a 58 0a 58 65 | 78 74 65 72 6e 20 49 4e |ER;.X.Xe|xtern IN|
|000059c0| 46 49 4c 45 5f 42 55 46 | 46 45 52 20 69 6f 5f 69 |FILE_BUF|FER io_i|
|000059d0| 6e 66 73 74 61 63 6b 5b | 5d 3b 0a 58 65 78 74 65 |nfstack[|];.Xexte|
|000059e0| 72 6e 20 49 4e 54 20 69 | 6f 5f 69 6e 66 73 70 3b |rn INT i|o_infsp;|
|000059f0| 0a 58 0a 58 0a 58 2f 2a | 20 4f 55 54 46 49 4c 45 |.X.X.X/*| OUTFILE|
|00005a00| 20 41 4e 44 20 45 52 52 | 4f 52 20 46 49 4c 45 20 | AND ERR|OR FILE |
|00005a10| 44 45 46 49 4e 49 54 49 | 4f 4e 20 2a 2f 0a 58 0a |DEFINITI|ON */.X.|
|00005a20| 58 65 78 74 65 72 6e 20 | 46 49 4c 45 20 2a 69 6f |Xextern |FILE *io|
|00005a30| 5f 6f 75 74 66 3b 0a 58 | 65 78 74 65 72 6e 20 46 |_outf;.X|extern F|
|00005a40| 49 4c 45 20 2a 69 6f 5f | 65 72 72 66 3b 0a 58 0a |ILE *io_|errf;.X.|
|00005a50| 58 0a 58 2f 2a 20 41 50 | 50 45 4e 44 20 4f 52 44 |X.X/* AP|PEND ORD|
|00005a60| 45 52 20 46 4f 52 20 49 | 4f 5f 50 41 54 48 20 2a |ER FOR I|O_PATH *|
|00005a70| 2f 0a 58 0a 58 23 64 65 | 66 69 6e 65 20 49 4f 5f |/.X.X#de|fine IO_|
|00005a80| 50 41 54 48 5f 46 49 52 | 53 54 20 30 0a 58 23 64 |PATH_FIR|ST 0.X#d|
|00005a90| 65 66 69 6e 65 20 49 4f | 5f 50 41 54 48 5f 4c 41 |efine IO|_PATH_LA|
|00005aa0| 53 54 20 31 0a 58 0a 58 | 0a 58 2f 2a 20 49 4f 20 |ST 1.X.X|.X/* IO |
|00005ab0| 4d 41 4e 41 47 45 20 45 | 52 52 4f 52 20 43 4f 44 |MANAGE E|RROR COD|
|00005ac0| 45 53 20 2a 2f 0a 58 0a | 58 23 64 65 66 69 6e 65 |ES */.X.|X#define|
|00005ad0| 20 49 4f 5f 4e 4f 5f 45 | 52 52 4f 52 20 30 0a 58 | IO_NO_E|RROR 0.X|
|00005ae0| 23 64 65 66 69 6e 65 20 | 49 4f 5f 45 4f 46 20 2d |#define |IO_EOF -|
|00005af0| 31 0a 58 23 64 65 66 69 | 6e 65 20 49 4f 5f 50 41 |1.X#defi|ne IO_PA|
|00005b00| 54 48 5f 44 45 46 49 4e | 45 44 20 2d 31 0a 58 23 |TH_DEFIN|ED -1.X#|
|00005b10| 64 65 66 69 6e 65 20 49 | 4f 5f 46 49 4c 45 5f 49 |define I|O_FILE_I|
|00005b20| 4e 43 4c 55 44 45 44 20 | 2d 31 0a 58 23 64 65 66 |NCLUDED |-1.X#def|
|00005b30| 69 6e 65 20 49 4f 5f 55 | 4e 4b 4e 4f 57 4e 5f 46 |ine IO_U|NKNOWN_F|
|00005b40| 49 4c 45 20 2d 32 0a 58 | 23 64 65 66 69 6e 65 20 |ILE -2.X|#define |
|00005b50| 49 4f 5f 55 4e 4b 4e 4f | 57 4e 5f 50 41 54 48 20 |IO_UNKNO|WN_PATH |
|00005b60| 2d 32 0a 58 23 64 65 66 | 69 6e 65 20 49 4f 5f 54 |-2.X#def|ine IO_T|
|00005b70| 4f 4f 5f 4d 41 4e 59 5f | 50 41 54 48 53 20 2d 33 |OO_MANY_|PATHS -3|
|00005b80| 0a 58 23 64 65 66 69 6e | 65 20 49 4f 5f 54 4f 4f |.X#defin|e IO_TOO|
|00005b90| 5f 4d 41 4e 59 5f 46 49 | 4c 45 53 20 2d 33 0a 58 |_MANY_FI|LES -3.X|
|00005ba0| 0a 58 0a 58 2f 2a 20 45 | 58 50 4f 52 54 45 44 20 |.X.X/* E|XPORTED |
|00005bb0| 4d 41 43 52 4f 53 2c 20 | 46 55 4e 43 54 49 4f 4e |MACROS, |FUNCTION|
|00005bc0| 53 2c 20 41 4e 44 20 50 | 52 4f 43 45 44 55 52 45 |S, AND P|ROCEDURE|
|00005bd0| 53 20 2a 2f 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |S */.X.X|#define |
|00005be0| 69 6f 5f 67 65 74 63 68 | 61 72 28 29 20 5c 0a 58 |io_getch|ar() \.X|
|00005bf0| 20 20 20 20 28 28 69 6f | 5f 69 6e 66 73 74 61 63 | ((io|_infstac|
|00005c00| 6b 5b 69 6f 5f 69 6e 66 | 73 70 5d 20 2d 3e 20 62 |k[io_inf|sp] -> b|
|00005c10| 75 66 70 20 3c 20 69 6f | 5f 69 6e 66 73 74 61 63 |ufp < io|_infstac|
|00005c20| 6b 5b 69 6f 5f 69 6e 66 | 73 70 5d 20 2d 3e 20 63 |k[io_inf|sp] -> c|
|00005c30| 63 29 20 3f 20 5c 0a 58 | 20 20 20 20 20 28 6c 6f |c) ? \.X| (lo|
|00005c40| 6e 67 29 20 69 6f 5f 69 | 6e 66 73 74 61 63 6b 5b |ng) io_i|nfstack[|
|00005c50| 69 6f 5f 69 6e 66 73 70 | 5d 20 2d 3e 20 62 75 66 |io_infsp|] -> buf|
|00005c60| 5b 69 6f 5f 69 6e 66 73 | 74 61 63 6b 5b 69 6f 5f |[io_infs|tack[io_|
|00005c70| 69 6e 66 73 70 5d 20 2d | 3e 20 62 75 66 70 2b 2b |infsp] -|> bufp++|
|00005c80| 5d 20 26 20 43 4d 41 53 | 4b 20 3a 20 5c 0a 58 20 |] & CMAS|K : \.X |
|00005c90| 20 20 20 20 28 6c 6f 6e | 67 29 20 69 6f 5f 66 69 | (lon|g) io_fi|
|00005ca0| 6c 6c 62 75 66 28 29 29 | 0a 58 0a 58 23 64 65 66 |llbuf())|.X.X#def|
|00005cb0| 69 6e 65 20 69 6f 5f 65 | 6f 66 28 29 20 28 69 6f |ine io_e|of() (io|
|00005cc0| 5f 69 6e 66 73 70 20 3d | 3d 20 2d 31 29 0a 58 23 |_infsp =|= -1).X#|
|00005cd0| 64 65 66 69 6e 65 20 69 | 6f 5f 6e 6f 74 5f 65 6f |define i|o_not_eo|
|00005ce0| 66 28 29 20 28 69 6f 5f | 69 6e 66 73 70 20 3e 20 |f() (io_|infsp > |
|00005cf0| 2d 31 29 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 69 |-1).X.X#|define i|
|00005d00| 6f 5f 73 6f 75 72 63 65 | 28 29 20 28 69 6f 5f 69 |o_source|() (io_i|
|00005d10| 6e 66 73 74 61 63 6b 5b | 69 6f 5f 69 6e 66 73 70 |nfstack[|io_infsp|
|00005d20| 5d 20 2d 3e 20 66 6e 29 | 0a 58 23 64 65 66 69 6e |] -> fn)|.X#defin|
|00005d30| 65 20 69 6f 5f 6c 69 6e | 65 28 29 20 28 69 6f 5f |e io_lin|e() (io_|
|00005d40| 69 6e 66 73 74 61 63 6b | 5b 69 6f 5f 69 6e 66 73 |infstack|[io_infs|
|00005d50| 70 5d 20 2d 3e 20 6c 6e | 29 0a 58 23 64 65 66 69 |p] -> ln|).X#defi|
|00005d60| 6e 65 20 69 6f 5f 6e 65 | 77 6c 69 6e 65 28 29 20 |ne io_ne|wline() |
|00005d70| 28 2b 2b 69 6f 5f 6c 69 | 6e 65 28 29 29 0a 58 0a |(++io_li|ne()).X.|
|00005d80| 58 49 4e 54 20 20 69 6f | 5f 70 61 74 68 28 29 3b |XINT io|_path();|
|00005d90| 0a 58 49 4e 54 20 20 69 | 6f 5f 69 6e 66 69 6c 65 |.XINT i|o_infile|
|00005da0| 28 29 3b 0a 58 49 4e 54 | 20 20 69 6f 5f 66 69 6c |();.XINT| io_fil|
|00005db0| 6c 62 75 66 28 29 3b 0a | 58 0a 58 56 4f 49 44 20 |lbuf();.|X.XVOID |
|00005dc0| 69 6f 5f 66 6c 75 73 68 | 28 29 3b 0a 58 0a 58 56 |io_flush|();.X.XV|
|00005dd0| 4f 49 44 20 69 6f 5f 73 | 6b 69 70 28 29 3b 0a 58 |OID io_s|kip();.X|
|00005de0| 56 4f 49 44 20 69 6f 5f | 73 63 61 6e 28 29 3b 0a |VOID io_|scan();.|
|00005df0| 58 56 4f 49 44 20 69 6f | 5f 73 6b 69 70 73 70 61 |XVOID io|_skipspa|
|00005e00| 63 65 28 29 3b 0a 58 0a | 58 56 4f 49 44 20 69 6f |ce();.X.|XVOID io|
|00005e10| 5f 69 6e 69 74 69 61 74 | 65 28 29 3b 0a 58 56 4f |_initiat|e();.XVO|
|00005e20| 49 44 20 69 6f 5f 66 69 | 6e 69 73 68 28 29 3b 0a |ID io_fi|nish();.|
|00005e30| 45 4e 44 5f 4f 46 5f 73 | 72 63 2f 69 6f 2e 68 0a |END_OF_s|rc/io.h.|
|00005e40| 69 66 20 74 65 73 74 20 | 31 36 39 33 20 2d 6e 65 |if test |1693 -ne|
|00005e50| 20 60 77 63 20 2d 63 20 | 3c 73 72 63 2f 69 6f 2e | `wc -c |<src/io.|
|00005e60| 68 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |h`; then|. ech|
|00005e70| 6f 20 73 68 61 72 3a 20 | 5c 22 73 72 63 2f 69 6f |o shar: |\"src/io|
|00005e80| 2e 68 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |.h\" unp|acked wi|
|00005e90| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00005ea0| 69 0a 23 20 65 6e 64 20 | 6f 66 20 6f 76 65 72 77 |i.# end |of overw|
|00005eb0| 72 69 74 69 6e 67 20 63 | 68 65 63 6b 0a 66 69 0a |riting c|heck.fi.|
|00005ec0| 69 66 20 74 65 73 74 20 | 2d 66 20 73 72 63 2f 6d |if test |-f src/m|
|00005ed0| 65 6d 6f 72 79 2e 63 20 | 2d 61 20 22 24 7b 31 7d |emory.c |-a "${1}|
|00005ee0| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00005ef0| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00005f00| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00005f10| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00005f20| 20 5c 22 73 72 63 2f 6d | 65 6d 6f 72 79 2e 63 5c | \"src/m|emory.c\|
|00005f30| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00005f40| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 73 |: Extrac|ting \"s|
|00005f50| 72 63 2f 6d 65 6d 6f 72 | 79 2e 63 5c 22 20 5c 28 |rc/memor|y.c\" \(|
|00005f60| 31 36 39 32 20 63 68 61 | 72 61 63 74 65 72 73 5c |1692 cha|racters\|
|00005f70| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00005f80| 73 72 63 2f 6d 65 6d 6f | 72 79 2e 63 20 3c 3c 27 |src/memo|ry.c <<'|
|00005f90| 45 4e 44 5f 4f 46 5f 73 | 72 63 2f 6d 65 6d 6f 72 |END_OF_s|rc/memor|
|00005fa0| 79 2e 63 27 0a 58 2f 2a | 0a 58 20 20 43 20 42 41 |y.c'.X/*|.X C BA|
|00005fb0| 53 45 44 20 46 4f 52 54 | 48 2d 38 33 20 4d 55 4c |SED FORT|H-83 MUL|
|00005fc0| 54 49 2d 54 41 53 4b 49 | 4e 47 20 4b 45 52 4e 45 |TI-TASKI|NG KERNE|
|00005fd0| 4c 20 4d 45 4d 4f 52 59 | 20 4d 41 4e 41 47 45 4d |L MEMORY| MANAGEM|
|00005fe0| 45 4e 54 0a 58 0a 58 20 | 20 43 6f 70 79 72 69 67 |ENT.X.X | Copyrig|
|00005ff0| 68 74 20 28 63 29 20 31 | 39 38 39 2d 31 39 39 30 |ht (c) 1|989-1990|
|00006000| 20 62 79 20 4d 69 6b 61 | 65 6c 20 50 61 74 65 6c | by Mika|el Patel|
|00006010| 0a 58 0a 58 20 20 43 6f | 6d 70 75 74 65 72 20 41 |.X.X Co|mputer A|
|00006020| 69 64 65 64 20 44 65 73 | 69 67 6e 20 4c 61 62 6f |ided Des|ign Labo|
|00006030| 72 61 74 6f 72 79 20 28 | 43 41 44 4c 41 42 29 0a |ratory (|CADLAB).|
|00006040| 58 20 20 44 65 70 61 72 | 74 6d 65 6e 74 20 6f 66 |X Depar|tment of|
|00006050| 20 43 6f 6d 70 75 74 65 | 72 20 61 6e 64 20 49 6e | Compute|r and In|
|00006060| 66 6f 72 6d 61 74 69 6f | 6e 20 53 63 69 65 6e 63 |formatio|n Scienc|
|00006070| 65 0a 58 20 20 4c 69 6e | 6b 6f 70 69 6e 67 20 55 |e.X Lin|koping U|
|00006080| 6e 69 76 65 72 73 69 74 | 79 0a 58 20 20 53 2d 35 |niversit|y.X S-5|
|00006090| 38 31 20 38 33 20 4c 49 | 4e 4b 4f 50 49 4e 47 0a |81 83 LI|NKOPING.|
|000060a0| 58 20 20 53 57 45 44 45 | 4e 0a 58 0a 58 20 20 45 |X SWEDE|N.X.X E|
|000060b0| 6d 61 69 6c 3a 20 6d 69 | 70 40 69 64 61 2e 6c 69 |mail: mi|p@ida.li|
|000060c0| 75 2e 73 65 0a 58 20 20 | 0a 58 20 20 53 74 61 72 |u.se.X |.X Star|
|000060d0| 74 65 64 20 6f 6e 3a 20 | 38 20 4e 6f 76 65 6d 62 |ted on: |8 Novemb|
|000060e0| 65 72 20 31 39 38 39 0a | 58 0a 58 20 20 4c 61 73 |er 1989.|X.X Las|
|000060f0| 74 20 75 70 64 61 74 65 | 64 20 6f 6e 3a 20 32 36 |t update|d on: 26|
|00006100| 20 4a 75 6e 65 20 31 39 | 39 30 0a 58 0a 58 20 20 | June 19|90.X.X |
|00006110| 44 65 70 65 6e 64 65 6e | 63 69 65 73 3a 0a 58 20 |Dependen|cies:.X |
|00006120| 20 20 20 20 20 20 28 63 | 63 29 20 6d 65 6d 6f 72 | (c|c) memor|
|00006130| 79 2e 68 2c 20 69 6f 2e | 68 2c 20 61 6e 64 20 6b |y.h, io.|h, and k|
|00006140| 65 72 6e 65 6c 2e 68 0a | 58 0a 58 20 20 44 65 73 |ernel.h.|X.X Des|
|00006150| 63 72 69 70 74 69 6f 6e | 3a 0a 58 20 20 20 20 20 |cription|:.X |
|00006160| 20 20 48 61 6e 64 6c 65 | 73 20 6c 6f 77 20 6c 65 | Handle|s low le|
|00006170| 76 65 6c 20 61 63 63 65 | 73 73 20 74 6f 20 6d 65 |vel acce|ss to me|
|00006180| 6d 6f 72 79 20 61 6e 64 | 20 64 69 63 74 69 6f 6e |mory and| diction|
|00006190| 61 72 79 20 61 6c 6c 6f | 63 61 74 69 6f 6e 2e 0a |ary allo|cation..|
|000061a0| 58 20 20 0a 58 20 20 43 | 6f 70 79 69 6e 67 3a 0a |X .X C|opying:.|
|000061b0| 58 20 20 20 20 20 20 20 | 54 68 69 73 20 70 72 6f |X |This pro|
|000061c0| 67 72 61 6d 20 69 73 20 | 66 72 65 65 20 73 6f 66 |gram is |free sof|
|000061d0| 74 77 61 72 65 3b 20 79 | 6f 75 20 63 61 6e 20 72 |tware; y|ou can r|
|000061e0| 65 64 69 73 74 72 69 62 | 75 74 65 20 69 74 20 61 |edistrib|ute it a|
|000061f0| 6e 64 2f 6f 72 20 6d 6f | 64 69 66 79 0a 58 20 20 |nd/or mo|dify.X |
|00006200| 20 20 20 20 20 69 74 20 | 75 6e 64 65 72 20 74 68 | it |under th|
|00006210| 65 20 74 65 72 6d 73 20 | 6f 66 20 74 68 65 20 47 |e terms |of the G|
|00006220| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|00006230| 63 20 4c 69 63 65 6e 73 | 65 20 61 73 20 70 75 62 |c Licens|e as pub|
|00006240| 6c 69 73 68 65 64 20 62 | 79 0a 58 20 20 20 20 20 |lished b|y.X |
|00006250| 20 20 74 68 65 20 46 72 | 65 65 20 53 6f 66 74 77 | the Fr|ee Softw|
|00006260| 61 72 65 20 46 6f 75 6e | 64 61 74 69 6f 6e 3b 20 |are Foun|dation; |
|00006270| 65 69 74 68 65 72 20 76 | 65 72 73 69 6f 6e 20 31 |either v|ersion 1|
|00006280| 2c 20 6f 72 20 28 61 74 | 20 79 6f 75 72 20 6f 70 |, or (at| your op|
|00006290| 74 69 6f 6e 29 0a 58 20 | 20 20 20 20 20 20 61 6e |tion).X | an|
|000062a0| 79 20 6c 61 74 65 72 20 | 76 65 72 73 69 6f 6e 2e |y later |version.|
|000062b0| 0a 58 0a 58 20 20 20 20 | 20 20 20 54 68 69 73 20 |.X.X | This |
|000062c0| 70 72 6f 67 72 61 6d 20 | 69 73 20 64 69 73 74 72 |program |is distr|
|000062d0| 69 62 75 74 65 64 20 69 | 6e 20 74 68 65 20 68 6f |ibuted i|n the ho|
|000062e0| 70 65 20 74 68 61 74 20 | 69 74 20 77 69 6c 6c 20 |pe that |it will |
|000062f0| 62 65 20 75 73 65 66 75 | 6c 2c 0a 58 20 20 20 20 |be usefu|l,.X |
|00006300| 20 20 20 62 75 74 20 57 | 49 54 48 4f 55 54 20 41 | but W|ITHOUT A|
|00006310| 4e 59 20 57 41 52 52 41 | 4e 54 59 3b 20 77 69 74 |NY WARRA|NTY; wit|
|00006320| 68 6f 75 74 20 65 76 65 | 6e 20 74 68 65 20 69 6d |hout eve|n the im|
|00006330| 70 6c 69 65 64 20 77 61 | 72 72 61 6e 74 79 20 6f |plied wa|rranty o|
|00006340| 66 0a 58 20 20 20 20 20 | 20 20 4d 45 52 43 48 41 |f.X | MERCHA|
|00006350| 4e 54 41 42 49 4c 49 54 | 59 20 6f 72 20 46 49 54 |NTABILIT|Y or FIT|
|00006360| 4e 45 53 53 20 46 4f 52 | 20 41 20 50 41 52 54 49 |NESS FOR| A PARTI|
|00006370| 43 55 4c 41 52 20 50 55 | 52 50 4f 53 45 2e 20 20 |CULAR PU|RPOSE. |
|00006380| 53 65 65 20 74 68 65 0a | 58 20 20 20 20 20 20 20 |See the.|X |
|00006390| 47 4e 55 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |GNU Gene|ral Publ|
|000063a0| 69 63 20 4c 69 63 65 6e | 73 65 20 66 6f 72 20 6d |ic Licen|se for m|
|000063b0| 6f 72 65 20 64 65 74 61 | 69 6c 73 2e 0a 58 0a 58 |ore deta|ils..X.X|
|000063c0| 20 20 20 20 20 20 20 59 | 6f 75 20 73 68 6f 75 6c | Y|ou shoul|
|000063d0| 64 20 68 61 76 65 20 72 | 65 63 65 69 76 65 64 20 |d have r|eceived |
|000063e0| 61 20 63 6f 70 79 20 6f | 66 20 74 68 65 20 47 4e |a copy o|f the GN|
|000063f0| 55 20 47 65 6e 65 72 61 | 6c 20 50 75 62 6c 69 63 |U Genera|l Public|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.