home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / 68kdisassem / part1 next >
SHell self-extracting ARchive  |  1986-11-30  |  41.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

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 74 75 | 72 6e 65 72 40 69 6d 61 |From: tu|rner@ima|
|00000010| 67 65 6e 2e 55 55 43 50 | 20 3c 74 61 6c 63 6f 74 |gen.UUCP| <talcot|
|00000020| 74 21 74 6f 70 61 7a 21 | 53 68 61 73 74 61 21 69 |t!topaz!|Shasta!i|
|00000030| 6d 61 67 65 6e 21 4a 69 | 6d 2e 54 75 72 6e 65 72 |magen!Ji|m.Turner|
|00000040| 3e 0a 53 75 62 6a 65 63 | 74 3a 20 75 6e 63 20 2d |>.Subjec|t: unc -|
|00000050| 20 36 38 30 30 30 20 64 | 69 73 61 73 73 65 6d 62 | 68000 d|isassemb|
|00000060| 6c 65 72 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |ler.News|groups: |
|00000070| 6d 6f 64 2e 73 6f 75 72 | 63 65 73 0a 41 70 70 72 |mod.sour|ces.Appr|
|00000080| 6f 76 65 64 3a 20 6a 70 | 6e 40 70 61 6e 64 61 2e |oved: jp|n@panda.|
|00000090| 55 55 43 50 0a 0a 4d 6f | 64 2e 73 6f 75 72 63 65 |UUCP..Mo|d.source|
|000000a0| 73 3a 20 20 56 6f 6c 75 | 6d 65 20 34 2c 20 49 73 |s: Volu|me 4, Is|
|000000b0| 73 75 65 20 33 30 0a 53 | 75 62 6d 69 74 74 65 64 |sue 30.S|ubmitted|
|000000c0| 20 62 79 3a 20 74 75 72 | 6e 65 72 40 69 6d 61 67 | by: tur|ner@imag|
|000000d0| 65 6e 2e 55 55 43 50 20 | 3c 74 61 6c 63 6f 74 74 |en.UUCP |<talcott|
|000000e0| 21 74 6f 70 61 7a 21 53 | 68 61 73 74 61 21 69 6d |!topaz!S|hasta!im|
|000000f0| 61 67 65 6e 21 4a 69 6d | 2e 54 75 72 6e 65 72 3e |agen!Jim|.Turner>|
|00000100| 0a 0a 23 21 20 2f 62 69 | 6e 2f 73 68 0a 23 20 54 |..#! /bi|n/sh.# T|
|00000110| 68 69 73 20 69 73 20 61 | 20 73 68 65 6c 6c 20 61 |his is a| shell a|
|00000120| 72 63 68 69 76 65 2c 20 | 6d 65 61 6e 69 6e 67 3a |rchive, |meaning:|
|00000130| 0a 23 20 31 2e 20 52 65 | 6d 6f 76 65 20 65 76 65 |.# 1. Re|move eve|
|00000140| 72 79 74 68 69 6e 67 20 | 61 62 6f 76 65 20 74 68 |rything |above th|
|00000150| 65 20 23 21 20 2f 62 69 | 6e 2f 73 68 20 6c 69 6e |e #! /bi|n/sh lin|
|00000160| 65 2e 0a 23 20 32 2e 20 | 53 61 76 65 20 74 68 65 |e..# 2. |Save the|
|00000170| 20 72 65 73 75 6c 74 69 | 6e 67 20 74 65 78 74 20 | resulti|ng text |
|00000180| 69 6e 20 61 20 66 69 6c | 65 2e 0a 23 20 33 2e 20 |in a fil|e..# 3. |
|00000190| 45 78 65 63 75 74 65 20 | 74 68 65 20 66 69 6c 65 |Execute |the file|
|000001a0| 20 77 69 74 68 20 2f 62 | 69 6e 2f 73 68 20 28 6e | with /b|in/sh (n|
|000001b0| 6f 74 20 63 73 68 29 20 | 74 6f 20 63 72 65 61 74 |ot csh) |to creat|
|000001c0| 65 20 74 68 65 20 66 69 | 6c 65 73 3a 0a 23 09 52 |e the fi|les:.#.R|
|000001d0| 45 41 44 4d 45 0a 23 09 | 64 6f 63 0a 23 09 64 6f |EADME.#.|doc.#.do|
|000001e0| 63 2e 6f 75 74 0a 23 09 | 6d 61 6b 65 66 69 6c 65 |c.out.#.|makefile|
|000001f0| 0a 23 09 75 6e 63 2e 68 | 0a 23 09 61 6c 6c 6f 63 |.#.unc.h|.#.alloc|
|00000200| 2e 63 0a 23 09 66 69 6c | 65 2e 63 0a 23 09 68 65 |.c.#.fil|e.c.#.he|
|00000210| 75 72 2e 63 0a 23 20 54 | 68 69 73 20 61 72 63 68 |ur.c.# T|his arch|
|00000220| 69 76 65 20 63 72 65 61 | 74 65 64 3a 20 46 72 69 |ive crea|ted: Fri|
|00000230| 20 4d 61 72 20 31 34 20 | 30 39 3a 35 34 3a 33 34 | Mar 14 |09:54:34|
|00000240| 20 31 39 38 36 0a 65 78 | 70 6f 72 74 20 50 41 54 | 1986.ex|port PAT|
|00000250| 48 3b 20 50 41 54 48 3d | 2f 62 69 6e 3a 24 50 41 |H; PATH=|/bin:$PA|
|00000260| 54 48 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |TH.echo |shar: ex|
|00000270| 74 72 61 63 74 69 6e 67 | 20 22 27 52 45 41 44 4d |tracting| "'READM|
|00000280| 45 27 22 20 27 28 38 30 | 36 20 63 68 61 72 61 63 |E'" '(80|6 charac|
|00000290| 74 65 72 73 29 27 0a 69 | 66 20 74 65 73 74 20 2d |ters)'.i|f test -|
|000002a0| 66 20 27 52 45 41 44 4d | 45 27 0a 74 68 65 6e 0a |f 'READM|E'.then.|
|000002b0| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 77 69 6c 6c |.echo sh|ar: will|
|000002c0| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|000002d0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 22 27 |existing| file "'|
|000002e0| 52 45 41 44 4d 45 27 22 | 0a 65 6c 73 65 0a 63 61 |README'"|.else.ca|
|000002f0| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00000300| 20 27 52 45 41 44 4d 45 | 27 0a 49 20 68 61 76 65 | 'README|'.I have|
|00000310| 20 67 6f 74 74 65 6e 20 | 6d 61 6e 79 20 6d 61 6e | gotten |many man|
|00000320| 79 20 72 65 71 75 65 73 | 74 73 20 74 6f 20 65 6d |y reques|ts to em|
|00000330| 61 69 6c 20 74 68 69 73 | 20 6f 72 20 70 6f 73 74 |ail this| or post|
|00000340| 20 69 74 2c 20 62 65 63 | 61 75 73 65 20 6f 66 0a | it, bec|ause of.|
|00000350| 69 74 73 20 73 69 7a 65 | 20 65 6d 61 69 6c 27 69 |its size| email'i|
|00000360| 6e 67 20 69 74 20 73 63 | 72 65 77 73 20 75 70 20 |ng it sc|rews up |
|00000370| 6d 6f 73 74 20 6d 61 69 | 6c 65 72 73 2c 20 73 6f |most mai|lers, so|
|00000380| 20 69 20 61 6d 20 73 75 | 62 6d 69 74 74 69 6e 67 | i am su|bmitting|
|00000390| 20 69 74 20 74 6f 0a 6d | 6f 64 2e 73 6f 75 72 63 | it to.m|od.sourc|
|000003a0| 65 73 20 74 6f 20 62 65 | 20 70 6f 73 74 65 64 2e |es to be| posted.|
|000003b0| 20 20 50 6c 65 61 73 65 | 20 6e 6f 74 65 20 61 20 | Please| note a |
|000003c0| 6d 61 6a 6f 72 20 63 61 | 76 61 65 74 20 77 69 74 |major ca|vaet wit|
|000003d0| 68 20 74 68 69 73 2c 20 | 69 74 20 77 61 73 0a 77 |h this, |it was.w|
|000003e0| 72 69 74 74 65 6e 20 75 | 6e 64 65 72 20 55 6e 69 |ritten u|nder Uni|
|000003f0| 73 6f 66 74 27 73 20 70 | 6f 72 74 20 6f 66 20 55 |soft's p|ort of U|
|00000400| 6e 69 78 20 73 6f 20 74 | 68 65 20 61 2e 6f 75 74 |nix so t|he a.out|
|00000410| 20 66 69 6c 65 20 74 68 | 61 74 20 69 74 20 75 73 | file th|at it us|
|00000420| 65 73 0a 6d 6f 72 65 20 | 63 6c 6f 73 65 6c 79 20 |es.more |closely |
|00000430| 72 65 73 65 6d 62 6c 65 | 73 20 74 68 65 20 62 2e |resemble|s the b.|
|00000440| 6f 75 74 2e 68 20 66 69 | 6c 65 20 74 68 61 74 20 |out.h fi|le that |
|00000450| 6d 6f 73 74 20 63 72 6f | 73 73 20 61 73 73 65 6d |most cro|ss assem|
|00000460| 62 6c 65 72 73 0a 28 65 | 2e 67 2e 20 20 67 72 65 |blers.(e|.g. gre|
|00000470| 65 6e 68 69 6c 6c 73 29 | 20 75 73 65 2e 20 46 6f |enhills)| use. Fo|
|00000480| 72 20 74 68 65 20 6f 62 | 76 69 6f 75 73 20 72 65 |r the ob|vious re|
|00000490| 61 73 6f 6e 73 20 69 20 | 68 61 76 65 20 6e 6f 74 |asons i |have not|
|000004a0| 20 69 6e 63 6c 75 64 65 | 64 20 74 68 61 74 0a 66 | include|d that.f|
|000004b0| 69 6c 65 20 77 69 74 68 | 20 74 68 65 20 70 6f 73 |ile with| the pos|
|000004c0| 74 69 6e 67 2e 20 49 20 | 64 69 64 20 6e 6f 74 20 |ting. I |did not |
|000004d0| 77 72 69 74 65 20 74 68 | 69 73 20 6e 6f 72 20 64 |write th|is nor d|
|000004e0| 6f 20 69 20 6d 61 6b 65 | 20 61 6e 79 20 63 6c 61 |o i make| any cla|
|000004f0| 69 6d 20 74 6f 0a 74 68 | 61 74 20 65 66 66 65 63 |im to.th|at effec|
|00000500| 74 2e 0a 0a 20 20 20 20 | 74 75 72 6e 65 72 40 69 |t... |turner@i|
|00000510| 6d 61 67 65 6e 2e 55 55 | 43 50 20 3c 74 61 6c 63 |magen.UU|CP <talc|
|00000520| 6f 74 74 21 74 6f 70 61 | 7a 21 53 68 61 73 74 61 |ott!topa|z!Shasta|
|00000530| 21 69 6d 61 67 65 6e 21 | 4a 69 6d 2e 54 75 72 6e |!imagen!|Jim.Turn|
|00000540| 65 72 3e 0a 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |er>..---|--------|
|00000550| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000560| 2d 0a 54 68 69 73 20 69 | 73 20 74 68 65 20 36 38 |-.This i|s the 68|
|00000570| 30 30 30 20 64 69 73 61 | 73 73 65 6d 62 6c 65 72 |000 disa|ssembler|
|00000580| 20 6d 65 6e 74 69 6f 6e | 65 64 20 6f 6e 20 74 68 | mention|ed on th|
|00000590| 65 20 6e 65 74 2e 0a 49 | 74 20 69 73 20 6e 6f 74 |e net..I|t is not|
|000005a0| 20 6d 79 20 66 69 6e 61 | 6c 20 76 65 72 73 69 6f | my fina|l versio|
|000005b0| 6e 20 62 79 20 61 6e 79 | 20 6d 65 61 6e 73 2c 20 |n by any| means, |
|000005c0| 62 75 74 20 49 20 68 61 | 76 65 20 66 6f 75 6e 64 |but I ha|ve found|
|000005d0| 20 69 74 20 65 78 74 72 | 65 6d 65 6c 79 0a 75 73 | it extr|emely.us|
|000005e0| 65 66 75 6c 20 61 6e 64 | 20 69 74 20 72 65 70 72 |eful and| it repr|
|000005f0| 65 73 65 6e 74 73 20 73 | 65 76 65 72 61 6c 20 77 |esents s|everal w|
|00000600| 65 65 6b 73 27 20 77 6f | 72 6b 2e 0a 0a 20 20 20 |eeks' wo|rk... |
|00000610| 20 4a 6f 68 6e 20 43 6f | 6c 6c 69 6e 73 2e 20 3c | John Co|llins. <|
|00000620| 6a 6d 63 40 69 6e 73 65 | 74 2e 55 55 43 50 3e 0a |jmc@inse|t.UUCP>.|
|00000630| 53 48 41 52 5f 45 4f 46 | 0a 69 66 20 74 65 73 74 |SHAR_EOF|.if test|
|00000640| 20 38 30 36 20 2d 6e 65 | 20 22 60 77 63 20 2d 63 | 806 -ne| "`wc -c|
|00000650| 20 3c 20 27 52 45 41 44 | 4d 45 27 60 22 0a 74 68 | < 'READ|ME'`".th|
|00000660| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 65 |en..echo| shar: e|
|00000670| 72 72 6f 72 20 74 72 61 | 6e 73 6d 69 74 74 69 6e |rror tra|nsmittin|
|00000680| 67 20 22 27 52 45 41 44 | 4d 45 27 22 20 27 28 73 |g "'READ|ME'" '(s|
|00000690| 68 6f 75 6c 64 20 68 61 | 76 65 20 62 65 65 6e 20 |hould ha|ve been |
|000006a0| 38 30 36 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |806 char|acters)'|
|000006b0| 0a 66 69 0a 66 69 0a 65 | 63 68 6f 20 73 68 61 72 |.fi.fi.e|cho shar|
|000006c0| 3a 20 65 78 74 72 61 63 | 74 69 6e 67 20 22 27 64 |: extrac|ting "'d|
|000006d0| 6f 63 27 22 20 27 28 36 | 34 34 35 20 63 68 61 72 |oc'" '(6|445 char|
|000006e0| 61 63 74 65 72 73 29 27 | 0a 69 66 20 74 65 73 74 |acters)'|.if test|
|000006f0| 20 2d 66 20 27 64 6f 63 | 27 0a 74 68 65 6e 0a 09 | -f 'doc|'.then..|
|00000700| 65 63 68 6f 20 73 68 61 | 72 3a 20 77 69 6c 6c 20 |echo sha|r: will |
|00000710| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|00000720| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 22 27 64 |xisting |file "'d|
|00000730| 6f 63 27 22 0a 65 6c 73 | 65 0a 63 61 74 20 3c 3c |oc'".els|e.cat <<|
|00000740| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 64 6f | \SHAR_E|OF > 'do|
|00000750| 63 27 0a 2e 5c 22 2f 2a | 25 09 6e 72 6f 66 66 20 |c'..\"/*|%.nroff |
|00000760| 2d 63 6d 20 2d 72 4c 37 | 32 20 25 7c 65 70 73 6f |-cm -rL7|2 %|epso|
|00000770| 6e 7c 73 70 72 20 2d 66 | 20 70 6c 61 69 6e 2e 61 |n|spr -f| plain.a|
|00000780| 20 2d 68 20 75 6e 63 64 | 6f 63 20 2d 77 0a 2e 6e | -h uncd|oc -w..n|
|00000790| 72 20 48 62 20 37 0a 2e | 6e 72 20 48 73 20 33 0a |r Hb 7..|nr Hs 3.|
|000007a0| 2e 64 73 20 48 46 20 33 | 20 33 20 33 20 33 20 33 |.ds HF 3| 3 3 3 3|
|000007b0| 20 33 20 33 0a 2e 6e 72 | 20 48 75 20 35 0a 2e 6e | 3 3..nr| Hu 5..n|
|000007c0| 72 20 48 63 20 31 0a 2e | 53 41 20 31 0a 2e 50 48 |r Hc 1..|SA 1..PH|
|000007d0| 20 22 27 27 41 20 44 69 | 73 61 73 73 65 6d 62 6c | "''A Di|sassembl|
|000007e0| 65 72 27 27 22 0a 2e 50 | 46 20 22 27 49 73 73 75 |er''"..P|F "'Issu|
|000007f0| 65 20 25 49 25 27 2d 20 | 50 61 67 65 20 5c 5c 5c |e %I%'- |Page \\\|
|00000800| 5c 6e 50 20 2d 27 25 47 | 25 27 22 0a 2e 48 20 31 |\nP -'%G|%'"..H 1|
|00000810| 20 22 49 6e 74 72 6f 64 | 75 63 74 69 6f 6e 22 0a | "Introd|uction".|
|00000820| 54 68 69 73 20 64 6f 63 | 75 6d 65 6e 74 20 64 65 |This doc|ument de|
|00000830| 73 63 72 69 62 65 73 20 | 74 68 65 20 66 69 72 73 |scribes |the firs|
|00000840| 74 20 72 65 6c 65 61 73 | 65 20 6f 66 20 61 20 64 |t releas|e of a d|
|00000850| 69 73 61 73 73 65 6d 62 | 6c 65 72 20 66 6f 72 20 |isassemb|ler for |
|00000860| 55 4e 49 58 0a 65 78 65 | 63 75 74 61 62 6c 65 20 |UNIX.exe|cutable |
|00000870| 66 69 6c 65 73 2e 0a 54 | 68 65 20 6b 65 79 20 66 |files..T|he key f|
|00000880| 65 61 74 75 72 65 73 20 | 61 72 65 3a 0a 2e 41 4c |eatures |are:..AL|
|00000890| 0a 2e 4c 49 0a 46 6f 72 | 20 6f 62 6a 65 63 74 20 |..LI.For| object |
|000008a0| 66 69 6c 65 73 20 74 68 | 65 20 6f 75 74 70 75 74 |files th|e output|
|000008b0| 20 63 61 6e 20 62 65 20 | 61 73 73 65 6d 62 6c 65 | can be |assemble|
|000008c0| 64 20 74 6f 20 67 65 6e | 65 72 61 74 65 20 74 68 |d to gen|erate th|
|000008d0| 65 20 73 61 6d 65 0a 6f | 62 6a 65 63 74 20 6d 6f |e same.o|bject mo|
|000008e0| 64 75 6c 65 2c 20 28 61 | 70 61 72 74 20 66 72 6f |dule, (a|part fro|
|000008f0| 6d 20 6d 69 6e 6f 72 20 | 76 61 72 69 61 74 69 6f |m minor |variatio|
|00000900| 6e 73 20 69 6e 20 73 79 | 6d 62 6f 6c 20 74 61 62 |ns in sy|mbol tab|
|00000910| 6c 65 20 6f 72 64 65 72 | 69 6e 67 29 20 61 73 20 |le order|ing) as |
|00000920| 74 68 65 0a 69 6e 70 75 | 74 2e 0a 2e 4c 49 0a 46 |the.inpu|t...LI.F|
|00000930| 6f 72 20 73 74 72 69 70 | 70 65 64 20 65 78 65 63 |or strip|ped exec|
|00000940| 75 74 61 62 6c 65 20 66 | 69 6c 65 73 20 6f 62 6a |utable f|iles obj|
|00000950| 65 63 74 20 6d 6f 64 75 | 6c 65 73 20 61 6e 64 20 |ect modu|les and |
|00000960| 6c 69 62 72 61 72 69 65 | 73 20 6d 61 79 20 62 65 |librarie|s may be|
|00000970| 20 73 63 61 6e 6e 65 64 | 2c 0a 6d 6f 64 75 6c 65 | scanned|,.module|
|00000980| 73 20 69 6e 20 74 68 65 | 20 6d 61 69 6e 20 69 6e |s in the| main in|
|00000990| 70 75 74 20 69 64 65 6e | 74 69 66 69 65 64 20 61 |put iden|tified a|
|000009a0| 6e 64 20 74 68 65 20 61 | 70 70 72 6f 70 72 69 61 |nd the a|ppropria|
|000009b0| 74 65 20 6e 61 6d 65 73 | 20 61 75 74 6f 6d 61 74 |te names| automat|
|000009c0| 69 63 61 6c 6c 79 0a 69 | 6e 73 65 72 74 65 64 20 |ically.i|nserted |
|000009d0| 69 6e 74 6f 20 74 68 65 | 20 6f 75 74 70 75 74 2e |into the| output.|
|000009e0| 0a 2e 4c 49 0a 41 6e 20 | 6f 70 74 69 6f 6e 20 69 |..LI.An |option i|
|000009f0| 73 20 61 76 61 69 6c 61 | 62 6c 65 20 74 6f 20 63 |s availa|ble to c|
|00000a00| 6f 6e 76 65 72 74 20 6d | 6f 73 74 20 6e 6f 6e 2d |onvert m|ost non-|
|00000a10| 67 6c 6f 62 61 6c 20 6e | 61 6d 65 73 20 69 6e 74 |global n|ames int|
|00000a20| 6f 20 6c 6f 63 61 6c 20 | 73 79 6d 62 6f 6c 73 2c |o local |symbols,|
|00000a30| 0a 77 68 69 63 68 20 63 | 75 74 73 20 64 6f 77 6e |.which c|uts down|
|00000a40| 20 74 68 65 20 73 79 6d | 62 6f 6c 73 20 69 6e 20 | the sym|bols in |
|00000a50| 74 68 65 20 67 65 6e 65 | 72 61 74 65 64 20 61 73 |the gene|rated as|
|00000a60| 73 65 6d 62 6c 65 72 20 | 66 69 6c 65 2e 0a 2e 4c |sembler |file...L|
|00000a70| 49 0a 54 68 65 20 64 69 | 73 61 73 73 65 6d 62 6c |I.The di|sassembl|
|00000a80| 65 72 20 63 6f 70 65 73 | 20 72 65 61 73 6f 6e 61 |er copes| reasona|
|00000a90| 62 6c 79 20 77 69 74 68 | 20 6d 6f 64 75 6c 65 73 |bly with| modules|
|00000aa0| 20 6d 65 72 67 65 64 20 | 77 69 74 68 20 74 68 65 | merged |with the|
|00000ab0| 0a 2e 42 20 22 2d 72 22 | 0a 6f 70 74 69 6f 6e 20 |..B "-r"|.option |
|00000ac0| 74 6f 0a 2e 42 20 22 6c | 64 22 20 2c 0a 67 65 6e |to..B "l|d" ,.gen|
|00000ad0| 65 72 61 74 69 6e 67 20 | 61 20 77 61 72 6e 69 6e |erating |a warnin|
|00000ae0| 67 20 6d 65 73 73 61 67 | 65 20 61 73 20 74 6f 20 |g messag|e as to |
|00000af0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6d 6f |the numb|er of mo|
|00000b00| 64 75 6c 65 73 20 69 6e | 76 6f 6c 76 65 64 2e 0a |dules in|volved..|
|00000b10| 2e 4c 45 0a 2e 50 0a 41 | 74 20 70 72 65 73 65 6e |.LE..P.A|t presen|
|00000b20| 74 20 74 68 69 73 20 69 | 73 20 61 76 61 69 6c 61 |t this i|s availa|
|00000b30| 62 6c 65 20 66 6f 72 20 | 63 65 72 74 61 69 6e 20 |ble for |certain |
|00000b40| 4d 6f 74 6f 72 6f 6c 61 | 20 36 38 30 30 30 20 70 |Motorola| 68000 p|
|00000b50| 6f 72 74 73 20 6f 66 20 | 55 4e 49 58 0a 53 79 73 |orts of |UNIX.Sys|
|00000b60| 74 65 6d 20 49 49 49 20 | 61 6e 64 20 53 79 73 74 |tem III |and Syst|
|00000b70| 65 6d 20 56 2e 20 44 65 | 70 65 6e 64 65 6e 63 69 |em V. De|pendenci|
|00000b80| 65 73 20 6f 6e 0a 2e 41 | 4c 20 61 0a 2e 4c 49 0a |es on..A|L a..LI.|
|00000b90| 49 6e 73 74 72 75 63 74 | 69 6f 6e 20 73 65 74 2e |Instruct|ion set.|
|00000ba0| 0a 2e 4c 49 0a 4f 62 6a | 65 63 74 20 6d 6f 64 75 |..LI.Obj|ect modu|
|00000bb0| 6c 65 20 66 6f 72 6d 61 | 74 2e 0a 2e 4c 49 0a 4c |le forma|t...LI.L|
|00000bc0| 69 62 72 61 72 79 20 6d | 6f 64 75 6c 65 20 66 6f |ibrary m|odule fo|
|00000bd0| 72 6d 61 74 2e 0a 2e 4c | 49 0a 41 73 73 65 6d 62 |rmat...L|I.Assemb|
|00000be0| 6c 65 72 20 6f 75 74 70 | 75 74 20 66 6f 72 6d 61 |ler outp|ut forma|
|00000bf0| 74 2e 0a 2e 4c 45 0a 2e | 50 0a 61 72 65 20 68 6f |t...LE..|P.are ho|
|00000c00| 70 65 66 75 6c 6c 79 20 | 73 75 66 66 69 63 69 65 |pefully |sufficie|
|00000c10| 6e 74 6c 79 20 6c 6f 63 | 61 6c 69 73 65 64 20 74 |ntly loc|alised t|
|00000c20| 6f 20 6d 61 6b 65 20 74 | 68 65 20 70 72 6f 64 75 |o make t|he produ|
|00000c30| 63 74 20 75 73 65 66 75 | 6c 20 61 73 20 61 0a 62 |ct usefu|l as a.b|
|00000c40| 61 73 69 73 20 66 6f 72 | 20 6f 74 68 65 72 20 64 |asis for| other d|
|00000c50| 69 73 61 73 73 65 6d 62 | 6c 65 72 73 20 66 6f 72 |isassemb|lers for|
|00000c60| 20 6f 74 68 65 72 20 76 | 65 72 73 69 6f 6e 73 20 | other v|ersions |
|00000c70| 6f 66 20 55 4e 49 58 2e | 0a 2e 50 0a 54 68 65 20 |of UNIX.|..P.The |
|00000c80| 70 72 6f 64 75 63 74 20 | 69 73 20 74 68 75 73 20 |product |is thus |
|00000c90| 64 69 73 74 72 69 62 75 | 74 65 64 20 69 6e 20 73 |distribu|ted in s|
|00000ca0| 6f 75 72 63 65 20 66 6f | 72 6d 20 61 74 20 70 72 |ource fo|rm at pr|
|00000cb0| 65 73 65 6e 74 2e 0a 2e | 48 20 31 20 22 55 73 65 |esent...|H 1 "Use|
|00000cc0| 22 0a 54 68 65 20 64 69 | 73 61 73 73 65 6d 62 6c |".The di|sassembl|
|00000cd0| 65 72 20 69 73 20 72 75 | 6e 20 62 79 20 65 6e 74 |er is ru|n by ent|
|00000ce0| 65 72 69 6e 67 3a 0a 2e | 44 53 20 49 0a 75 6e 63 |ering:..|DS I.unc|
|00000cf0| 20 6d 61 69 6e 66 69 6c | 65 20 6c 69 62 31 20 6c | mainfil|e lib1 l|
|00000d00| 69 62 32 20 2e 2e 2e 0a | 2e 44 45 0a 2e 50 0a 54 |ib2 ....|.DE..P.T|
|00000d10| 68 65 20 66 69 72 73 74 | 20 6e 61 6d 65 64 20 66 |he first| named f|
|00000d20| 69 6c 65 20 69 73 20 74 | 68 65 20 66 69 6c 65 20 |ile is t|he file |
|00000d30| 74 6f 20 62 65 20 64 69 | 73 61 73 73 65 6d 62 6c |to be di|sassembl|
|00000d40| 65 64 2c 20 77 68 69 63 | 68 20 73 68 6f 75 6c 64 |ed, whic|h should|
|00000d50| 20 62 65 0a 61 20 73 69 | 6e 67 6c 65 20 66 69 6c | be.a si|ngle fil|
|00000d60| 65 2c 20 65 69 74 68 65 | 72 20 61 6e 20 6f 62 6a |e, eithe|r an obj|
|00000d70| 65 63 74 20 6d 6f 64 75 | 6c 65 2c 20 61 20 28 70 |ect modu|le, a (p|
|00000d80| 6f 73 73 69 62 6c 79 20 | 73 74 72 69 70 70 65 64 |ossibly |stripped|
|00000d90| 29 20 65 78 65 63 75 74 | 61 62 6c 65 0a 66 69 6c |) execut|able.fil|
|00000da0| 65 2c 20 6f 72 20 61 20 | 6c 69 62 72 61 72 79 20 |e, or a |library |
|00000db0| 6d 65 6d 62 65 72 2e 20 | 4c 69 62 72 61 72 79 20 |member. |Library |
|00000dc0| 6d 65 6d 62 65 72 73 20 | 61 72 65 20 64 65 73 69 |members |are desi|
|00000dd0| 67 6e 61 74 65 64 20 75 | 73 69 6e 67 20 61 0a 70 |gnated u|sing a.p|
|00000de0| 61 72 65 6e 74 68 65 73 | 69 73 20 6e 6f 74 61 74 |arenthes|is notat|
|00000df0| 69 6f 6e 2c 20 74 68 75 | 73 3a 0a 2e 44 53 20 49 |ion, thu|s:..DS I|
|00000e00| 0a 75 6e 63 20 27 2f 6c | 69 62 2f 6c 69 62 63 2e |.unc '/l|ib/libc.|
|00000e10| 61 28 70 72 69 6e 74 66 | 2e 6f 29 27 0a 2e 44 45 |a(printf|.o)'..DE|
|00000e20| 0a 2e 50 0a 49 74 20 69 | 73 20 75 73 75 61 6c 6c |..P.It i|s usuall|
|00000e30| 79 20 6e 65 63 65 73 73 | 61 72 79 20 74 6f 20 65 |y necess|ary to e|
|00000e40| 73 63 61 70 65 20 74 68 | 65 20 61 72 67 75 6d 65 |scape th|e argume|
|00000e50| 6e 74 73 20 69 6e 20 74 | 68 69 73 20 63 61 73 65 |nts in t|his case|
|00000e60| 20 74 6f 20 70 72 65 76 | 65 6e 74 0a 6d 69 73 69 | to prev|ent.misi|
|00000e70| 6e 74 65 72 70 72 65 74 | 61 74 69 6f 6e 20 62 79 |nterpret|ation by|
|00000e80| 20 74 68 65 20 73 68 65 | 6c 6c 2e 20 4c 69 62 72 | the she|ll. Libr|
|00000e90| 61 72 69 65 73 20 69 6e | 20 73 74 61 6e 64 61 72 |aries in| standar|
|00000ea0| 64 20 70 6c 61 63 65 73 | 20 73 75 63 68 20 61 73 |d places| such as|
|00000eb0| 0a 2e 49 20 22 2f 6c 69 | 62 22 0a 61 6e 64 0a 2e |..I "/li|b".and..|
|00000ec0| 49 20 22 2f 75 73 72 2f | 6c 69 62 22 0a 6d 61 79 |I "/usr/|lib".may|
|00000ed0| 20 62 65 20 73 70 65 63 | 69 66 69 65 64 20 69 6e | be spec|ified in|
|00000ee0| 20 74 68 65 20 73 61 6d | 65 20 77 61 79 20 61 73 | the sam|e way as|
|00000ef0| 20 74 6f 0a 2e 42 20 22 | 6c 64 22 20 2c 0a 74 68 | to..B "|ld" ,.th|
|00000f00| 75 73 0a 2e 44 53 20 49 | 0a 75 6e 63 20 27 2d 6c |us..DS I|.unc '-l|
|00000f10| 63 28 70 72 69 6e 74 66 | 2e 6f 29 27 0a 75 6e 63 |c(printf|.o)'.unc|
|00000f20| 20 27 2d 6c 63 75 72 73 | 65 73 28 77 6d 6f 76 65 | '-lcurs|es(wmove|
|00000f30| 2e 6f 29 27 0a 2e 44 45 | 0a 2e 50 0a 41 73 20 61 |.o)'..DE|..P.As a|
|00000f40| 6e 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 66 61 63 |n additi|onal fac|
|00000f50| 69 6c 69 74 79 2c 20 74 | 68 65 20 6c 69 73 74 20 |ility, t|he list |
|00000f60| 6f 66 20 64 69 72 65 63 | 74 6f 72 69 65 73 20 73 |of direc|tories s|
|00000f70| 65 61 72 63 68 65 64 20 | 66 6f 72 0a 6c 69 62 72 |earched |for.libr|
|00000f80| 61 72 69 65 73 20 6d 61 | 79 20 62 65 20 76 61 72 |aries ma|y be var|
|00000f90| 69 65 64 20 62 79 20 73 | 65 74 74 69 6e 67 20 74 |ied by s|etting t|
|00000fa0| 68 65 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 76 |he envir|onment v|
|00000fb0| 61 72 69 61 62 6c 65 0a | 2e 42 20 22 4c 44 50 41 |ariable.|.B "LDPA|
|00000fc0| 54 48 22 20 2c 0a 77 68 | 69 63 68 20 69 73 20 69 |TH" ,.wh|ich is i|
|00000fd0| 6e 74 65 72 70 72 65 74 | 65 64 20 73 69 6d 69 6c |nterpret|ed simil|
|00000fe0| 61 72 6c 79 20 74 6f 20 | 74 68 65 20 73 68 65 6c |arly to |the shel|
|00000ff0| 6c 0a 2e 42 20 22 50 41 | 54 48 22 0a 76 61 72 69 |l..B "PA|TH".vari|
|00001000| 61 62 6c 65 2c 20 61 6e | 64 20 6f 66 20 63 6f 75 |able, an|d of cou|
|00001010| 72 73 65 20 64 65 66 61 | 75 6c 74 73 20 74 6f 0a |rse defa|ults to.|
|00001020| 2e 44 53 20 49 0a 4c 44 | 50 41 54 48 3d 2f 6c 69 |.DS I.LD|PATH=/li|
|00001030| 62 3a 2f 75 73 72 2f 6c | 69 62 0a 2e 44 45 0a 2e |b:/usr/l|ib..DE..|
|00001040| 50 0a 41 73 20 61 20 66 | 75 72 74 68 65 72 20 66 |P.As a f|urther f|
|00001050| 61 63 69 6c 69 74 79 2c | 20 74 68 65 20 69 6e 73 |acility,| the ins|
|00001060| 65 72 74 69 6f 6e 20 6f | 66 0a 2e 42 20 22 6c 69 |ertion o|f..B "li|
|00001070| 62 22 0a 62 65 66 6f 72 | 65 20 61 6e 64 0a 2e 42 |b".befor|e and..B|
|00001080| 20 22 2e 61 22 0a 61 66 | 74 65 72 20 74 68 65 20 | ".a".af|ter the |
|00001090| 61 72 67 75 6d 65 6e 74 | 20 6d 61 79 20 62 65 20 |argument| may be |
|000010a0| 73 75 70 70 72 65 73 73 | 65 64 20 62 79 20 75 73 |suppress|ed by us|
|000010b0| 69 6e 67 20 61 20 63 61 | 70 69 74 61 6c 0a 2e 42 |ing a ca|pital..B|
|000010c0| 20 22 2d 4c 22 0a 61 72 | 67 75 6d 65 6e 74 2c 20 | "-L".ar|gument, |
|000010d0| 74 68 75 73 20 74 6f 20 | 70 72 69 6e 74 20 6f 75 |thus to |print ou|
|000010e0| 74 20 74 68 65 20 61 73 | 73 65 6d 62 6c 65 72 20 |t the as|sembler |
|000010f0| 66 6f 72 0a 2e 49 20 22 | 2f 6c 69 62 2f 63 72 74 |for..I "|/lib/crt|
|00001100| 30 2e 6f 22 20 2c 0a 74 | 68 65 6e 20 74 68 65 20 |0.o" ,.t|hen the |
|00001110| 63 6f 6d 6d 61 6e 64 0a | 2e 44 53 20 49 0a 75 6e |command.|.DS I.un|
|00001120| 63 20 2d 4c 63 72 74 30 | 2e 6f 0a 2e 44 45 0a 2e |c -Lcrt0|.o..DE..|
|00001130| 50 0a 73 68 6f 75 6c 64 | 20 68 61 76 65 20 74 68 |P.should| have th|
|00001140| 65 20 64 65 73 69 72 65 | 64 20 65 66 66 65 63 74 |e desire|d effect|
|00001150| 2e 0a 2e 50 0a 53 65 63 | 6f 6e 64 20 61 6e 64 20 |...P.Sec|ond and |
|00001160| 73 75 62 73 65 71 75 65 | 6e 74 20 66 69 6c 65 20 |subseque|nt file |
|00001170| 61 72 67 75 6d 65 6e 74 | 73 20 61 72 65 20 6f 6e |argument|s are on|
|00001180| 6c 79 20 72 65 66 65 72 | 65 6e 63 65 64 20 66 6f |ly refer|enced fo|
|00001190| 72 20 73 74 72 69 70 70 | 65 64 0a 65 78 65 63 75 |r stripp|ed.execu|
|000011a0| 74 61 62 6c 65 20 66 69 | 6c 65 73 2c 20 61 6e 64 |table fi|les, and|
|000011b0| 20 6d 61 79 20 63 6f 6e | 73 69 73 74 20 6f 66 20 | may con|sist of |
|000011c0| 73 69 6e 67 6c 65 20 6f | 62 6a 65 63 74 20 66 69 |single o|bject fi|
|000011d0| 6c 65 73 20 61 6e 64 20 | 6c 69 62 72 61 72 79 0a |les and |library.|
|000011e0| 6d 65 6d 62 65 72 73 2c | 20 75 73 69 6e 67 20 74 |members,| using t|
|000011f0| 68 65 20 73 61 6d 65 20 | 73 79 6e 74 61 78 20 61 |he same |syntax a|
|00001200| 73 20 62 65 66 6f 72 65 | 2c 20 6f 72 20 77 68 6f |s before|, or who|
|00001210| 6c 65 20 6c 69 62 72 61 | 72 69 65 73 20 6f 66 20 |le libra|ries of |
|00001220| 6f 62 6a 65 63 74 0a 66 | 69 6c 65 73 2c 20 74 68 |object.f|iles, th|
|00001230| 75 73 3a 0a 2e 44 53 20 | 49 0a 75 6e 63 20 73 74 |us:..DS |I.unc st|
|00001240| 72 69 70 70 65 64 66 69 | 6c 65 20 2d 4c 63 72 74 |rippedfi|le -Lcrt|
|00001250| 30 2e 6f 20 2d 6c 63 75 | 72 73 65 73 20 2d 6c 74 |0.o -lcu|rses -lt|
|00001260| 65 72 6d 63 61 70 20 27 | 2d 6c 6d 28 73 71 72 74 |ermcap '|-lm(sqrt|
|00001270| 2e 6f 29 27 20 2d 6c 63 | 0a 2e 44 45 0a 2e 50 0a |.o)' -lc|..DE..P.|
|00001280| 49 74 20 69 73 20 61 64 | 76 69 73 61 62 6c 65 20 |It is ad|visable |
|00001290| 74 6f 20 6d 61 6b 65 20 | 73 6f 6d 65 20 65 66 66 |to make |some eff|
|000012a0| 6f 72 74 20 74 6f 20 70 | 75 74 20 74 68 65 20 6c |ort to p|ut the l|
|000012b0| 69 62 72 61 72 69 65 73 | 20 74 6f 20 62 65 20 73 |ibraries| to be s|
|000012c0| 65 61 72 63 68 65 64 0a | 69 6e 20 74 68 65 20 6f |earched.|in the o|
|000012d0| 72 64 65 72 20 69 6e 20 | 77 68 69 63 68 20 74 68 |rder in |which th|
|000012e0| 65 79 20 77 65 72 65 20 | 6f 72 69 67 69 6e 61 6c |ey were |original|
|000012f0| 6c 79 20 6c 6f 61 64 65 | 64 2e 20 54 68 69 73 20 |ly loade|d. This |
|00001300| 69 73 20 62 65 63 61 75 | 73 65 20 74 68 65 0a 73 |is becau|se the.s|
|00001310| 65 61 72 63 68 20 66 6f | 72 20 65 61 63 68 20 6d |earch fo|r each m|
|00001320| 6f 64 75 6c 65 20 73 74 | 61 72 74 73 20 77 68 65 |odule st|arts whe|
|00001330| 72 65 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 6c |re the p|reviousl|
|00001340| 79 20 6d 61 74 63 68 65 | 64 20 6d 6f 64 75 6c 65 |y matche|d module|
|00001350| 20 65 6e 64 65 64 2e 0a | 48 6f 77 65 76 65 72 2c | ended..|However,|
|00001360| 20 6e 6f 20 68 61 72 6d | 20 69 73 20 64 6f 6e 65 | no harm| is done|
|00001370| 20 69 66 20 74 68 69 73 | 20 72 75 6c 65 20 69 73 | if this| rule is|
|00001380| 20 6e 6f 74 20 61 64 68 | 65 72 65 64 20 74 6f 20 | not adh|ered to |
|00001390| 61 70 61 72 74 20 66 72 | 6f 6d 0a 69 6e 63 72 65 |apart fr|om.incre|
|000013a0| 61 73 65 64 20 65 78 65 | 63 75 74 69 6f 6e 20 74 |ased exe|cution t|
|000013b0| 69 6d 65 20 65 78 63 65 | 70 74 20 69 6e 20 74 68 |ime exce|pt in th|
|000013c0| 65 20 72 61 72 65 20 63 | 61 73 65 73 20 77 68 65 |e rare c|ases whe|
|000013d0| 72 65 20 74 68 65 20 64 | 69 73 61 73 73 65 6d 62 |re the d|isassemb|
|000013e0| 6c 65 72 0a 69 73 20 63 | 6f 6e 66 75 73 65 64 20 |ler.is c|onfused |
|000013f0| 62 79 20 6f 62 6a 65 63 | 74 20 6d 6f 64 75 6c 65 |by objec|t module|
|00001400| 73 20 77 68 69 63 68 20 | 61 72 65 20 76 65 72 79 |s which |are very|
|00001410| 20 6e 65 61 72 6c 79 20 | 73 69 6d 69 6c 61 72 2e | nearly |similar.|
|00001420| 0a 2e 48 20 31 20 22 41 | 64 64 69 74 69 6f 6e 61 |..H 1 "A|dditiona|
|00001430| 6c 20 6f 70 74 69 6f 6e | 73 22 0a 54 68 65 20 66 |l option|s".The f|
|00001440| 6f 6c 6c 6f 77 69 6e 67 | 20 6f 70 74 69 6f 6e 73 |ollowing| options|
|00001450| 20 61 72 65 20 61 76 61 | 69 6c 61 62 6c 65 20 74 | are ava|ilable t|
|00001460| 6f 20 6d 6f 64 69 66 79 | 20 74 68 65 20 62 65 68 |o modify| the beh|
|00001470| 61 76 69 6f 75 72 20 6f | 66 20 74 68 65 0a 64 69 |aviour o|f the.di|
|00001480| 73 61 73 73 65 6d 62 6c | 65 72 2e 0a 2e 56 4c 20 |sassembl|er...VL |
|00001490| 31 35 20 32 0a 2e 4c 49 | 20 22 2d 6f 20 66 69 6c |15 2..LI| "-o fil|
|000014a0| 65 22 0a 43 61 75 73 65 | 73 20 6f 75 74 70 75 74 |e".Cause|s output|
|000014b0| 20 74 6f 20 62 65 20 73 | 65 6e 74 20 74 6f 20 74 | to be s|ent to t|
|000014c0| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 66 69 6c |he speci|fied fil|
|000014d0| 65 20 69 6e 73 74 65 61 | 64 20 6f 66 20 74 68 65 |e instea|d of the|
|000014e0| 20 73 74 61 6e 64 61 72 | 64 0a 6f 75 74 70 75 74 | standar|d.output|
|000014f0| 2e 0a 2e 4c 49 20 22 2d | 74 20 70 72 65 66 69 78 |...LI "-|t prefix|
|00001500| 22 0a 43 61 75 73 65 73 | 20 74 65 6d 70 6f 72 61 |".Causes| tempora|
|00001510| 72 79 20 66 69 6c 65 73 | 20 74 6f 20 62 65 20 63 |ry files| to be c|
|00001520| 72 65 61 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |reated w|ith the |
|00001530| 67 69 76 65 6e 20 70 72 | 65 66 69 78 2e 20 54 68 |given pr|efix. Th|
|00001540| 65 20 64 65 66 61 75 6c | 74 0a 70 72 65 66 69 78 |e defaul|t.prefix|
|00001550| 20 69 73 0a 2e 42 20 22 | 73 70 6c 69 74 22 20 2c | is..B "|split" ,|
|00001560| 0a 74 68 75 73 20 63 61 | 75 73 69 6e 67 20 74 77 |.thus ca|using tw|
|00001570| 6f 20 74 65 6d 70 6f 72 | 61 72 79 20 66 69 6c 65 |o tempor|ary file|
|00001580| 73 20 74 6f 20 62 65 20 | 63 72 65 61 74 65 64 20 |s to be |created |
|00001590| 77 69 74 68 20 74 68 69 | 73 20 70 72 65 66 69 78 |with thi|s prefix|
|000015a0| 20 69 6e 20 74 68 65 0a | 63 75 72 72 65 6e 74 20 | in the.|current |
|000015b0| 64 69 72 65 63 74 6f 72 | 79 2e 20 49 66 20 69 74 |director|y. If it|
|000015c0| 20 69 73 20 64 65 73 69 | 72 65 64 2c 20 66 6f 72 | is desi|red, for|
|000015d0| 20 65 78 61 6d 70 6c 65 | 2c 20 74 6f 20 63 72 65 | example|, to cre|
|000015e0| 61 74 65 20 74 68 65 20 | 66 69 6c 65 73 20 61 73 |ate the |files as|
|000015f0| 0a 2e 42 20 22 2f 74 6d | 70 2f 78 78 2a 22 20 2c |..B "/tm|p/xx*" ,|
|00001600| 0a 74 68 65 6e 20 74 68 | 65 20 61 72 67 75 6d 65 |.then th|e argume|
|00001610| 6e 74 0a 2e 42 20 22 2d | 74 20 2f 74 6d 70 2f 78 |nt..B "-|t /tmp/x|
|00001620| 78 22 0a 73 68 6f 75 6c | 64 20 62 65 20 67 69 76 |x".shoul|d be giv|
|00001630| 65 6e 2e 20 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |en. Note| that th|
|00001640| 65 20 74 65 6d 70 6f 72 | 61 72 79 20 66 69 6c 65 |e tempor|ary file|
|00001650| 73 20 6d 61 79 20 62 65 | 20 76 65 72 79 20 6c 61 |s may be| very la|
|00001660| 72 67 65 20 61 73 20 61 | 0a 63 6f 6d 70 6c 65 74 |rge as a|.complet|
|00001670| 65 20 6d 61 70 20 6f 66 | 20 74 68 65 20 74 65 78 |e map of| the tex|
|00001680| 74 20 61 6e 64 20 64 61 | 74 61 20 73 65 67 6d 65 |t and da|ta segme|
|00001690| 6e 74 73 20 69 73 20 67 | 65 6e 65 72 61 74 65 64 |nts is g|enerated|
|000016a0| 2e 0a 2e 4c 49 20 22 2d | 61 22 0a 53 75 70 70 72 |...LI "-|a".Suppr|
|000016b0| 65 73 73 65 73 20 74 68 | 65 20 67 65 6e 65 72 61 |esses th|e genera|
|000016c0| 74 69 6f 6e 20 6f 66 20 | 6e 6f 6e 2d 67 6c 6f 62 |tion of |non-glob|
|000016d0| 61 6c 20 61 62 73 6f 6c | 75 74 65 20 73 79 6d 62 |al absol|ute symb|
|000016e0| 6f 6c 73 20 66 72 6f 6d | 20 74 68 65 0a 6f 75 74 |ols from| the.out|
|000016f0| 70 75 74 2e 20 54 68 69 | 73 20 73 61 76 65 73 20 |put. Thi|s saves |
|00001700| 6f 75 74 70 75 74 20 66 | 72 6f 6d 20 43 20 63 6f |output f|rom C co|
|00001710| 6d 70 69 6c 61 74 69 6f | 6e 73 20 77 69 74 68 6f |mpilatio|ns witho|
|00001720| 75 74 20 61 6e 79 20 6f | 62 76 69 6f 75 73 0a 70 |ut any o|bvious.p|
|00001730| 72 6f 62 6c 65 6d 73 2c | 20 62 75 74 20 74 68 65 |roblems,| but the|
|00001740| 20 73 79 6d 62 6f 6c 73 | 20 61 72 65 20 62 79 20 | symbols| are by |
|00001750| 64 65 66 61 75 6c 74 20 | 69 6e 63 6c 75 64 65 64 |default |included|
|00001760| 20 69 6e 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 0a | in the |name of.|
|00001770| 70 72 6f 64 75 63 69 6e | 67 20 61 73 20 6e 65 61 |producin|g as nea|
|00001780| 72 6c 79 20 69 64 65 6e | 74 69 63 61 6c 20 6f 75 |rly iden|tical ou|
|00001790| 74 70 75 74 20 61 73 20 | 70 6f 73 73 69 62 6c 65 |tput as |possible|
|000017a0| 20 74 6f 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c | to the |original|
|000017b0| 20 73 6f 75 72 63 65 2e | 0a 2e 4c 49 20 22 2d 73 | source.|..LI "-s|
|000017c0| 22 0a 43 61 75 73 65 73 | 20 61 6e 20 61 64 64 69 |".Causes| an addi|
|000017d0| 74 69 6f 6e 61 6c 20 73 | 63 61 6e 20 74 6f 20 74 |tional s|can to t|
|000017e0| 61 6b 65 20 70 6c 61 63 | 65 20 77 68 65 72 65 20 |ake plac|e where |
|000017f0| 61 6c 6c 20 70 6f 73 73 | 69 62 6c 65 20 6c 61 62 |all poss|ible lab|
|00001800| 65 6c 73 20 61 72 65 0a | 72 65 70 6c 61 63 65 64 |els are.|replaced|
|00001810| 20 62 79 20 6c 6f 63 61 | 6c 20 73 79 6d 62 6f 6c | by loca|l symbol|
|00001820| 73 2e 20 54 68 65 20 6c | 6f 63 61 6c 20 73 79 6d |s. The l|ocal sym|
|00001830| 62 6f 6c 73 20 61 72 65 | 20 69 6e 73 65 72 74 65 |bols are| inserte|
|00001840| 64 20 69 6e 20 73 74 72 | 69 63 74 6c 79 0a 61 73 |d in str|ictly.as|
|00001850| 63 65 6e 64 69 6e 67 20 | 6f 72 64 65 72 2c 20 73 |cending |order, s|
|00001860| 74 61 72 74 69 6e 67 20 | 61 74 20 31 2e 0a 2e 4c |tarting |at 1...L|
|00001870| 49 20 22 2d 76 22 0a 43 | 61 75 73 65 73 20 61 20 |I "-v".C|auses a |
|00001880| 62 6c 6f 77 2d 62 79 2d | 62 6c 6f 77 20 61 63 63 |blow-by-|blow acc|
|00001890| 6f 75 6e 74 20 6f 66 20 | 61 63 74 69 76 69 74 69 |ount of |activiti|
|000018a0| 65 73 20 74 6f 20 62 65 | 20 6f 75 74 70 75 74 20 |es to be| output |
|000018b0| 6f 6e 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 0a |on the s|tandard.|
|000018c0| 65 72 72 6f 72 2e 0a 2e | 4c 45 0a 2e 48 20 31 20 |error...|LE..H 1 |
|000018d0| 22 44 69 61 67 6e 6f 73 | 74 69 63 73 20 65 74 63 |"Diagnos|tics etc|
|000018e0| 22 0a 54 72 75 6e 63 61 | 74 65 64 20 6f 72 20 67 |".Trunca|ted or g|
|000018f0| 61 72 62 6c 65 64 20 6f | 62 6a 65 63 74 20 61 6e |arbled o|bject an|
|00001900| 64 20 6c 69 62 72 61 72 | 79 20 66 69 6c 65 73 20 |d librar|y files |
|00001910| 75 73 75 61 6c 6c 79 20 | 63 61 75 73 65 20 70 72 |usually |cause pr|
|00001920| 6f 63 65 73 73 69 6e 67 | 0a 74 6f 20 73 74 6f 70 |ocessing|.to stop|
|00001930| 20 77 69 74 68 20 61 6e | 20 65 78 70 6c 61 6e 61 | with an| explana|
|00001940| 74 6f 72 79 20 6d 65 73 | 73 61 67 65 2e 0a 2e 50 |tory mes|sage...P|
|00001950| 0a 54 68 65 20 6f 6e 6c | 79 20 6f 74 68 65 72 20 |.The onl|y other |
|00001960| 6b 69 6e 64 73 20 6f 66 | 20 6d 65 73 73 61 67 65 |kinds of| message|
|00001970| 20 61 72 65 20 73 6f 6d | 65 20 70 61 73 73 69 6e | are som|e passin|
|00001980| 67 20 77 61 72 6e 69 6e | 67 73 20 63 6f 6e 63 65 |g warnin|gs conce|
|00001990| 72 6e 69 6e 67 0a 6f 62 | 73 63 75 72 65 20 63 6f |rning.ob|scure co|
|000019a0| 6e 73 74 72 75 63 74 73 | 20 6e 6f 74 20 68 61 6e |nstructs| not han|
|000019b0| 64 6c 65 64 2c 20 73 75 | 63 68 20 61 73 20 74 68 |dled, su|ch as th|
|000019c0| 65 20 72 65 6c 6f 63 61 | 74 69 6f 6e 20 6f 66 20 |e reloca|tion of |
|000019d0| 62 79 74 65 20 66 69 65 | 6c 64 73 2c 0a 6f 72 20 |byte fie|lds,.or |
|000019e0| 74 68 65 20 72 65 6c 6f | 63 61 74 69 6f 6e 20 6f |the relo|cation o|
|000019f0| 66 20 6f 76 65 72 6c 61 | 70 70 69 6e 67 20 66 69 |f overla|pping fi|
|00001a00| 65 6c 64 73 2e 20 4f 63 | 63 61 73 69 6f 6e 61 6c |elds. Oc|casional|
|00001a10| 6c 79 20 61 20 6d 65 73 | 73 61 67 65 0a 2e 44 53 |ly a mes|sage..DS|
|00001a20| 20 49 0a 4c 69 62 72 61 | 72 79 20 63 6c 61 73 68 | I.Libra|ry clash|
|00001a30| 3a 20 6d 65 73 73 61 67 | 65 0a 2e 44 45 0a 2e 50 |: messag|e..DE..P|
|00001a40| 0a 6d 61 79 20 61 70 70 | 65 61 72 20 61 6e 64 20 |.may app|ear and |
|00001a50| 70 72 6f 63 65 73 73 69 | 6e 67 20 63 65 61 73 65 |processi|ng cease|
|00001a60| 2e 20 54 68 69 73 20 6d | 65 73 73 61 67 65 20 69 |. This m|essage i|
|00001a70| 73 20 66 6f 75 6e 64 20 | 77 68 65 72 65 20 61 74 |s found |where at|
|00001a80| 20 61 20 6c 61 74 65 0a | 73 74 61 67 65 20 69 6e | a late.|stage in|
|00001a90| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 6c 69 62 72 | process|ing libr|
|00001aa0| 61 72 69 65 73 2c 20 74 | 68 65 20 70 72 6f 67 72 |aries, t|he progr|
|00001ab0| 61 6d 20 64 69 73 63 6f | 76 65 72 73 20 74 68 61 |am disco|vers tha|
|00001ac0| 74 20 64 75 65 20 74 6f | 20 74 68 65 0a 65 78 74 |t due to| the.ext|
|00001ad0| 72 65 6d 65 20 73 69 6d | 69 6c 61 72 69 74 79 20 |reme sim|ilarity |
|00001ae0| 6f 66 20 74 77 6f 20 6f | 72 20 6d 6f 72 65 20 6c |of two o|r more l|
|00001af0| 69 62 72 61 72 79 20 6d | 65 6d 62 65 72 73 2c 20 |ibrary m|embers, |
|00001b00| 69 74 20 68 61 73 20 63 | 6f 6d 65 20 74 6f 20 74 |it has c|ome to t|
|00001b10| 68 65 0a 77 72 6f 6e 67 | 20 63 6f 6e 63 6c 75 73 |he.wrong| conclus|
|00001b20| 69 6f 6e 20 61 62 6f 75 | 74 20 77 68 69 63 68 20 |ion abou|t which |
|00001b30| 6f 6e 65 20 74 6f 20 75 | 73 65 2e 20 54 68 65 20 |one to u|se. The |
|00001b40| 72 65 6d 65 64 79 20 68 | 65 72 65 20 69 73 20 74 |remedy h|ere is t|
|00001b50| 6f 20 73 70 65 6c 6c 20 | 6f 75 74 0a 74 6f 20 74 |o spell |out.to t|
|00001b60| 68 65 20 70 72 6f 67 72 | 61 6d 20 77 68 69 63 68 |he progr|am which|
|00001b70| 20 6d 65 6d 62 65 72 73 | 20 74 6f 20 74 61 6b 65 | members| to take|
|00001b80| 20 69 6e 20 77 68 69 63 | 68 20 6f 72 64 65 72 2e | in whic|h order.|
|00001b90| 0a 2e 48 20 31 20 22 46 | 75 74 75 72 65 20 64 65 |..H 1 "F|uture de|
|00001ba0| 76 65 6c 6f 70 6d 65 6e | 74 22 0a 49 6e 20 74 68 |velopmen|t".In th|
|00001bb0| 65 20 66 75 74 75 72 65 | 20 69 74 20 69 73 20 68 |e future| it is h|
|00001bc0| 6f 70 65 64 20 74 6f 20 | 64 65 76 69 73 65 20 77 |oped to |devise w|
|00001bd0| 61 79 73 20 6f 66 20 6d | 61 6b 69 6e 67 20 74 68 |ays of m|aking th|
|00001be0| 65 20 64 69 73 61 73 73 | 65 6d 62 6c 65 72 0a 69 |e disass|embler.i|
|00001bf0| 6e 64 65 70 65 6e 64 65 | 6e 74 20 6f 66 20 61 6c |ndepende|nt of al|
|00001c00| 6c 20 74 68 65 20 61 62 | 6f 76 65 2d 6d 65 6e 74 |l the ab|ove-ment|
|00001c10| 69 6f 6e 65 64 20 76 65 | 72 73 69 6f 6e 20 64 65 |ioned ve|rsion de|
|00001c20| 70 65 6e 64 65 6e 63 69 | 65 73 2c 20 62 79 20 66 |pendenci|es, by f|
|00001c30| 69 72 73 74 0a 72 65 61 | 64 69 6e 67 20 61 20 66 |irst.rea|ding a f|
|00001c40| 69 6c 65 73 20 64 65 66 | 69 6e 69 6e 67 20 74 68 |iles def|ining th|
|00001c50| 65 73 65 20 74 68 69 6e | 67 73 2e 20 54 68 69 73 |ese thin|gs. This|
|00001c60| 20 77 69 6c 6c 20 70 72 | 6f 62 61 62 6c 79 20 62 | will pr|obably b|
|00001c70| 65 20 61 70 70 6c 69 65 | 64 0a 61 66 74 65 72 20 |e applie|d.after |
|00001c80| 74 68 65 20 43 6f 6d 6d | 6f 6e 20 4f 62 6a 65 63 |the Comm|on Objec|
|00001c90| 74 20 46 6f 72 6d 61 74 | 20 62 65 63 6f 6d 65 73 |t Format| becomes|
|00001ca0| 20 6d 6f 72 65 20 73 74 | 61 6e 64 61 72 64 2e 0a | more st|andard..|
|00001cb0| 2e 50 0a 49 6e 20 74 68 | 65 20 6c 6f 6e 67 20 74 |.P.In th|e long t|
|00001cc0| 65 72 6d 20 69 74 20 77 | 6f 75 6c 64 20 62 65 20 |erm it w|ould be |
|00001cd0| 64 65 73 69 72 61 62 6c | 65 20 61 6e 64 20 75 73 |desirabl|e and us|
|00001ce0| 65 66 75 6c 20 74 6f 20 | 65 6e 68 61 6e 63 65 20 |eful to |enhance |
|00001cf0| 74 68 65 20 70 72 6f 64 | 75 63 74 0a 74 6f 20 70 |the prod|uct.to p|
|00001d00| 72 6f 64 75 63 65 20 63 | 6f 6d 70 69 6c 61 62 6c |roduce c|ompilabl|
|00001d10| 65 20 43 20 69 6e 20 61 | 64 64 69 74 69 6f 6e 20 |e C in a|ddition |
|00001d20| 74 6f 20 61 73 73 65 6d | 62 6c 61 62 6c 65 20 61 |to assem|blable a|
|00001d30| 73 73 65 6d 62 6c 65 72 | 2e 20 53 74 61 67 65 73 |ssembler|. Stages|
|00001d40| 20 69 6e 0a 74 68 65 20 | 70 72 6f 63 65 73 73 20 | in.the |process |
|00001d50| 61 72 65 20 73 65 65 6e | 20 61 73 20 66 6f 6c 6c |are seen| as foll|
|00001d60| 6f 77 73 3a 0a 2e 41 4c | 0a 2e 4c 49 0a 42 65 74 |ows:..AL|..LI.Bet|
|00001d70| 74 65 72 20 69 64 65 6e | 74 69 66 69 63 61 74 69 |ter iden|tificati|
|00001d80| 6f 6e 20 6f 66 20 62 61 | 73 69 63 20 62 6c 6f 63 |on of ba|sic bloc|
|00001d90| 6b 73 20 69 6e 20 74 68 | 65 20 63 6f 64 65 2e 20 |ks in th|e code. |
|00001da0| 53 77 69 74 63 68 20 73 | 74 61 74 65 6d 65 6e 74 |Switch s|tatement|
|00001db0| 73 20 61 72 65 0a 61 20 | 6d 61 6a 6f 72 20 70 72 |s are.a |major pr|
|00001dc0| 6f 62 6c 65 6d 20 68 65 | 72 65 2c 20 61 73 20 61 |oblem he|re, as a|
|00001dd0| 72 65 20 63 6f 6e 73 74 | 61 6e 74 20 64 61 74 61 |re const|ant data|
|00001de0| 20 68 65 6c 64 20 69 6e | 20 74 68 65 20 74 65 78 | held in| the tex|
|00001df0| 74 20 73 65 67 6d 65 6e | 74 2e 0a 2e 4c 49 0a 4d |t segmen|t...LI.M|
|00001e00| 61 72 72 79 69 6e 67 20 | 6f 66 20 64 61 74 61 20 |arrying |of data |
|00001e10| 74 6f 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |to the c|orrespon|
|00001e20| 64 69 6e 67 20 74 65 78 | 74 2e 20 49 74 20 69 73 |ding tex|t. It is|
|00001e30| 20 69 6e 20 76 61 72 69 | 6f 75 73 20 70 6c 61 63 | in vari|ous plac|
|00001e40| 65 73 20 68 61 72 64 0a | 74 6f 20 64 69 76 6f 72 |es hard.|to divor|
|00001e50| 63 65 20 73 74 61 74 69 | 63 20 72 65 66 65 72 65 |ce stati|c refere|
|00001e60| 6e 63 65 73 20 22 6f 6e | 20 74 68 65 20 66 6c 79 |nces "on| the fly|
|00001e70| 22 20 28 65 2e 67 2e 20 | 73 74 72 69 6e 67 73 2c |" (e.g. |strings,|
|00001e80| 20 61 6e 64 20 73 77 69 | 74 63 68 0a 6c 69 73 74 | and swi|tch.list|
|00001e90| 73 20 69 6e 20 73 6f 6d | 65 20 69 6d 70 6c 65 6d |s in som|e implem|
|00001ea0| 65 6e 74 61 74 69 6f 6e | 73 29 20 66 72 6f 6d 20 |entation|s) from |
|00001eb0| 73 74 61 74 69 63 20 61 | 74 20 74 68 65 20 68 65 |static a|t the he|
|00001ec0| 61 64 20 6f 66 20 61 20 | 6d 6f 64 75 6c 65 2e 20 |ad of a |module. |
|00001ed0| 54 68 69 73 0a 69 73 20 | 70 61 72 74 20 6f 66 20 |This.is |part of |
|00001ee0| 74 68 65 20 70 72 6f 62 | 6c 65 6d 20 6f 66 20 69 |the prob|lem of i|
|00001ef0| 64 65 6e 74 69 66 79 69 | 6e 67 20 62 61 73 69 63 |dentifyi|ng basic|
|00001f00| 20 62 6c 6f 63 6b 73 2e | 0a 2e 4c 49 0a 43 6f 6d | blocks.|..LI.Com|
|00001f10| 70 69 6c 61 74 69 6f 6e | 20 6f 66 20 68 65 61 64 |pilation| of head|
|00001f20| 65 72 20 66 69 6c 65 73 | 20 74 6f 20 77 6f 72 6b |er files| to work|
|00001f30| 20 6f 75 74 20 73 74 72 | 75 63 74 75 72 65 20 72 | out str|ucture r|
|00001f40| 65 66 65 72 65 6e 63 65 | 73 20 77 69 74 68 69 6e |eference|s within|
|00001f50| 20 74 68 65 0a 74 65 78 | 74 2e 20 41 74 20 74 68 | the.tex|t. At th|
|00001f60| 69 73 20 73 74 61 67 65 | 20 73 6f 6d 65 20 69 6e |is stage| some in|
|00001f70| 74 65 72 61 63 74 69 6f | 6e 20 6d 61 79 20 62 65 |teractio|n may be|
|00001f80| 20 6e 65 65 64 65 64 2e | 0a 2e 4c 45 0a 2e 50 0a | needed.|..LE..P.|
|00001f90| 4d 65 61 6e 77 68 69 6c | 65 20 74 68 65 20 70 72 |Meanwhil|e the pr|
|00001fa0| 6f 64 75 63 74 20 69 73 | 20 6f 6e 65 20 77 68 69 |oduct is| one whi|
|00001fb0| 63 68 20 69 73 20 61 20 | 75 73 65 66 75 6c 20 74 |ch is a |useful t|
|00001fc0| 6f 6f 6c 20 74 6f 20 74 | 68 65 20 61 75 74 68 6f |ool to t|he autho|
|00001fd0| 72 20 69 6e 20 69 74 73 | 0a 70 72 65 73 65 6e 74 |r in its|.present|
|00001fe0| 20 66 6f 72 6d 2e 20 43 | 6f 6d 6d 65 6e 74 73 20 | form. C|omments |
|00001ff0| 61 6e 64 20 73 75 67 67 | 65 73 74 69 6f 6e 73 20 |and sugg|estions |
|00002000| 61 73 20 74 6f 20 74 68 | 65 20 6d 6f 73 74 20 70 |as to th|e most p|
|00002010| 72 61 63 74 69 63 61 6c | 20 6d 65 74 68 6f 64 0a |ractical| method.|
|00002020| 6f 66 20 69 6d 70 72 6f | 76 69 6e 67 20 74 68 65 |of impro|ving the|
|00002030| 20 70 72 6f 64 75 63 74 | 20 69 6e 20 74 68 65 20 | product| in the |
|00002040| 77 61 79 73 20 73 75 67 | 67 65 73 74 65 64 20 6f |ways sug|gested o|
|00002050| 72 20 69 6e 20 6f 74 68 | 65 72 20 77 61 79 73 20 |r in oth|er ways |
|00002060| 77 6f 75 6c 64 20 62 65 | 0a 67 72 61 74 65 66 75 |would be|.gratefu|
|00002070| 6c 6c 79 20 63 6f 6e 73 | 69 64 65 72 65 64 2e 0a |lly cons|idered..|
|00002080| 53 48 41 52 5f 45 4f 46 | 0a 69 66 20 74 65 73 74 |SHAR_EOF|.if test|
|00002090| 20 36 34 34 35 20 2d 6e | 65 20 22 60 77 63 20 2d | 6445 -n|e "`wc -|
|000020a0| 63 20 3c 20 27 64 6f 63 | 27 60 22 0a 74 68 65 6e |c < 'doc|'`".then|
|000020b0| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 65 72 72 |..echo s|har: err|
|000020c0| 6f 72 20 74 72 61 6e 73 | 6d 69 74 74 69 6e 67 20 |or trans|mitting |
|000020d0| 22 27 64 6f 63 27 22 20 | 27 28 73 68 6f 75 6c 64 |"'doc'" |'(should|
|000020e0| 20 68 61 76 65 20 62 65 | 65 6e 20 36 34 34 35 20 | have be|en 6445 |
|000020f0| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 66 69 0a |characte|rs)'.fi.|
|00002100| 66 69 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |fi.echo |shar: ex|
|00002110| 74 72 61 63 74 69 6e 67 | 20 22 27 64 6f 63 2e 6f |tracting| "'doc.o|
|00002120| 75 74 27 22 20 27 28 37 | 34 31 35 20 63 68 61 72 |ut'" '(7|415 char|
|00002130| 61 63 74 65 72 73 29 27 | 0a 69 66 20 74 65 73 74 |acters)'|.if test|
|00002140| 20 2d 66 20 27 64 6f 63 | 2e 6f 75 74 27 0a 74 68 | -f 'doc|.out'.th|
|00002150| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 77 |en..echo| shar: w|
|00002160| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00002170| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00002180| 20 22 27 64 6f 63 2e 6f | 75 74 27 22 0a 65 6c 73 | "'doc.o|ut'".els|
|00002190| 65 0a 63 61 74 20 3c 3c | 20 5c 53 48 41 52 5f 45 |e.cat <<| \SHAR_E|
|000021a0| 4f 46 20 3e 20 27 64 6f | 63 2e 6f 75 74 27 0a 0a |OF > 'do|c.out'..|
|000021b0| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000021c0| 20 20 20 20 20 20 20 20 | 20 41 20 44 69 73 61 73 | | A Disas|
|000021d0| 73 65 6d 62 6c 65 72 0a | 0a 0a 0a 20 20 20 20 20 |sembler.|... |
|000021e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021f0| 20 31 2e 20 20 49 6e 74 | 72 6f 64 75 63 74 69 6f | 1. Int|roductio|
|00002200| 6e 0a 0a 54 68 69 73 20 | 64 6f 63 75 6d 65 6e 74 |n..This |document|
|00002210| 20 64 65 73 63 72 69 62 | 65 73 20 74 68 65 20 66 | describ|es the f|
|00002220| 69 72 73 74 20 72 65 6c | 65 61 73 65 20 6f 66 20 |irst rel|ease of |
|00002230| 61 20 20 64 69 73 61 73 | 73 65 6d 62 6c 65 72 0a |a disas|sembler.|
|00002240| 66 6f 72 20 55 4e 49 58 | 20 65 78 65 63 75 74 61 |for UNIX| executa|
|00002250| 62 6c 65 20 66 69 6c 65 | 73 2e 20 20 54 68 65 20 |ble file|s. The |
|00002260| 6b 65 79 20 66 65 61 74 | 75 72 65 73 20 61 72 65 |key feat|ures are|
|00002270| 3a 0a 0a 20 20 31 2e 20 | 20 46 6f 72 20 6f 62 6a |:.. 1. | For obj|
|00002280| 65 63 74 20 20 66 69 6c | 65 73 20 20 74 68 65 20 |ect fil|es the |
|00002290| 20 6f 75 74 70 75 74 20 | 20 63 61 6e 20 20 62 65 | output | can be|
|000022a0| 20 20 61 73 73 65 6d 62 | 6c 65 64 20 20 74 6f 0a | assemb|led to.|
|000022b0| 20 20 20 20 20 20 67 65 | 6e 65 72 61 74 65 20 20 | ge|nerate |
|000022c0| 74 68 65 20 20 73 61 6d | 65 20 20 6f 62 6a 65 63 |the sam|e objec|
|000022d0| 74 20 20 6d 6f 64 75 6c | 65 2c 20 28 61 70 61 72 |t modul|e, (apar|
|000022e0| 74 20 66 72 6f 6d 20 6d | 69 6e 6f 72 0a 20 20 20 |t from m|inor. |
|000022f0| 20 20 20 76 61 72 69 61 | 74 69 6f 6e 73 20 69 6e | varia|tions in|
|00002300| 20 73 79 6d 62 6f 6c 20 | 74 61 62 6c 65 20 6f 72 | symbol |table or|
|00002310| 64 65 72 69 6e 67 29 20 | 61 73 20 74 68 65 20 69 |dering) |as the i|
|00002320| 6e 70 75 74 2e 0a 0a 20 | 20 32 2e 20 20 46 6f 72 |nput... | 2. For|
|00002330| 20 20 73 74 72 69 70 70 | 65 64 20 20 65 78 65 63 | stripp|ed exec|
|00002340| 75 74 61 62 6c 65 20 20 | 66 69 6c 65 73 20 20 6f |utable |files o|
|00002350| 62 6a 65 63 74 20 20 6d | 6f 64 75 6c 65 73 20 20 |bject m|odules |
|00002360| 61 6e 64 0a 20 20 20 20 | 20 20 6c 69 62 72 61 72 |and. | librar|
|00002370| 69 65 73 20 20 6d 61 79 | 20 20 62 65 20 20 73 63 |ies may| be sc|
|00002380| 61 6e 6e 65 64 2c 20 6d | 6f 64 75 6c 65 73 20 69 |anned, m|odules i|
|00002390| 6e 20 74 68 65 20 6d 61 | 69 6e 20 69 6e 70 75 74 |n the ma|in input|
|000023a0| 0a 20 20 20 20 20 20 69 | 64 65 6e 74 69 66 69 65 |. i|dentifie|
|000023b0| 64 20 61 6e 64 20 20 74 | 68 65 20 20 61 70 70 72 |d and t|he appr|
|000023c0| 6f 70 72 69 61 74 65 20 | 20 6e 61 6d 65 73 20 20 |opriate | names |
|000023d0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 0a 20 20 |automati|cally. |
|000023e0| 20 20 20 20 69 6e 73 65 | 72 74 65 64 20 69 6e 74 | inse|rted int|
|000023f0| 6f 20 74 68 65 20 6f 75 | 74 70 75 74 2e 0a 0a 20 |o the ou|tput... |
|00002400| 20 33 2e 20 20 41 6e 20 | 6f 70 74 69 6f 6e 20 69 | 3. An |option i|
|00002410| 73 20 20 61 76 61 69 6c | 61 62 6c 65 20 20 74 6f |s avail|able to|
|00002420| 20 20 63 6f 6e 76 65 72 | 74 20 20 6d 6f 73 74 20 | conver|t most |
|00002430| 20 6e 6f 6e 2d 67 6c 6f | 62 61 6c 0a 20 20 20 20 | non-glo|bal. |
|00002440| 20 20 6e 61 6d 65 73 20 | 20 69 6e 74 6f 20 6c 6f | names | into lo|
|00002450| 63 61 6c 20 73 79 6d 62 | 6f 6c 73 2c 20 77 68 69 |cal symb|ols, whi|
|00002460| 63 68 20 63 75 74 73 20 | 64 6f 77 6e 20 74 68 65 |ch cuts |down the|
|00002470| 20 73 79 6d 62 6f 6c 73 | 0a 20 20 20 20 20 20 69 | symbols|. i|
|00002480| 6e 20 74 68 65 20 67 65 | 6e 65 72 61 74 65 64 20 |n the ge|nerated |
|00002490| 61 73 73 65 6d 62 6c 65 | 72 20 66 69 6c 65 2e 0a |assemble|r file..|
|000024a0| 0a 20 20 34 2e 20 20 54 | 68 65 20 64 69 73 61 73 |. 4. T|he disas|
|000024b0| 73 65 6d 62 6c 65 72 20 | 63 6f 70 65 73 20 72 65 |sembler |copes re|
|000024c0| 61 73 6f 6e 61 62 6c 79 | 20 77 69 74 68 20 6d 6f |asonably| with mo|
|000024d0| 64 75 6c 65 73 20 20 6d | 65 72 67 65 64 0a 20 20 |dules m|erged. |
|000024e0| 20 20 20 20 77 69 74 68 | 20 74 68 65 20 2d 72 20 | with| the -r |
|000024f0| 6f 70 74 69 6f 6e 20 74 | 6f 20 6c 64 2c 20 67 65 |option t|o ld, ge|
|00002500| 6e 65 72 61 74 69 6e 67 | 20 61 20 77 61 72 6e 69 |nerating| a warni|
|00002510| 6e 67 20 6d 65 73 73 61 | 67 65 0a 20 20 20 20 20 |ng messa|ge. |
|00002520| 20 61 73 20 74 6f 20 74 | 68 65 20 6e 75 6d 62 65 | as to t|he numbe|
|00002530| 72 20 6f 66 20 6d 6f 64 | 75 6c 65 73 20 69 6e 76 |r of mod|ules inv|
|00002540| 6f 6c 76 65 64 2e 0a 0a | 41 74 20 70 72 65 73 65 |olved...|At prese|
|00002550| 6e 74 20 74 68 69 73 20 | 69 73 20 20 61 76 61 69 |nt this |is avai|
|00002560| 6c 61 62 6c 65 20 20 66 | 6f 72 20 20 63 65 72 74 |lable f|or cert|
|00002570| 61 69 6e 20 20 4d 6f 74 | 6f 72 6f 6c 61 20 20 36 |ain Mot|orola 6|
|00002580| 38 30 30 30 0a 70 6f 72 | 74 73 20 6f 66 20 55 4e |8000.por|ts of UN|
|00002590| 49 58 20 53 79 73 74 65 | 6d 20 49 49 49 20 61 6e |IX Syste|m III an|
|000025a0| 64 20 53 79 73 74 65 6d | 20 56 2e 20 44 65 70 65 |d System| V. Depe|
|000025b0| 6e 64 65 6e 63 69 65 73 | 20 6f 6e 0a 0a 20 20 61 |ndencies| on.. a|
|000025c0| 2e 20 20 49 6e 73 74 72 | 75 63 74 69 6f 6e 20 73 |. Instr|uction s|
|000025d0| 65 74 2e 0a 0a 20 20 62 | 2e 20 20 4f 62 6a 65 63 |et... b|. Objec|
|000025e0| 74 20 6d 6f 64 75 6c 65 | 20 66 6f 72 6d 61 74 2e |t module| format.|
|000025f0| 0a 0a 20 20 63 2e 20 20 | 4c 69 62 72 61 72 79 20 |.. c. |Library |
|00002600| 6d 6f 64 75 6c 65 20 66 | 6f 72 6d 61 74 2e 0a 0a |module f|ormat...|
|00002610| 20 20 64 2e 20 20 41 73 | 73 65 6d 62 6c 65 72 20 | d. As|sembler |
|00002620| 6f 75 74 70 75 74 20 66 | 6f 72 6d 61 74 2e 0a 0a |output f|ormat...|
|00002630| 61 72 65 20 68 6f 70 65 | 66 75 6c 6c 79 20 73 75 |are hope|fully su|
|00002640| 66 66 69 63 69 65 6e 74 | 6c 79 20 6c 6f 63 61 6c |fficient|ly local|
|00002650| 69 73 65 64 20 20 74 6f | 20 20 6d 61 6b 65 20 20 |ised to| make |
|00002660| 74 68 65 20 20 70 72 6f | 64 75 63 74 0a 75 73 65 |the pro|duct.use|
|00002670| 66 75 6c 20 61 73 20 61 | 20 62 61 73 69 73 20 66 |ful as a| basis f|
|00002680| 6f 72 20 6f 74 68 65 72 | 20 64 69 73 61 73 73 65 |or other| disasse|
|00002690| 6d 62 6c 65 72 73 20 66 | 6f 72 20 6f 74 68 65 72 |mblers f|or other|
|000026a0| 20 76 65 72 73 69 6f 6e | 73 0a 6f 66 20 55 4e 49 | version|s.of UNI|
|000026b0| 58 2e 0a 0a 54 68 65 20 | 70 72 6f 64 75 63 74 20 |X...The |product |
|000026c0| 69 73 20 74 68 75 73 20 | 64 69 73 74 72 69 62 75 |is thus |distribu|
|000026d0| 74 65 64 20 69 6e 20 73 | 6f 75 72 63 65 20 66 6f |ted in s|ource fo|
|000026e0| 72 6d 20 61 74 20 70 72 | 65 73 65 6e 74 2e 0a 0a |rm at pr|esent...|
|000026f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002700| 20 20 20 20 20 20 20 20 | 20 20 20 32 2e 20 20 55 | | 2. U|
|00002710| 73 65 0a 0a 54 68 65 20 | 64 69 73 61 73 73 65 6d |se..The |disassem|
|00002720| 62 6c 65 72 20 69 73 20 | 72 75 6e 20 62 79 20 65 |bler is |run by e|
|00002730| 6e 74 65 72 69 6e 67 3a | 0a 0a 20 20 20 20 20 75 |ntering:|.. u|
|00002740| 6e 63 20 6d 61 69 6e 66 | 69 6c 65 20 6c 69 62 31 |nc mainf|ile lib1|
|00002750| 20 6c 69 62 32 20 2e 2e | 2e 0a 0a 54 68 65 20 66 | lib2 ..|...The f|
|00002760| 69 72 73 74 20 6e 61 6d | 65 64 20 66 69 6c 65 20 |irst nam|ed file |
|00002770| 69 73 20 74 68 65 20 66 | 69 6c 65 20 74 6f 20 62 |is the f|ile to b|
|00002780| 65 20 20 64 69 73 61 73 | 73 65 6d 62 6c 65 64 2c |e disas|sembled,|
|00002790| 20 20 77 68 69 63 68 0a | 73 68 6f 75 6c 64 20 20 | which.|should |
|000027a0| 62 65 20 20 61 20 20 73 | 69 6e 67 6c 65 20 20 66 |be a s|ingle f|
|000027b0| 69 6c 65 2c 20 20 65 69 | 74 68 65 72 20 20 61 6e |ile, ei|ther an|
|000027c0| 20 20 6f 62 6a 65 63 74 | 20 20 6d 6f 64 75 6c 65 | object| module|
|000027d0| 2c 20 20 61 0a 28 70 6f | 73 73 69 62 6c 79 20 73 |, a.(po|ssibly s|
|000027e0| 74 72 69 70 70 65 64 29 | 20 65 78 65 63 75 74 61 |tripped)| executa|
|000027f0| 62 6c 65 20 66 69 6c 65 | 2c 20 6f 72 20 20 61 20 |ble file|, or a |
|00002800| 20 6c 69 62 72 61 72 79 | 20 20 6d 65 6d 62 65 72 | library| member|
|00002810| 2e 0a 4c 69 62 72 61 72 | 79 20 6d 65 6d 62 65 72 |..Librar|y member|
|00002820| 73 20 61 72 65 20 64 65 | 73 69 67 6e 61 74 65 64 |s are de|signated|
|00002830| 20 75 73 69 6e 67 20 61 | 20 70 61 72 65 6e 74 68 | using a| parenth|
|00002840| 65 73 69 73 20 6e 6f 74 | 61 74 69 6f 6e 2c 0a 74 |esis not|ation,.t|
|00002850| 68 75 73 3a 0a 0a 0a 0a | 20 20 20 20 20 20 20 20 |hus:....| |
|00002860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 61 | | Pa|
|00002890| 67 65 20 31 0a 0a 0a 0a | 0a 0a 0a 0a 20 20 20 20 |ge 1....|.... |
|000028a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028b0| 20 20 20 41 20 44 69 73 | 61 73 73 65 6d 62 6c 65 | A Dis|assemble|
|000028c0| 72 0a 0a 0a 0a 20 20 20 | 20 20 75 6e 63 20 27 2f |r.... | unc '/|
|000028d0| 6c 69 62 2f 6c 69 62 63 | 2e 61 28 70 72 69 6e 74 |lib/libc|.a(print|
|000028e0| 66 2e 6f 29 27 0a 0a 49 | 74 20 69 73 20 75 73 75 |f.o)'..I|t is usu|
|000028f0| 61 6c 6c 79 20 6e 65 63 | 65 73 73 61 72 79 20 74 |ally nec|essary t|
|00002900| 6f 20 65 73 63 61 70 65 | 20 74 68 65 20 61 72 67 |o escape| the arg|
|00002910| 75 6d 65 6e 74 73 20 69 | 6e 20 74 68 69 73 20 63 |uments i|n this c|
|00002920| 61 73 65 0a 74 6f 20 20 | 70 72 65 76 65 6e 74 20 |ase.to |prevent |
|00002930| 20 6d 69 73 69 6e 74 65 | 72 70 72 65 74 61 74 69 | misinte|rpretati|
|00002940| 6f 6e 20 20 62 79 20 20 | 74 68 65 20 20 73 68 65 |on by |the she|
|00002950| 6c 6c 2e 20 4c 69 62 72 | 61 72 69 65 73 20 69 6e |ll. Libr|aries in|
|00002960| 0a 73 74 61 6e 64 61 72 | 64 20 70 6c 61 63 65 73 |.standar|d places|
|00002970| 20 73 75 63 68 20 61 73 | 20 2f 6c 69 62 20 61 6e | such as| /lib an|
|00002980| 64 20 2f 75 73 72 2f 6c | 69 62 20 6d 61 79 20 20 |d /usr/l|ib may |
|00002990| 62 65 20 20 73 70 65 63 | 69 66 69 65 64 0a 69 6e |be spec|ified.in|
|000029a0| 20 74 68 65 20 73 61 6d | 65 20 77 61 79 20 61 73 | the sam|e way as|
|000029b0| 20 74 6f 20 6c 64 2c 20 | 74 68 75 73 0a 0a 20 20 | to ld, |thus.. |
|000029c0| 20 20 20 75 6e 63 20 27 | 2d 6c 63 28 70 72 69 6e | unc '|-lc(prin|
|000029d0| 74 66 2e 6f 29 27 0a 20 | 20 20 20 20 75 6e 63 20 |tf.o)'. | unc |
|000029e0| 27 2d 6c 63 75 72 73 65 | 73 28 77 6d 6f 76 65 2e |'-lcurse|s(wmove.|
|000029f0| 6f 29 27 0a 0a 41 73 20 | 61 6e 20 61 64 64 69 74 |o)'..As |an addit|
|00002a00| 69 6f 6e 61 6c 20 66 61 | 63 69 6c 69 74 79 2c 20 |ional fa|cility, |
|00002a10| 74 68 65 20 6c 69 73 74 | 20 6f 66 20 64 69 72 65 |the list| of dire|
|00002a20| 63 74 6f 72 69 65 73 20 | 20 73 65 61 72 63 68 65 |ctories | searche|
|00002a30| 64 0a 66 6f 72 20 20 6c | 69 62 72 61 72 69 65 73 |d.for l|ibraries|
|00002a40| 20 20 6d 61 79 20 20 62 | 65 20 20 76 61 72 69 65 | may b|e varie|
|00002a50| 64 20 20 62 79 20 20 73 | 65 74 74 69 6e 67 20 74 |d by s|etting t|
|00002a60| 68 65 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 0a 76 |he envir|onment.v|
|00002a70| 61 72 69 61 62 6c 65 20 | 4c 44 50 41 54 48 2c 20 |ariable |LDPATH, |
|00002a80| 77 68 69 63 68 20 69 73 | 20 69 6e 74 65 72 70 72 |which is| interpr|
|00002a90| 65 74 65 64 20 73 69 6d | 69 6c 61 72 6c 79 20 74 |eted sim|ilarly t|
|00002aa0| 6f 20 74 68 65 20 73 68 | 65 6c 6c 0a 50 41 54 48 |o the sh|ell.PATH|
|00002ab0| 20 76 61 72 69 61 62 6c | 65 2c 20 61 6e 64 20 6f | variabl|e, and o|
|00002ac0| 66 20 63 6f 75 72 73 65 | 20 64 65 66 61 75 6c 74 |f course| default|
|00002ad0| 73 20 74 6f 0a 0a 20 20 | 20 20 20 4c 44 50 41 54 |s to.. | LDPAT|
|00002ae0| 48 3d 2f 6c 69 62 3a 2f | 75 73 72 2f 6c 69 62 0a |H=/lib:/|usr/lib.|
|00002af0| 0a 41 73 20 61 20 66 75 | 72 74 68 65 72 20 66 61 |.As a fu|rther fa|
|00002b00| 63 69 6c 69 74 79 2c 20 | 74 68 65 20 69 6e 73 65 |cility, |the inse|
|00002b10| 72 74 69 6f 6e 20 6f 66 | 20 6c 69 62 20 20 62 65 |rtion of| lib be|
|00002b20| 66 6f 72 65 20 20 61 6e | 64 20 20 2e 61 0a 61 66 |fore an|d .a.af|
|00002b30| 74 65 72 20 20 74 68 65 | 20 20 61 72 67 75 6d 65 |ter the| argume|
|00002b40| 6e 74 20 6d 61 79 20 62 | 65 20 73 75 70 70 72 65 |nt may b|e suppre|
|00002b50| 73 73 65 64 20 62 79 20 | 75 73 69 6e 67 20 61 20 |ssed by |using a |
|00002b60| 63 61 70 69 74 61 6c 20 | 2d 4c 0a 61 72 67 75 6d |capital |-L.argum|
|00002b70| 65 6e 74 2c 20 74 68 75 | 73 20 74 6f 20 70 72 69 |ent, thu|s to pri|
|00002b80| 6e 74 20 6f 75 74 20 74 | 68 65 20 61 73 73 65 6d |nt out t|he assem|
|00002b90| 62 6c 65 72 20 20 66 6f | 72 20 20 2f 6c 69 62 2f |bler fo|r /lib/|
|00002ba0| 63 72 74 30 2e 6f 2c 0a | 74 68 65 6e 20 74 68 65 |crt0.o,.|then the|
|00002bb0| 20 63 6f 6d 6d 61 6e 64 | 0a 0a 20 20 20 20 20 75 | command|.. u|
|00002bc0| 6e 63 20 2d 4c 63 72 74 | 30 2e 6f 0a 0a 73 68 6f |nc -Lcrt|0.o..sho|
|00002bd0| 75 6c 64 20 68 61 76 65 | 20 74 68 65 20 64 65 73 |uld have| the des|
|00002be0| 69 72 65 64 20 65 66 66 | 65 63 74 2e 0a 0a 53 65 |ired eff|ect...Se|
|00002bf0| 63 6f 6e 64 20 61 6e 64 | 20 73 75 62 73 65 71 75 |cond and| subsequ|
|00002c00| 65 6e 74 20 66 69 6c 65 | 20 61 72 67 75 6d 65 6e |ent file| argumen|
|00002c10| 74 73 20 61 72 65 20 6f | 6e 6c 79 20 72 65 66 65 |ts are o|nly refe|
|00002c20| 72 65 6e 63 65 64 20 66 | 6f 72 0a 73 74 72 69 70 |renced f|or.strip|
|00002c30| 70 65 64 20 20 65 78 65 | 63 75 74 61 62 6c 65 20 |ped exe|cutable |
|00002c40| 66 69 6c 65 73 2c 20 61 | 6e 64 20 6d 61 79 20 63 |files, a|nd may c|
|00002c50| 6f 6e 73 69 73 74 20 6f | 66 20 73 69 6e 67 6c 65 |onsist o|f single|
|00002c60| 20 6f 62 6a 65 63 74 0a | 66 69 6c 65 73 20 61 6e | object.|files an|
|00002c70| 64 20 6c 69 62 72 61 72 | 79 20 6d 65 6d 62 65 72 |d librar|y member|
|00002c80| 73 2c 20 75 73 69 6e 67 | 20 74 68 65 20 73 61 6d |s, using| the sam|
|00002c90| 65 20 73 79 6e 74 61 78 | 20 61 73 20 20 62 65 66 |e syntax| as bef|
|00002ca0| 6f 72 65 2c 0a 6f 72 20 | 77 68 6f 6c 65 20 6c 69 |ore,.or |whole li|
|00002cb0| 62 72 61 72 69 65 73 20 | 6f 66 20 6f 62 6a 65 63 |braries |of objec|
|00002cc0| 74 20 66 69 6c 65 73 2c | 20 74 68 75 73 3a 0a 0a |t files,| thus:..|
|00002cd0| 20 20 20 20 20 75 6e 63 | 20 73 74 72 69 70 70 65 | unc| strippe|
|00002ce0| 64 66 69 6c 65 20 2d 4c | 63 72 74 30 2e 6f 20 2d |dfile -L|crt0.o -|
|00002cf0| 6c 63 75 72 73 65 73 20 | 2d 6c 74 65 72 6d 63 61 |lcurses |-ltermca|
|00002d00| 70 20 27 2d 6c 6d 28 73 | 71 72 74 2e 6f 29 27 20 |p '-lm(s|qrt.o)' |
|00002d10| 2d 6c 63 0a 0a 49 74 20 | 69 73 20 61 64 76 69 73 |-lc..It |is advis|
|00002d20| 61 62 6c 65 20 74 6f 20 | 6d 61 6b 65 20 73 6f 6d |able to |make som|
|00002d30| 65 20 65 66 66 6f 72 74 | 20 74 6f 20 70 75 74 20 |e effort| to put |
|00002d40| 74 68 65 20 6c 69 62 72 | 61 72 69 65 73 20 20 74 |the libr|aries t|
|00002d50| 6f 0a 62 65 20 20 73 65 | 61 72 63 68 65 64 20 20 |o.be se|arched |
|00002d60| 69 6e 20 20 74 68 65 20 | 20 6f 72 64 65 72 20 20 |in the | order |
|00002d70| 69 6e 20 20 77 68 69 63 | 68 20 74 68 65 79 20 77 |in whic|h they w|
|00002d80| 65 72 65 20 6f 72 69 67 | 69 6e 61 6c 6c 79 0a 6c |ere orig|inally.l|
|00002d90| 6f 61 64 65 64 2e 20 54 | 68 69 73 20 69 73 20 62 |oaded. T|his is b|
|00002da0| 65 63 61 75 73 65 20 74 | 68 65 20 73 65 61 72 63 |ecause t|he searc|
|00002db0| 68 20 66 6f 72 20 20 65 | 61 63 68 20 20 6d 6f 64 |h for e|ach mod|
|00002dc0| 75 6c 65 20 20 73 74 61 | 72 74 73 0a 77 68 65 72 |ule sta|rts.wher|
|00002dd0| 65 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 6c 79 |e the pr|eviously|
|00002de0| 20 6d 61 74 63 68 65 64 | 20 6d 6f 64 75 6c 65 20 | matched| module |
|00002df0| 65 6e 64 65 64 2e 20 20 | 48 6f 77 65 76 65 72 2c |ended. |However,|
|00002e00| 20 6e 6f 20 68 61 72 6d | 0a 69 73 20 64 6f 6e 65 | no harm|.is done|
|00002e10| 20 69 66 20 74 68 69 73 | 20 72 75 6c 65 20 69 73 | if this| rule is|
|00002e20| 20 6e 6f 74 20 61 64 68 | 65 72 65 64 20 74 6f 20 | not adh|ered to |
|00002e30| 61 70 61 72 74 20 66 72 | 6f 6d 20 20 69 6e 63 72 |apart fr|om incr|
|00002e40| 65 61 73 65 64 0a 65 78 | 65 63 75 74 69 6f 6e 20 |eased.ex|ecution |
|00002e50| 20 20 74 69 6d 65 20 20 | 20 65 78 63 65 70 74 20 | time | except |
|00002e60| 20 20 69 6e 20 20 74 68 | 65 20 20 72 61 72 65 20 | in th|e rare |
|00002e70| 20 63 61 73 65 73 20 20 | 77 68 65 72 65 20 20 74 | cases |where t|
|00002e80| 68 65 0a 64 69 73 61 73 | 73 65 6d 62 6c 65 72 20 |he.disas|sembler |
|00002e90| 69 73 20 63 6f 6e 66 75 | 73 65 64 20 62 79 20 6f |is confu|sed by o|
|00002ea0| 62 6a 65 63 74 20 6d 6f | 64 75 6c 65 73 20 20 77 |bject mo|dules w|
|00002eb0| 68 69 63 68 20 20 61 72 | 65 20 20 76 65 72 79 0a |hich ar|e very.|
|00002ec0| 6e 65 61 72 6c 79 20 73 | 69 6d 69 6c 61 72 2e 0a |nearly s|imilar..|
|00002ed0| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00002ee0| 20 20 20 20 20 33 2e 20 | 20 41 64 64 69 74 69 6f | 3. | Additio|
|00002ef0| 6e 61 6c 20 6f 70 74 69 | 6f 6e 73 0a 0a 54 68 65 |nal opti|ons..The|
|00002f00| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6f 70 74 69 6f | followi|ng optio|
|00002f10| 6e 73 20 61 72 65 20 61 | 76 61 69 6c 61 62 6c 65 |ns are a|vailable|
|00002f20| 20 74 6f 20 6d 6f 64 69 | 66 79 20 74 68 65 20 20 | to modi|fy the |
|00002f30| 62 65 68 61 76 69 6f 75 | 72 0a 6f 66 20 74 68 65 |behaviou|r.of the|
|00002f40| 20 64 69 73 61 73 73 65 | 6d 62 6c 65 72 2e 0a 0a | disasse|mbler...|
|00002f50| 20 20 2d 6f 20 66 69 6c | 65 20 20 20 20 20 20 43 | -o fil|e C|
|00002f60| 61 75 73 65 73 20 6f 75 | 74 70 75 74 20 74 6f 20 |auses ou|tput to |
|00002f70| 62 65 20 20 73 65 6e 74 | 20 20 74 6f 20 20 74 68 |be sent| to th|
|00002f80| 65 20 20 73 70 65 63 69 | 66 69 65 64 0a 20 20 20 |e speci|fied. |
|00002f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 69 6c 65 | | file|
|00002fa0| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 74 68 65 20 | instead| of the |
|00002fb0| 73 74 61 6e 64 61 72 64 | 20 6f 75 74 70 75 74 2e |standard| output.|
|00002fc0| 0a 0a 0a 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00002fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ff0| 20 20 20 20 20 20 20 20 | 20 20 20 50 61 67 65 20 | | Page |
|00003000| 32 0a 0a 0a 0a 0a 0a 0a | 0a 20 20 20 20 20 20 20 |2.......|. |
|00003010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003020| 41 20 44 69 73 61 73 73 | 65 6d 62 6c 65 72 0a 0a |A Disass|embler..|
|00003030| 0a 0a 20 20 2d 74 20 70 | 72 65 66 69 78 20 20 20 |.. -t p|refix |
|00003040| 20 43 61 75 73 65 73 20 | 74 65 6d 70 6f 72 61 72 | Causes |temporar|
|00003050| 79 20 66 69 6c 65 73 20 | 74 6f 20 62 65 20 63 72 |y files |to be cr|
|00003060| 65 61 74 65 64 20 77 69 | 74 68 20 74 68 65 0a 20 |eated wi|th the. |
|00003070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 67 69 | | gi|
|00003080| 76 65 6e 20 20 70 72 65 | 66 69 78 2e 20 20 54 68 |ven pre|fix. Th|
|00003090| 65 20 20 64 65 66 61 75 | 6c 74 20 70 72 65 66 69 |e defau|lt prefi|
|000030a0| 78 20 69 73 20 73 70 6c | 69 74 2c 0a 20 20 20 20 |x is spl|it,. |
|000030b0| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 75 73 20 | | thus |
|000030c0| 20 63 61 75 73 69 6e 67 | 20 20 74 77 6f 20 20 74 | causing| two t|
|000030d0| 65 6d 70 6f 72 61 72 79 | 20 20 66 69 6c 65 73 20 |emporary| files |
|000030e0| 20 74 6f 20 20 20 62 65 | 0a 20 20 20 20 20 20 20 | to be|. |
|000030f0| 20 20 20 20 20 20 20 20 | 63 72 65 61 74 65 64 20 | |created |
|00003100| 20 77 69 74 68 20 20 74 | 68 69 73 20 20 70 72 65 | with t|his pre|
|00003110| 66 69 78 20 20 69 6e 20 | 20 74 68 65 20 20 63 75 |fix in | the cu|
|00003120| 72 72 65 6e 74 0a 20 20 | 20 20 20 20 20 20 20 20 |rrent. | |
|00003130| 20 20 20 20 20 64 69 72 | 65 63 74 6f 72 79 2e 20 | dir|ectory. |
|00003140| 49 66 20 69 74 20 69 73 | 20 64 65 73 69 72 65 64 |If it is| desired|
|00003150| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 20 |, for ex|ample, |
|00003160| 74 6f 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |to. | |
|00003170| 20 20 63 72 65 61 74 65 | 20 20 20 74 68 65 20 20 | create| the |
|00003180| 66 69 6c 65 73 20 20 61 | 73 20 20 2f 74 6d 70 2f |files a|s /tmp/|
|00003190| 78 78 2a 2c 20 20 74 68 | 65 6e 20 20 74 68 65 0a |xx*, th|en the.|
|000031a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 61 | | a|
|000031b0| 72 67 75 6d 65 6e 74 20 | 2d 74 20 2f 74 6d 70 2f |rgument |-t /tmp/|
|000031c0| 78 78 20 20 73 68 6f 75 | 6c 64 20 20 62 65 20 20 |xx shou|ld be |
|000031d0| 67 69 76 65 6e 2e 20 20 | 4e 6f 74 65 0a 20 20 20 |given. |Note. |
|000031e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 68 61 74 | | that|
|000031f0| 20 74 68 65 20 74 65 6d | 70 6f 72 61 72 79 20 66 | the tem|porary f|
|00003200| 69 6c 65 73 20 6d 61 79 | 20 62 65 20 76 65 72 79 |iles may| be very|
|00003210| 20 6c 61 72 67 65 20 61 | 73 0a 20 20 20 20 20 20 | large a|s. |
|00003220| 20 20 20 20 20 20 20 20 | 20 61 20 63 6f 6d 70 6c | | a compl|
|00003230| 65 74 65 20 6d 61 70 20 | 6f 66 20 74 68 65 20 74 |ete map |of the t|
|00003240| 65 78 74 20 61 6e 64 20 | 64 61 74 61 20 20 73 65 |ext and |data se|
|00003250| 67 6d 65 6e 74 73 0a 20 | 20 20 20 20 20 20 20 20 |gments. | |
|00003260| 20 20 20 20 20 20 69 73 | 20 67 65 6e 65 72 61 74 | is| generat|
|00003270| 65 64 2e 0a 0a 20 20 2d | 61 20 20 20 20 20 20 20 |ed... -|a |
|00003280| 20 20 20 20 53 75 70 70 | 72 65 73 73 65 73 20 20 | Supp|resses |
|00003290| 74 68 65 20 20 67 65 6e | 65 72 61 74 69 6f 6e 20 |the gen|eration |
|000032a0| 20 20 6f 66 20 20 20 6e | 6f 6e 2d 67 6c 6f 62 61 | of n|on-globa|
|000032b0| 6c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |l. | |
|000032c0| 20 61 62 73 6f 6c 75 74 | 65 20 20 73 79 6d 62 6f | absolut|e symbo|
|000032d0| 6c 73 20 66 72 6f 6d 20 | 74 68 65 20 6f 75 74 70 |ls from |the outp|
|000032e0| 75 74 2e 20 54 68 69 73 | 20 73 61 76 65 73 0a 20 |ut. This| saves. |
|000032f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 75 | | ou|
|00003300| 74 70 75 74 20 20 66 72 | 6f 6d 20 20 43 20 20 63 |tput fr|om C c|
|00003310| 6f 6d 70 69 6c 61 74 69 | 6f 6e 73 20 20 20 77 69 |ompilati|ons wi|
|00003320| 74 68 6f 75 74 20 20 20 | 61 6e 79 0a 20 20 20 20 |thout |any. |
|00003330| 20 20 20 20 20 20 20 20 | 20 20 20 6f 62 76 69 6f | | obvio|
|00003340| 75 73 20 20 70 72 6f 62 | 6c 65 6d 73 2c 20 20 62 |us prob|lems, b|
|00003350| 75 74 20 20 74 68 65 20 | 20 73 79 6d 62 6f 6c 73 |ut the | symbols|
|00003360| 20 20 61 72 65 20 62 79 | 0a 20 20 20 20 20 20 20 | are by|. |
|00003370| 20 20 20 20 20 20 20 20 | 64 65 66 61 75 6c 74 20 | |default |
|00003380| 69 6e 63 6c 75 64 65 64 | 20 69 6e 20 74 68 65 20 |included| in the |
|00003390| 6e 61 6d 65 20 6f 66 20 | 70 72 6f 64 75 63 69 6e |name of |producin|
|000033a0| 67 20 20 61 73 0a 20 20 | 20 20 20 20 20 20 20 20 |g as. | |
|000033b0| 20 20 20 20 20 6e 65 61 | 72 6c 79 20 20 69 64 65 | nea|rly ide|
|000033c0| 6e 74 69 63 61 6c 20 20 | 6f 75 74 70 75 74 20 20 |ntical |output |
|000033d0| 61 73 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 74 |as possi|ble to t|
|000033e0| 68 65 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |he. | |
|000033f0| 20 20 6f 72 69 67 69 6e | 61 6c 20 73 6f 75 72 63 | origin|al sourc|
|00003400| 65 2e 0a 0a 20 20 2d 73 | 20 20 20 20 20 20 20 20 |e... -s| |
|00003410| 20 20 20 43 61 75 73 65 | 73 20 61 6e 20 61 64 64 | Cause|s an add|
|00003420| 69 74 69 6f 6e 61 6c 20 | 73 63 61 6e 20 74 6f 20 |itional |scan to |
|00003430| 74 61 6b 65 20 70 6c 61 | 63 65 20 77 68 65 72 65 |take pla|ce where|
|00003440| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003450| 61 6c 6c 20 20 70 6f 73 | 73 69 62 6c 65 20 20 6c |all pos|sible l|
|00003460| 61 62 65 6c 73 20 20 61 | 72 65 20 20 72 65 70 6c |abels a|re repl|
|00003470| 61 63 65 64 20 62 79 20 | 6c 6f 63 61 6c 0a 20 20 |aced by |local. |
|00003480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 73 79 6d | | sym|
|00003490| 62 6f 6c 73 2e 20 54 68 | 65 20 6c 6f 63 61 6c 20 |bols. Th|e local |
|000034a0| 73 79 6d 62 6f 6c 73 20 | 20 61 72 65 20 20 69 6e |symbols | are in|
|000034b0| 73 65 72 74 65 64 20 20 | 69 6e 0a 20 20 20 20 20 |serted |in. |
|000034c0| 20 20 20 20 20 20 20 20 | 20 20 73 74 72 69 63 74 | | strict|
|000034d0| 6c 79 20 61 73 63 65 6e | 64 69 6e 67 20 6f 72 64 |ly ascen|ding ord|
|000034e0| 65 72 2c 20 73 74 61 72 | 74 69 6e 67 20 61 74 20 |er, star|ting at |
|000034f0| 31 2e 0a 0a 20 20 2d 76 | 20 20 20 20 20 20 20 20 |1... -v| |
|00003500| 20 20 20 43 61 75 73 65 | 73 20 61 20 62 6c 6f 77 | Cause|s a blow|
|00003510| 2d 62 79 2d 62 6c 6f 77 | 20 61 63 63 6f 75 6e 74 |-by-blow| account|
|00003520| 20 20 6f 66 20 20 61 63 | 74 69 76 69 74 69 65 73 | of ac|tivities|
|00003530| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003540| 74 6f 20 62 65 20 6f 75 | 74 70 75 74 20 6f 6e 20 |to be ou|tput on |
|00003550| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 65 72 72 |the stan|dard err|
|00003560| 6f 72 2e 0a 0a 0a 20 20 | 20 20 20 20 20 20 20 20 |or.... | |
|00003570| 20 20 20 20 20 20 20 20 | 20 20 34 2e 20 20 44 69 | | 4. Di|
|00003580| 61 67 6e 6f 73 74 69 63 | 73 20 65 74 63 0a 0a 54 |agnostic|s etc..T|
|00003590| 72 75 6e 63 61 74 65 64 | 20 6f 72 20 67 61 72 62 |runcated| or garb|
|000035a0| 6c 65 64 20 6f 62 6a 65 | 63 74 20 61 6e 64 20 6c |led obje|ct and l|
|000035b0| 69 62 72 61 72 79 20 66 | 69 6c 65 73 20 75 73 75 |ibrary f|iles usu|
|000035c0| 61 6c 6c 79 20 20 63 61 | 75 73 65 0a 70 72 6f 63 |ally ca|use.proc|
|000035d0| 65 73 73 69 6e 67 20 74 | 6f 20 73 74 6f 70 20 77 |essing t|o stop w|
|000035e0| 69 74 68 20 61 6e 20 65 | 78 70 6c 61 6e 61 74 6f |ith an e|xplanato|
|000035f0| 72 79 20 6d 65 73 73 61 | 67 65 2e 0a 0a 54 68 65 |ry messa|ge...The|
|00003600| 20 6f 6e 6c 79 20 6f 74 | 68 65 72 20 6b 69 6e 64 | only ot|her kind|
|00003610| 73 20 6f 66 20 6d 65 73 | 73 61 67 65 20 61 72 65 |s of mes|sage are|
|00003620| 20 20 73 6f 6d 65 20 20 | 70 61 73 73 69 6e 67 20 | some |passing |
|00003630| 20 77 61 72 6e 69 6e 67 | 73 0a 63 6f 6e 63 65 72 | warning|s.concer|
|00003640| 6e 69 6e 67 20 20 6f 62 | 73 63 75 72 65 20 20 63 |ning ob|scure c|
|00003650| 6f 6e 73 74 72 75 63 74 | 73 20 20 6e 6f 74 20 20 |onstruct|s not |
|00003660| 68 61 6e 64 6c 65 64 2c | 20 20 73 75 63 68 20 20 |handled,| such |
|00003670| 61 73 20 74 68 65 0a 72 | 65 6c 6f 63 61 74 69 6f |as the.r|elocatio|
|00003680| 6e 20 6f 66 20 62 79 74 | 65 20 66 69 65 6c 64 73 |n of byt|e fields|
|00003690| 2c 20 6f 72 20 74 68 65 | 20 72 65 6c 6f 63 61 74 |, or the| relocat|
|000036a0| 69 6f 6e 20 6f 66 20 20 | 6f 76 65 72 6c 61 70 70 |ion of |overlapp|
|000036b0| 69 6e 67 0a 66 69 65 6c | 64 73 2e 20 4f 63 63 61 |ing.fiel|ds. Occa|
|000036c0| 73 69 6f 6e 61 6c 6c 79 | 20 61 20 6d 65 73 73 61 |sionally| a messa|
|000036d0| 67 65 0a 0a 20 20 20 20 | 20 4c 69 62 72 61 72 79 |ge.. | Library|
|000036e0| 20 63 6c 61 73 68 3a 20 | 6d 65 73 73 61 67 65 0a | clash: |message.|
|000036f0| 0a 6d 61 79 20 61 70 70 | 65 61 72 20 61 6e 64 20 |.may app|ear and |
|00003700| 70 72 6f 63 65 73 73 69 | 6e 67 20 63 65 61 73 65 |processi|ng cease|
|00003710| 2e 20 54 68 69 73 20 6d | 65 73 73 61 67 65 20 69 |. This m|essage i|
|00003720| 73 20 66 6f 75 6e 64 20 | 77 68 65 72 65 0a 61 74 |s found |where.at|
|00003730| 20 20 61 20 20 6c 61 74 | 65 20 20 73 74 61 67 65 | a lat|e stage|
|00003740| 20 20 69 6e 20 20 70 72 | 6f 63 65 73 73 69 6e 67 | in pr|ocessing|
|00003750| 20 20 6c 69 62 72 61 72 | 69 65 73 2c 20 20 74 68 | librar|ies, th|
|00003760| 65 20 20 70 72 6f 67 72 | 61 6d 0a 64 69 73 63 6f |e progr|am.disco|
|00003770| 76 65 72 73 20 74 68 61 | 74 20 64 75 65 20 74 6f |vers tha|t due to|
|00003780| 20 74 68 65 20 65 78 74 | 72 65 6d 65 20 73 69 6d | the ext|reme sim|
|00003790| 69 6c 61 72 69 74 79 20 | 6f 66 20 74 77 6f 20 6f |ilarity |of two o|
|000037a0| 72 20 20 6d 6f 72 65 0a | 6c 69 62 72 61 72 79 20 |r more.|library |
|000037b0| 20 6d 65 6d 62 65 72 73 | 2c 20 20 69 74 20 68 61 | members|, it ha|
|000037c0| 73 20 63 6f 6d 65 20 74 | 6f 20 74 68 65 20 77 72 |s come t|o the wr|
|000037d0| 6f 6e 67 20 63 6f 6e 63 | 6c 75 73 69 6f 6e 20 61 |ong conc|lusion a|
|000037e0| 62 6f 75 74 0a 77 68 69 | 63 68 20 6f 6e 65 20 74 |bout.whi|ch one t|
|000037f0| 6f 20 75 73 65 2e 20 54 | 68 65 20 72 65 6d 65 64 |o use. T|he remed|
|00003800| 79 20 68 65 72 65 20 69 | 73 20 74 6f 20 20 73 70 |y here i|s to sp|
|00003810| 65 6c 6c 20 20 6f 75 74 | 20 20 74 6f 20 20 74 68 |ell out| to th|
|00003820| 65 0a 70 72 6f 67 72 61 | 6d 20 77 68 69 63 68 20 |e.progra|m which |
|00003830| 6d 65 6d 62 65 72 73 20 | 74 6f 20 74 61 6b 65 20 |members |to take |
|00003840| 69 6e 20 77 68 69 63 68 | 20 6f 72 64 65 72 2e 0a |in which| order..|
|00003850| 0a 0a 0a 0a 0a 0a 0a 0a | 20 20 20 20 20 20 20 20 |........| |
|00003860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 61 | | Pa|
|00003890| 67 65 20 33 0a 0a 0a 0a | 0a 0a 0a 0a 20 20 20 20 |ge 3....|.... |
|000038a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000038b0| 20 20 20 41 20 44 69 73 | 61 73 73 65 6d 62 6c 65 | A Dis|assemble|
|000038c0| 72 0a 0a 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |r.... | |
|000038d0| 20 20 20 20 20 20 20 20 | 35 2e 20 20 46 75 74 75 | |5. Futu|
|000038e0| 72 65 20 64 65 76 65 6c | 6f 70 6d 65 6e 74 0a 0a |re devel|opment..|
|000038f0| 49 6e 20 74 68 65 20 66 | 75 74 75 72 65 20 69 74 |In the f|uture it|
|00003900| 20 69 73 20 68 6f 70 65 | 64 20 20 74 6f 20 20 64 | is hope|d to d|
|00003910| 65 76 69 73 65 20 20 77 | 61 79 73 20 20 6f 66 20 |evise w|ays of |
|00003920| 20 6d 61 6b 69 6e 67 20 | 20 74 68 65 0a 64 69 73 | making | the.dis|
|00003930| 61 73 73 65 6d 62 6c 65 | 72 20 20 69 6e 64 65 70 |assemble|r indep|
|00003940| 65 6e 64 65 6e 74 20 6f | 66 20 61 6c 6c 20 74 68 |endent o|f all th|
|00003950| 65 20 61 62 6f 76 65 2d | 6d 65 6e 74 69 6f 6e 65 |e above-|mentione|
|00003960| 64 20 76 65 72 73 69 6f | 6e 0a 64 65 70 65 6e 64 |d versio|n.depend|
|00003970| 65 6e 63 69 65 73 2c 20 | 20 62 79 20 20 66 69 72 |encies, | by fir|
|00003980| 73 74 20 20 72 65 61 64 | 69 6e 67 20 20 61 20 20 |st read|ing a |
|00003990| 66 69 6c 65 73 20 20 64 | 65 66 69 6e 69 6e 67 20 |files d|efining |
|000039a0| 20 74 68 65 73 65 0a 74 | 68 69 6e 67 73 2e 20 20 | these.t|hings. |
|000039b0| 54 68 69 73 20 20 77 69 | 6c 6c 20 20 70 72 6f 62 |This wi|ll prob|
|000039c0| 61 62 6c 79 20 20 62 65 | 20 20 61 70 70 6c 69 65 |ably be| applie|
|000039d0| 64 20 20 61 66 74 65 72 | 20 74 68 65 20 43 6f 6d |d after| the Com|
|000039e0| 6d 6f 6e 0a 4f 62 6a 65 | 63 74 20 46 6f 72 6d 61 |mon.Obje|ct Forma|
|000039f0| 74 20 62 65 63 6f 6d 65 | 73 20 6d 6f 72 65 20 73 |t become|s more s|
|00003a00| 74 61 6e 64 61 72 64 2e | 0a 0a 49 6e 20 74 68 65 |tandard.|..In the|
|00003a10| 20 6c 6f 6e 67 20 74 65 | 72 6d 20 69 74 20 77 6f | long te|rm it wo|
|00003a20| 75 6c 64 20 62 65 20 64 | 65 73 69 72 61 62 6c 65 |uld be d|esirable|
|00003a30| 20 61 6e 64 20 75 73 65 | 66 75 6c 20 74 6f 20 65 | and use|ful to e|
|00003a40| 6e 68 61 6e 63 65 0a 74 | 68 65 20 20 20 70 72 6f |nhance.t|he pro|
|00003a50| 64 75 63 74 20 20 20 74 | 6f 20 20 70 72 6f 64 75 |duct t|o produ|
|00003a60| 63 65 20 20 63 6f 6d 70 | 69 6c 61 62 6c 65 20 20 |ce comp|ilable |
|00003a70| 43 20 20 69 6e 20 20 61 | 64 64 69 74 69 6f 6e 20 |C in a|ddition |
|00003a80| 20 74 6f 0a 61 73 73 65 | 6d 62 6c 61 62 6c 65 20 | to.asse|mblable |
|00003a90| 61 73 73 65 6d 62 6c 65 | 72 2e 20 53 74 61 67 65 |assemble|r. Stage|
|00003aa0| 73 20 69 6e 20 74 68 65 | 20 20 70 72 6f 63 65 73 |s in the| proces|
|00003ab0| 73 20 20 61 72 65 20 20 | 73 65 65 6e 20 20 61 73 |s are |seen as|
|00003ac0| 0a 66 6f 6c 6c 6f 77 73 | 3a 0a 0a 20 20 31 2e 20 |.follows|:.. 1. |
|00003ad0| 20 42 65 74 74 65 72 20 | 69 64 65 6e 74 69 66 69 | Better |identifi|
|00003ae0| 63 61 74 69 6f 6e 20 6f | 66 20 62 61 73 69 63 20 |cation o|f basic |
|00003af0| 20 62 6c 6f 63 6b 73 20 | 20 69 6e 20 20 74 68 65 | blocks | in the|
|00003b00| 20 20 63 6f 64 65 2e 0a | 20 20 20 20 20 20 53 77 | code..| Sw|
|00003b10| 69 74 63 68 20 20 73 74 | 61 74 65 6d 65 6e 74 73 |itch st|atements|
|00003b20| 20 20 61 72 65 20 20 61 | 20 20 6d 61 6a 6f 72 20 | are a| major |
|00003b30| 70 72 6f 62 6c 65 6d 20 | 68 65 72 65 2c 20 61 73 |problem |here, as|
|00003b40| 20 61 72 65 0a 20 20 20 | 20 20 20 63 6f 6e 73 74 | are. | const|
|00003b50| 61 6e 74 20 64 61 74 61 | 20 68 65 6c 64 20 69 6e |ant data| held in|
|00003b60| 20 74 68 65 20 74 65 78 | 74 20 73 65 67 6d 65 6e | the tex|t segmen|
|00003b70| 74 2e 0a 0a 20 20 32 2e | 20 20 4d 61 72 72 79 69 |t... 2.| Marryi|
|00003b80| 6e 67 20 6f 66 20 64 61 | 74 61 20 74 6f 20 74 68 |ng of da|ta to th|
|00003b90| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e corres|ponding |
|00003ba0| 74 65 78 74 2e 20 49 74 | 20 20 69 73 20 20 69 6e |text. It| is in|
|00003bb0| 0a 20 20 20 20 20 20 76 | 61 72 69 6f 75 73 20 20 |. v|arious |
|00003bc0| 70 6c 61 63 65 73 20 20 | 68 61 72 64 20 74 6f 20 |places |hard to |
|00003bd0| 64 69 76 6f 72 63 65 20 | 73 74 61 74 69 63 20 72 |divorce |static r|
|00003be0| 65 66 65 72 65 6e 63 65 | 73 20 22 6f 6e 0a 20 20 |eference|s "on. |
|00003bf0| 20 20 20 20 74 68 65 20 | 66 6c 79 22 20 28 65 2e | the |fly" (e.|
|00003c00| 67 2e 20 20 73 74 72 69 | 6e 67 73 2c 20 20 61 6e |g. stri|ngs, an|
|00003c10| 64 20 20 73 77 69 74 63 | 68 20 20 6c 69 73 74 73 |d switc|h lists|
|00003c20| 20 20 69 6e 20 20 73 6f | 6d 65 0a 20 20 20 20 20 | in so|me. |
|00003c30| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 73 | impleme|ntations|
|00003c40| 29 20 20 66 72 6f 6d 20 | 73 74 61 74 69 63 20 61 |) from |static a|
|00003c50| 74 20 74 68 65 20 68 65 | 61 64 20 6f 66 20 61 20 |t the he|ad of a |
|00003c60| 6d 6f 64 75 6c 65 2e 0a | 20 20 20 20 20 20 54 68 |module..| Th|
|00003c70| 69 73 20 69 73 20 70 61 | 72 74 20 20 6f 66 20 20 |is is pa|rt of |
|00003c80| 74 68 65 20 20 70 72 6f | 62 6c 65 6d 20 20 6f 66 |the pro|blem of|
|00003c90| 20 20 69 64 65 6e 74 69 | 66 79 69 6e 67 20 20 62 | identi|fying b|
|00003ca0| 61 73 69 63 0a 20 20 20 | 20 20 20 62 6c 6f 63 6b |asic. | block|
|00003cb0| 73 2e 0a 0a 20 20 33 2e | 20 20 43 6f 6d 70 69 6c |s... 3.| Compil|
|00003cc0| 61 74 69 6f 6e 20 6f 66 | 20 68 65 61 64 65 72 20 |ation of| header |
|00003cd0| 20 66 69 6c 65 73 20 20 | 74 6f 20 20 77 6f 72 6b | files |to work|
|00003ce0| 20 20 6f 75 74 20 20 73 | 74 72 75 63 74 75 72 65 | out s|tructure|
|00003cf0| 0a 20 20 20 20 20 20 72 | 65 66 65 72 65 6e 63 65 |. r|eference|
|00003d00| 73 20 20 20 77 69 74 68 | 69 6e 20 20 74 68 65 20 |s with|in the |
|00003d10| 20 74 65 78 74 2e 20 20 | 41 74 20 20 74 68 69 73 | text. |At this|
|00003d20| 20 20 73 74 61 67 65 20 | 20 73 6f 6d 65 0a 20 20 | stage | some. |
|00003d30| 20 20 20 20 69 6e 74 65 | 72 61 63 74 69 6f 6e 20 | inte|raction |
|00003d40| 6d 61 79 20 62 65 20 6e | 65 65 64 65 64 2e 0a 0a |may be n|eeded...|
|00003d50| 4d 65 61 6e 77 68 69 6c | 65 20 74 68 65 20 70 72 |Meanwhil|e the pr|
|00003d60| 6f 64 75 63 74 20 69 73 | 20 6f 6e 65 20 77 68 69 |oduct is| one whi|
|00003d70| 63 68 20 69 73 20 61 20 | 75 73 65 66 75 6c 20 74 |ch is a |useful t|
|00003d80| 6f 6f 6c 20 20 74 6f 20 | 20 74 68 65 0a 61 75 74 |ool to | the.aut|
|00003d90| 68 6f 72 20 20 69 6e 20 | 20 69 74 73 20 70 72 65 |hor in | its pre|
|00003da0| 73 65 6e 74 20 66 6f 72 | 6d 2e 20 43 6f 6d 6d 65 |sent for|m. Comme|
|00003db0| 6e 74 73 20 61 6e 64 20 | 73 75 67 67 65 73 74 69 |nts and |suggesti|
|00003dc0| 6f 6e 73 20 61 73 20 74 | 6f 0a 74 68 65 20 6d 6f |ons as t|o.the mo|
|00003dd0| 73 74 20 70 72 61 63 74 | 69 63 61 6c 20 6d 65 74 |st pract|ical met|
|00003de0| 68 6f 64 20 6f 66 20 69 | 6d 70 72 6f 76 69 6e 67 |hod of i|mproving|
|00003df0| 20 74 68 65 20 20 70 72 | 6f 64 75 63 74 20 20 69 | the pr|oduct i|
|00003e00| 6e 20 20 74 68 65 0a 77 | 61 79 73 20 20 20 73 75 |n the.w|ays su|
|00003e10| 67 67 65 73 74 65 64 20 | 20 6f 72 20 20 69 6e 20 |ggested | or in |
|00003e20| 20 6f 74 68 65 72 20 20 | 77 61 79 73 20 20 77 6f | other |ways wo|
|00003e30| 75 6c 64 20 20 62 65 20 | 20 67 72 61 74 65 66 75 |uld be | gratefu|
|00003e40| 6c 6c 79 0a 63 6f 6e 73 | 69 64 65 72 65 64 2e 0a |lly.cons|idered..|
|00003e50| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|00003e60| 0a 0a 0a 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00003e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e90| 20 20 20 20 20 20 20 20 | 20 20 20 50 61 67 65 20 | | Page |
|00003ea0| 34 0a 0a 0a 0a 0a 53 48 | 41 52 5f 45 4f 46 0a 69 |4.....SH|AR_EOF.i|
|00003eb0| 66 20 74 65 73 74 20 37 | 34 31 35 20 2d 6e 65 20 |f test 7|415 -ne |
|00003ec0| 22 60 77 63 20 2d 63 20 | 3c 20 27 64 6f 63 2e 6f |"`wc -c |< 'doc.o|
|00003ed0| 75 74 27 60 22 0a 74 68 | 65 6e 0a 09 65 63 68 6f |ut'`".th|en..echo|
|00003ee0| 20 73 68 61 72 3a 20 65 | 72 72 6f 72 20 74 72 61 | shar: e|rror tra|
|00003ef0| 6e 73 6d 69 74 74 69 6e | 67 20 22 27 64 6f 63 2e |nsmittin|g "'doc.|
|00003f00| 6f 75 74 27 22 20 27 28 | 73 68 6f 75 6c 64 20 68 |out'" '(|should h|
|00003f10| 61 76 65 20 62 65 65 6e | 20 37 34 31 35 20 63 68 |ave been| 7415 ch|
|00003f20| 61 72 61 63 74 65 72 73 | 29 27 0a 66 69 0a 66 69 |aracters|)'.fi.fi|
|00003f30| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 65 78 74 72 |.echo sh|ar: extr|
|00003f40| 61 63 74 69 6e 67 20 22 | 27 6d 61 6b 65 66 69 6c |acting "|'makefil|
|00003f50| 65 27 22 20 27 28 31 32 | 38 20 63 68 61 72 61 63 |e'" '(12|8 charac|
|00003f60| 74 65 72 73 29 27 0a 69 | 66 20 74 65 73 74 20 2d |ters)'.i|f test -|
|00003f70| 66 20 27 6d 61 6b 65 66 | 69 6c 65 27 0a 74 68 65 |f 'makef|ile'.the|
|00003f80| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n..echo |shar: wi|
|00003f90| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00003fa0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00003fb0| 22 27 6d 61 6b 65 66 69 | 6c 65 27 22 0a 65 6c 73 |"'makefi|le'".els|
|00003fc0| 65 0a 63 61 74 20 3c 3c | 20 5c 53 48 41 52 5f 45 |e.cat <<| \SHAR_E|
|00003fd0| 4f 46 20 3e 20 27 6d 61 | 6b 65 66 69 6c 65 27 0a |OF > 'ma|kefile'.|
|00003fe0| 43 46 4c 41 47 53 3d 2d | 76 20 2d 4f 42 0a 4f 42 |CFLAGS=-|v -OB.OB|
|00003ff0| 4a 53 3d 61 6c 6c 6f 63 | 2e 6f 20 66 69 6c 65 2e |JS=alloc|.o file.|
|00004000| 6f 20 6c 69 62 6d 74 63 | 68 2e 6f 20 72 6f 62 6a |o libmtc|h.o robj|
|00004010| 2e 6f 20 69 73 65 74 2e | 6f 20 70 72 69 6e 2e 6f |.o iset.|o prin.o|
|00004020| 20 68 65 75 72 2e 6f 20 | 6d 61 69 6e 2e 6f 0a 0a | heur.o |main.o..|
|00004030| 75 6e 63 3a 09 24 28 4f | 42 4a 53 29 0a 09 63 63 |unc:.$(O|BJS)..cc|
|00004040| 20 2d 6f 20 75 6e 63 20 | 24 28 4f 42 4a 53 29 0a | -o unc |$(OBJS).|
|00004050| 0a 24 28 4f 42 4a 53 29 | 3a 09 75 6e 63 2e 68 0a |.$(OBJS)|:.unc.h.|
|00004060| 53 48 41 52 5f 45 4f 46 | 0a 69 66 20 74 65 73 74 |SHAR_EOF|.if test|
|00004070| 20 31 32 38 20 2d 6e 65 | 20 22 60 77 63 20 2d 63 | 128 -ne| "`wc -c|
|00004080| 20 3c 20 27 6d 61 6b 65 | 66 69 6c 65 27 60 22 0a | < 'make|file'`".|
|00004090| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|000040a0| 20 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 | error t|ransmitt|
|000040b0| 69 6e 67 20 22 27 6d 61 | 6b 65 66 69 6c 65 27 22 |ing "'ma|kefile'"|
|000040c0| 20 27 28 73 68 6f 75 6c | 64 20 68 61 76 65 20 62 | '(shoul|d have b|
|000040d0| 65 65 6e 20 31 32 38 20 | 63 68 61 72 61 63 74 65 |een 128 |characte|
|000040e0| 72 73 29 27 0a 66 69 0a | 66 69 0a 65 63 68 6f 20 |rs)'.fi.|fi.echo |
|000040f0| 73 68 61 72 3a 20 65 78 | 74 72 61 63 74 69 6e 67 |shar: ex|tracting|
|00004100| 20 22 27 75 6e 63 2e 68 | 27 22 20 27 28 34 35 32 | "'unc.h|'" '(452|
|00004110| 36 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |6 charac|ters)'.i|
|00004120| 66 20 74 65 73 74 20 2d | 66 20 27 75 6e 63 2e 68 |f test -|f 'unc.h|
|00004130| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00004140| 72 3a 20 77 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |r: will |not over|
|00004150| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|00004160| 66 69 6c 65 20 22 27 75 | 6e 63 2e 68 27 22 0a 65 |file "'u|nc.h'".e|
|00004170| 6c 73 65 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |lse.cat |<< \SHAR|
|00004180| 5f 45 4f 46 20 3e 20 27 | 75 6e 63 2e 68 27 0a 2f |_EOF > '|unc.h'./|
|00004190| 2a 0a 20 2a 09 53 43 43 | 53 3a 09 40 28 23 29 75 |*. *.SCC|S:.@(#)u|
|000041a0| 6e 63 2e 68 09 31 2e 32 | 09 31 31 2f 32 2f 38 34 |nc.h.1.2|.11/2/84|
|000041b0| 09 31 34 3a 32 31 3a 30 | 32 0a 20 2a 09 48 65 61 |.14:21:0|2. *.Hea|
|000041c0| 64 65 72 20 66 69 6c 65 | 20 66 6f 72 20 75 6e 63 |der file| for unc|
|000041d0| 6f 6d 70 69 6c 65 20 70 | 72 6f 67 72 61 6d 2e 0a |ompile p|rogram..|
|000041e0| 20 2a 0a 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *. ****|********|
|000041f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004200| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004210| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004220| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0a 20 2a 09 54 |********|***. *.T|
|00004230| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 69 73 20 |his soft|ware is |
|00004240| 63 6f 70 79 72 69 67 68 | 74 20 6f 66 0a 20 2a 0a |copyrigh|t of. *.|
|00004250| 20 2a 09 09 4a 6f 68 6e | 20 4d 20 43 6f 6c 6c 69 | *..John| M Colli|
|00004260| 6e 73 0a 20 2a 09 09 34 | 37 20 43 65 64 61 72 77 |ns. *..4|7 Cedarw|
|00004270| 6f 6f 64 20 44 72 69 76 | 65 0a 20 2a 09 09 53 74 |ood Driv|e. *..St|
|00004280| 20 41 6c 62 61 6e 73 0a | 20 2a 09 09 48 65 72 74 | Albans.| *..Hert|
|00004290| 73 2c 20 41 4c 34 20 30 | 44 4e 0a 20 2a 09 09 45 |s, AL4 0|DN. *..E|
|000042a0| 6e 67 6c 61 6e 64 09 09 | 09 2b 34 34 20 37 32 37 |ngland..|.+44 727|
|000042b0| 20 35 37 32 36 37 0a 20 | 2a 0a 20 2a 09 61 6e 64 | 57267. |*. *.and|
|000042c0| 20 69 73 20 72 65 6c 65 | 61 73 65 64 20 69 6e 74 | is rele|ased int|
|000042d0| 6f 20 74 68 65 20 70 75 | 62 6c 69 63 20 64 6f 6d |o the pu|blic dom|
|000042e0| 61 69 6e 20 6f 6e 20 74 | 68 65 20 66 6f 6c 6c 6f |ain on t|he follo|
|000042f0| 77 69 6e 67 20 63 6f 6e | 64 69 74 69 6f 6e 73 3a |wing con|ditions:|
|00004300| 0a 20 2a 0a 20 2a 09 09 | 31 2e 20 20 4e 6f 20 66 |. *. *..|1. No f|
|00004310| 72 65 65 20 6d 61 69 6e | 74 65 6e 61 6e 63 65 20 |ree main|tenance |
|00004320| 77 69 6c 6c 20 62 65 20 | 67 75 61 72 61 6e 74 65 |will be |guarante|
|00004330| 65 64 2e 0a 20 2a 09 09 | 32 2e 20 20 4e 6f 74 68 |ed.. *..|2. Noth|
|00004340| 69 6e 67 20 6d 61 79 20 | 62 65 20 62 61 73 65 64 |ing may |be based|
|00004350| 20 6f 6e 20 74 68 69 73 | 20 73 6f 66 74 77 61 72 | on this| softwar|
|00004360| 65 20 77 69 74 68 6f 75 | 74 0a 20 2a 09 09 20 20 |e withou|t. *.. |
|00004370| 20 20 61 63 6b 6e 6f 77 | 6c 65 64 67 65 6d 65 6e | acknow|ledgemen|
|00004380| 74 2c 20 69 6e 63 6c 75 | 64 69 6e 67 20 69 6e 63 |t, inclu|ding inc|
|00004390| 6f 72 70 6f 72 61 74 69 | 6f 6e 20 6f 66 20 74 68 |orporati|on of th|
|000043a0| 69 73 0a 20 2a 09 09 20 | 20 20 20 6e 6f 74 69 63 |is. *.. | notic|
|000043b0| 65 2e 0a 20 2a 0a 20 2a | 09 4e 6f 74 77 69 74 68 |e.. *. *|.Notwith|
|000043c0| 73 74 61 6e 64 69 6e 67 | 20 74 68 65 20 61 62 6f |standing| the abo|
|000043d0| 76 65 2c 20 74 68 65 20 | 61 75 74 68 6f 72 20 77 |ve, the |author w|
|000043e0| 65 6c 63 6f 6d 65 73 20 | 63 6f 72 72 65 73 70 6f |elcomes |correspo|
|000043f0| 6e 64 65 6e 63 65 20 61 | 6e 64 20 62 75 67 0a 20 |ndence a|nd bug. |
|00004400| 2a 09 66 69 78 65 73 2e | 0a 20 2a 2a 2a 2a 2a 2a |*.fixes.|. ******|
|00004410| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004420| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004430| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004440| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004450| 2a 0a 20 2a 2f 0a 0a 23 | 64 65 66 69 6e 65 09 4d |*. */..#|define.M|
|00004460| 41 58 43 48 41 52 53 09 | 35 30 0a 23 64 65 66 69 |AXCHARS.|50.#defi|
|00004470| 6e 65 09 48 41 53 48 4d | 4f 44 09 09 39 37 0a 0a |ne.HASHM|OD..97..|
|00004480| 2f 2a 0a 20 2a 09 54 68 | 65 20 66 6f 6c 6c 6f 77 |/*. *.Th|e follow|
|00004490| 69 6e 67 20 73 74 72 75 | 63 74 75 72 65 20 69 73 |ing stru|cture is|
|000044a0| 20 75 73 65 64 20 74 6f | 20 6b 65 65 70 20 74 72 | used to| keep tr|
|000044b0| 61 63 6b 20 6f 66 20 73 | 79 6d 62 6f 6c 73 2e 0a |ack of s|ymbols..|
|000044c0| 20 2a 2f 0a 0a 73 74 72 | 75 63 74 09 73 79 6d 73 | */..str|uct.syms|
|000044d0| 74 72 09 7b 0a 09 73 74 | 72 75 63 74 09 73 79 6d |tr.{..st|ruct.sym|
|000044e0| 73 74 72 09 2a 73 5f 6e | 65 78 74 3b 09 09 2f 2a |str.*s_n|ext;../*|
|000044f0| 20 20 4e 65 78 74 20 69 | 6e 20 68 61 73 68 20 63 | Next i|n hash c|
|00004500| 68 61 69 6e 20 20 2a 2f | 0a 09 73 74 72 75 63 74 |hain */|..struct|
|00004510| 09 73 79 6d 73 74 72 09 | 2a 73 5f 6c 69 6e 6b 3b |.symstr.|*s_link;|
|00004520| 09 09 2f 2a 20 20 4e 65 | 78 74 20 69 6e 20 64 75 |../* Ne|xt in du|
|00004530| 70 6c 69 63 61 74 65 20 | 6c 61 62 65 6c 73 20 2a |plicate |labels *|
|00004540| 2f 0a 09 75 6e 73 69 67 | 6e 65 64 09 73 5f 74 79 |/..unsig|ned.s_ty|
|00004550| 70 65 09 3a 20 20 33 3b | 09 09 2f 2a 20 20 53 79 |pe.: 3;|../* Sy|
|00004560| 6d 62 6f 6c 20 74 79 70 | 65 20 20 2a 2f 0a 09 75 |mbol typ|e */..u|
|00004570| 6e 73 69 67 6e 65 64 09 | 73 5f 6e 65 77 73 79 6d |nsigned.|s_newsym|
|00004580| 3a 20 20 31 3b 09 09 2f | 2a 20 20 41 20 6e 65 77 |: 1;../|* A new|
|00004590| 20 73 79 6d 62 6f 6c 20 | 20 2a 2f 0a 09 75 6e 73 | symbol | */..uns|
|000045a0| 69 67 6e 65 64 09 73 5f | 69 6e 76 65 6e 74 3a 20 |igned.s_|invent: |
|000045b0| 20 31 3b 09 09 2f 2a 20 | 20 49 6e 76 65 6e 74 65 | 1;../* | Invente|
|000045c0| 64 20 73 79 6d 62 6f 6c | 20 20 2a 2f 0a 09 75 6e |d symbol| */..un|
|000045d0| 73 69 67 6e 65 64 09 73 | 5f 67 6c 6f 62 09 3a 20 |signed.s|_glob.: |
|000045e0| 20 31 3b 09 09 2f 2a 20 | 20 47 6c 6f 62 61 6c 20 | 1;../* | Global |
|000045f0| 73 79 6d 62 6f 6c 20 20 | 2a 2f 0a 09 6c 6f 6e 67 |symbol |*/..long|
|00004600| 09 09 73 5f 76 61 6c 75 | 65 3b 09 09 2f 2a 20 20 |..s_valu|e;../* |
|00004610| 56 61 6c 75 65 20 69 66 | 20 64 65 66 69 6e 65 64 |Value if| defined|
|00004620| 20 20 2a 2f 0a 09 73 68 | 6f 72 74 09 09 73 5f 64 | */..sh|ort..s_d|
|00004630| 65 66 73 3b 09 09 09 2f | 2a 20 20 44 65 66 69 6e |efs;.../|* Defin|
|00004640| 65 64 20 63 6f 75 6e 74 | 20 20 2a 2f 0a 09 73 68 |ed count| */..sh|
|00004650| 6f 72 74 09 09 73 5f 75 | 73 65 64 3b 09 09 09 2f |ort..s_u|sed;.../|
|00004660| 2a 20 20 55 73 65 64 20 | 63 6f 75 6e 74 20 20 2a |* Used |count *|
|00004670| 2f 0a 09 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |/..unsig|ned shor|
|00004680| 74 09 73 5f 6c 73 79 6d | 62 3b 09 09 2f 2a 20 20 |t.s_lsym|b;../* |
|00004690| 4c 6f 63 61 6c 20 73 79 | 6d 62 6f 6c 20 20 2a 2f |Local sy|mbol */|
|000046a0| 0a 09 63 68 61 72 09 09 | 73 5f 6e 61 6d 65 5b 31 |..char..|s_name[1|
|000046b0| 5d 3b 09 09 2f 2a 20 20 | 43 68 61 72 73 20 6f 66 |];../* |Chars of|
|000046c0| 20 6e 61 6d 65 20 6e 75 | 6c 6c 20 74 65 72 6d 20 | name nu|ll term |
|000046d0| 2a 2f 0a 7d 3b 0a 0a 74 | 79 70 65 64 65 66 09 73 |*/.};..t|ypedef.s|
|000046e0| 74 72 75 63 74 09 73 79 | 6d 73 74 72 09 2a 73 79 |truct.sy|mstr.*sy|
|000046f0| 6d 62 6f 6c 3b 0a 0a 73 | 79 6d 62 6f 6c 09 73 79 |mbol;..s|ymbol.sy|
|00004700| 6d 62 68 61 73 68 5b 48 | 41 53 48 4d 4f 44 5d 3b |mbhash[H|ASHMOD];|
|00004710| 0a 0a 74 79 70 65 64 65 | 66 09 73 74 72 75 63 74 |..typede|f.struct|
|00004720| 09 7b 0a 09 69 6e 74 09 | 65 66 5f 74 3b 09 09 09 |.{..int.|ef_t;...|
|00004730| 2f 2a 20 20 54 65 78 74 | 20 66 69 6c 65 20 66 64 |/* Text| file fd|
|00004740| 20 20 2a 2f 0a 09 69 6e | 74 09 65 66 5f 64 3b 09 | */..in|t.ef_d;.|
|00004750| 09 09 2f 2a 20 20 44 61 | 74 61 20 66 69 6c 65 20 |../* Da|ta file |
|00004760| 66 64 20 20 2a 2f 0a 09 | 6c 6f 6e 67 09 65 66 5f |fd */..|long.ef_|
|00004770| 65 6e 74 72 79 3b 09 09 | 2f 2a 20 20 45 6e 74 72 |entry;..|/* Entr|
|00004780| 79 20 70 6f 69 6e 74 20 | 20 2a 2f 0a 09 6c 6f 6e |y point | */..lon|
|00004790| 67 09 65 66 5f 74 73 69 | 7a 65 3b 09 09 2f 2a 20 |g.ef_tsi|ze;../* |
|000047a0| 20 54 65 78 74 20 73 69 | 7a 65 20 20 2a 2f 0a 09 | Text si|ze */..|
|000047b0| 6c 6f 6e 67 09 65 66 5f | 64 73 69 7a 65 3b 09 09 |long.ef_|dsize;..|
|000047c0| 2f 2a 20 20 44 61 74 61 | 20 73 69 7a 65 20 20 2a |/* Data| size *|
|000047d0| 2f 0a 09 6c 6f 6e 67 09 | 65 66 5f 62 73 69 7a 65 |/..long.|ef_bsize|
|000047e0| 3b 09 09 2f 2a 20 20 42 | 73 73 20 73 69 7a 65 20 |;../* B|ss size |
|000047f0| 20 2a 2f 0a 09 6c 6f 6e | 67 09 65 66 5f 65 6e 64 | */..lon|g.ef_end|
|00004800| 3b 09 09 09 2f 2a 20 20 | 45 6e 64 20 6f 66 20 69 |;.../* |End of i|
|00004810| 74 20 61 6c 6c 20 20 2a | 2f 0a 09 6c 6f 6e 67 09 |t all *|/..long.|
|00004820| 65 66 5f 74 62 61 73 65 | 3b 09 09 2f 2a 20 20 54 |ef_tbase|;../* T|
|00004830| 65 78 74 20 62 61 73 65 | 20 20 2a 2f 0a 09 6c 6f |ext base| */..lo|
|00004840| 6e 67 09 65 66 5f 64 62 | 61 73 65 3b 09 09 2f 2a |ng.ef_db|ase;../*|
|00004850| 20 20 44 61 74 61 20 62 | 61 73 65 20 20 2a 2f 0a | Data b|ase */.|
|00004860| 09 6c 6f 6e 67 09 65 66 | 5f 62 62 61 73 65 3b 09 |.long.ef|_bbase;.|
|00004870| 09 2f 2a 20 20 42 73 73 | 20 62 61 73 65 20 20 2a |./* Bss| base *|
|00004880| 2f 0a 09 69 6e 74 09 65 | 66 5f 73 74 63 6e 74 3b |/..int.e|f_stcnt;|
|00004890| 09 09 2f 2a 20 20 4e 75 | 6d 62 65 72 20 6f 66 20 |../* Nu|mber of |
|000048a0| 73 79 6d 62 6f 6c 73 20 | 20 2a 2f 0a 09 69 6e 74 |symbols | */..int|
|000048b0| 09 65 66 5f 73 74 6d 61 | 78 3b 09 09 2f 2a 20 20 |.ef_stma|x;../* |
|000048c0| 4d 61 78 20 6e 75 6d 62 | 65 72 20 6f 66 20 73 79 |Max numb|er of sy|
|000048d0| 6d 62 6f 6c 73 20 20 2a | 2f 0a 09 73 79 6d 62 6f |mbols *|/..symbo|
|000048e0| 6c 09 2a 65 66 5f 73 74 | 76 65 63 3b 09 09 2f 2a |l.*ef_st|vec;../*|
|000048f0| 20 20 53 79 6d 62 6f 6c | 20 76 65 63 74 6f 72 20 | Symbol| vector |
|00004900| 20 2a 2f 0a 7d 20 20 65 | 66 5f 66 69 64 73 3b 0a | */.} e|f_fids;.|
|00004910| 0a 74 79 70 65 64 65 66 | 09 65 66 5f 66 69 64 73 |.typedef|.ef_fids|
|00004920| 09 2a 65 66 5f 66 69 64 | 3b 0a 0a 2f 2a 0a 20 2a |.*ef_fid|;../*. *|
|00004930| 09 44 65 73 63 72 69 70 | 74 69 6f 6e 20 6f 66 20 |.Descrip|tion of |
|00004940| 77 6f 72 64 20 69 6e 20 | 74 65 78 74 20 66 69 6c |word in |text fil|
|00004950| 65 2e 20 20 54 68 69 73 | 20 65 6e 74 72 79 20 69 |e. This| entry i|
|00004960| 73 20 68 65 6c 64 20 69 | 6e 20 74 68 65 20 70 6c |s held i|n the pl|
|00004970| 61 63 65 0a 20 2a 09 63 | 6f 72 72 65 73 70 6f 6e |ace. *.c|orrespon|
|00004980| 64 69 6e 67 20 74 6f 20 | 74 68 65 20 61 64 64 72 |ding to |the addr|
|00004990| 65 73 73 20 69 6e 20 74 | 68 65 20 74 65 78 74 20 |ess in t|he text |
|000049a0| 66 69 6c 65 2e 0a 20 2a | 2f 0a 0a 74 79 70 65 64 |file.. *|/..typed|
|000049b0| 65 66 09 73 74 72 75 63 | 74 09 7b 0a 09 75 6e 73 |ef.struc|t.{..uns|
|000049c0| 69 67 6e 65 64 20 20 73 | 68 6f 72 74 09 74 5f 63 |igned s|hort.t_c|
|000049d0| 6f 6e 74 65 6e 74 73 3b | 09 09 2f 2a 20 20 41 63 |ontents;|../* Ac|
|000049e0| 74 75 61 6c 20 63 6f 6e | 74 65 6e 74 73 20 20 2a |tual con|tents *|
|000049f0| 2f 0a 09 75 6e 73 69 67 | 6e 65 64 20 20 73 68 6f |/..unsig|ned sho|
|00004a00| 72 74 20 74 5f 69 69 6e | 64 65 78 3b 09 09 2f 2a |rt t_iin|dex;../*|
|00004a10| 20 20 49 6e 64 65 78 20 | 69 6e 20 74 61 62 6c 65 | Index |in table|
|00004a20| 20 20 2a 2f 0a 09 75 6e | 73 69 67 6e 65 64 09 74 | */..un|signed.t|
|00004a30| 5f 74 79 70 65 09 3a 20 | 20 32 3b 09 09 2f 2a 20 |_type.: | 2;../* |
|00004a40| 20 54 79 70 65 20 20 2a | 2f 0a 09 75 6e 73 69 67 | Type *|/..unsig|
|00004a50| 6e 65 64 09 74 5f 76 69 | 6e 73 20 20 3a 20 20 31 |ned.t_vi|ns : 1|
|00004a60| 3b 09 09 2f 2a 20 20 56 | 61 6c 69 64 20 69 6e 73 |;../* V|alid ins|
|00004a70| 74 72 75 63 74 69 6f 6e | 20 20 2a 2f 0a 09 75 6e |truction| */..un|
|00004a80| 73 69 67 6e 65 64 09 74 | 5f 62 64 65 73 74 09 3a |signed.t|_bdest.:|
|00004a90| 20 20 31 3b 09 09 2f 2a | 20 20 49 73 20 62 72 61 | 1;../*| Is bra|
|00004aa0| 6e 63 68 20 64 65 73 74 | 20 20 2a 2f 0a 09 75 6e |nch dest| */..un|
|00004ab0| 73 69 67 6e 65 64 09 74 | 5f 67 62 64 65 73 74 3a |signed.t|_gbdest:|
|00004ac0| 20 20 31 3b 09 09 2f 2a | 20 20 49 73 20 67 6c 6f | 1;../*| Is glo|
|00004ad0| 62 61 6c 20 64 65 73 74 | 20 20 2a 2f 0a 09 75 6e |bal dest| */..un|
|00004ae0| 73 69 67 6e 65 64 09 74 | 5f 64 72 65 66 09 3a 20 |signed.t|_dref.: |
|00004af0| 20 31 3b 09 09 2f 2a 20 | 20 52 65 66 65 72 65 64 | 1;../* | Refered|
|00004b00| 20 74 6f 20 69 6e 20 64 | 61 74 61 20 20 2a 2f 0a | to in d|ata */.|
|00004b10| 09 75 6e 73 69 67 6e 65 | 64 09 74 5f 62 63 68 74 |.unsigne|d.t_bcht|
|00004b20| 79 70 3a 20 20 32 3b 09 | 09 2f 2a 20 20 42 72 61 |yp: 2;.|./* Bra|
|00004b30| 6e 63 68 20 74 79 70 65 | 20 20 2a 2f 0a 09 75 6e |nch type| */..un|
|00004b40| 73 69 67 6e 65 64 09 74 | 5f 6c 6e 67 09 3a 20 20 |signed.t|_lng.: |
|00004b50| 33 3b 09 09 2f 2a 20 20 | 4c 65 6e 67 74 68 20 69 |3;../* |Length i|
|00004b60| 6e 20 77 6f 72 64 73 20 | 20 2a 2f 0a 09 75 6e 73 |n words | */..uns|
|00004b70| 69 67 6e 65 64 09 74 5f | 72 65 6c 6f 63 20 3a 20 |igned.t_|reloc : |
|00004b80| 20 32 3b 09 09 2f 2a 20 | 20 52 65 6c 6f 63 61 74 | 2;../* | Relocat|
|00004b90| 61 62 6c 65 20 20 2a 2f | 0a 09 75 6e 73 69 67 6e |able */|..unsign|
|00004ba0| 65 64 09 74 5f 72 70 74 | 72 09 3a 20 20 32 3b 09 |ed.t_rpt|r.: 2;.|
|00004bb0| 09 2f 2a 20 20 57 68 65 | 72 65 20 72 65 6c 6f 63 |./* Whe|re reloc|
|00004bc0| 61 74 65 64 20 20 2a 2f | 0a 09 75 6e 73 69 67 6e |ated */|..unsign|
|00004bd0| 65 64 09 74 5f 72 64 69 | 73 70 20 3a 20 20 31 3b |ed.t_rdi|sp : 1;|
|00004be0| 09 09 2f 2a 20 20 52 65 | 6c 6f 63 61 74 61 62 6c |../* Re|locatabl|
|00004bf0| 65 20 64 69 73 70 6c 61 | 63 65 6d 65 6e 74 20 2a |e displa|cement *|
|00004c00| 2f 0a 09 75 6e 73 69 67 | 6e 65 64 09 74 5f 69 73 |/..unsig|ned.t_is|
|00004c10| 72 65 6c 20 3a 20 20 31 | 3b 09 09 2f 2a 20 20 52 |rel : 1|;../* R|
|00004c20| 65 6c 6f 63 61 74 65 64 | 20 20 2a 2f 0a 09 75 6e |elocated| */..un|
|00004c30| 73 69 67 6e 65 64 09 74 | 5f 61 6d 61 70 09 3a 20 |signed.t|_amap.: |
|00004c40| 20 31 3b 09 09 2f 2a 20 | 20 57 6f 72 6b 65 64 20 | 1;../* | Worked |
|00004c50| 6f 75 74 20 20 2a 2f 0a | 09 73 79 6d 62 6f 6c 09 |out */.|.symbol.|
|00004c60| 09 74 5f 72 65 6c 73 79 | 6d 62 3b 09 09 2f 2a 20 |.t_relsy|mb;../* |
|00004c70| 20 52 65 6c 6f 63 61 74 | 69 6f 6e 20 73 79 6d 62 | Relocat|ion symb|
|00004c80| 6f 6c 20 20 2a 2f 0a 09 | 6c 6f 6e 67 09 09 74 5f |ol */..|long..t_|
|00004c90| 72 65 6c 64 69 73 70 3b | 09 09 2f 2a 20 20 4f 66 |reldisp;|../* Of|
|00004ca0| 66 73 65 74 20 2b 20 6f | 72 20 2d 20 66 72 6f 6d |fset + o|r - from|
|00004cb0| 20 73 79 6d 62 20 2a 2f | 0a 09 73 79 6d 62 6f 6c | symb */|..symbol|
|00004cc0| 09 09 74 5f 6c 61 62 3b | 09 09 09 2f 2a 20 20 4c |..t_lab;|.../* L|
|00004cd0| 61 62 65 6c 20 20 2a 2f | 0a 09 75 6e 73 69 67 6e |abel */|..unsign|
|00004ce0| 65 64 20 20 73 68 6f 72 | 74 09 74 5f 6c 73 79 6d |ed shor|t.t_lsym|
|00004cf0| 62 3b 09 09 2f 2a 20 20 | 4c 6f 63 61 6c 20 73 79 |b;../* |Local sy|
|00004d00| 6d 62 6f 6c 20 20 2a 2f | 0a 09 6c 6f 6e 67 09 09 |mbol */|..long..|
|00004d10| 74 5f 72 65 66 6c 6f 3b | 09 09 2f 2a 20 20 4c 6f |t_reflo;|../* Lo|
|00004d20| 77 65 73 74 20 70 6c 61 | 63 65 20 72 65 66 65 72 |west pla|ce refer|
|00004d30| 72 65 64 20 20 2a 2f 0a | 09 6c 6f 6e 67 09 09 74 |red */.|.long..t|
|00004d40| 5f 72 65 66 68 69 3b 09 | 09 2f 2a 20 20 48 69 67 |_refhi;.|./* Hig|
|00004d50| 68 65 73 74 20 70 6c 61 | 63 65 20 72 65 66 65 72 |hest pla|ce refer|
|00004d60| 72 65 64 20 20 2a 2f 0a | 09 75 6e 73 69 67 6e 65 |red */.|.unsigne|
|00004d70| 64 20 20 73 68 6f 72 74 | 09 74 5f 6d 61 74 63 68 |d short|.t_match|
|00004d80| 3b 09 09 2f 2a 20 20 4c | 69 62 20 6d 61 74 63 68 |;../* L|ib match|
|00004d90| 20 6c 6e 67 20 20 2a 2f | 0a 7d 20 20 74 5f 65 6e | lng */|.} t_en|
|00004da0| 74 72 79 3b 0a 0a 2f 2a | 0a 20 2a 09 54 79 70 65 |try;../*|. *.Type|
|00004db0| 73 20 2e 2e 2e 2e 2e 2e | 0a 20 2a 2f 0a 0a 23 64 |s ......|. */..#d|
|00004dc0| 65 66 69 6e 65 09 54 5f | 55 4e 4b 4e 4f 57 4e 09 |efine.T_|UNKNOWN.|
|00004dd0| 30 0a 23 64 65 66 69 6e | 65 09 54 5f 42 45 47 49 |0.#defin|e.T_BEGI|
|00004de0| 4e 09 09 31 0a 23 64 65 | 66 69 6e 65 09 54 5f 43 |N..1.#de|fine.T_C|
|00004df0| 4f 4e 54 09 09 32 0a 0a | 23 64 65 66 69 6e 65 09 |ONT..2..|#define.|
|00004e00| 52 5f 4e 4f 4e 45 09 09 | 30 09 09 2f 2a 20 20 4e |R_NONE..|0../* N|
|00004e10| 6f 20 72 65 6c 6f 63 61 | 74 69 6f 6e 20 20 2a 2f |o reloca|tion */|
|00004e20| 0a 23 64 65 66 69 6e 65 | 09 52 5f 42 59 54 45 09 |.#define|.R_BYTE.|
|00004e30| 09 31 09 09 2f 2a 20 20 | 42 79 74 65 20 72 65 6c |.1../* |Byte rel|
|00004e40| 6f 63 61 74 69 6f 6e 20 | 20 2a 2f 0a 23 64 65 66 |ocation | */.#def|
|00004e50| 69 6e 65 09 52 5f 57 4f | 52 44 09 09 32 09 09 2f |ine.R_WO|RD..2../|
|00004e60| 2a 20 20 57 6f 72 64 20 | 72 65 6c 6f 63 61 74 69 |* Word |relocati|
|00004e70| 6f 6e 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 09 52 |on */.#|define.R|
|00004e80| 5f 4c 4f 4e 47 09 09 33 | 09 09 2f 2a 20 20 4c 6f |_LONG..3|../* Lo|
|00004e90| 6e 67 20 72 65 6c 6f 63 | 61 74 69 6f 6e 20 20 2a |ng reloc|ation *|
|00004ea0| 2f 0a 0a 2f 2a 0a 20 2a | 09 42 72 61 6e 63 68 20 |/../*. *|.Branch |
|00004eb0| 74 79 70 65 73 2e 0a 20 | 2a 2f 0a 0a 23 64 65 66 |types.. |*/..#def|
|00004ec0| 69 6e 65 09 54 5f 4e 4f | 42 52 09 09 30 0a 23 64 |ine.T_NO|BR..0.#d|
|00004ed0| 65 66 69 6e 65 09 54 5f | 43 4f 4e 44 42 52 09 31 |efine.T_|CONDBR.1|
|00004ee0| 0a 23 64 65 66 69 6e 65 | 09 54 5f 55 4e 42 52 09 |.#define|.T_UNBR.|
|00004ef0| 09 32 0a 23 64 65 66 69 | 6e 65 09 54 5f 4a 53 52 |.2.#defi|ne.T_JSR|
|00004f00| 09 09 33 0a 0a 74 79 70 | 65 64 65 66 09 73 74 72 |..3..typ|edef.str|
|00004f10| 75 63 74 09 7b 0a 09 75 | 6e 73 69 67 6e 65 64 20 |uct.{..u|nsigned |
|00004f20| 20 63 68 61 72 09 64 5f | 63 6f 6e 74 65 6e 74 73 | char.d_|contents|
|00004f30| 3b 09 09 2f 2a 20 20 41 | 63 74 75 61 6c 20 63 6f |;../* A|ctual co|
|00004f40| 6e 74 65 6e 74 73 20 20 | 2a 2f 0a 09 75 6e 73 69 |ntents |*/..unsi|
|00004f50| 67 6e 65 64 09 64 5f 74 | 79 70 65 20 20 3a 20 20 |gned.d_t|ype : |
|00004f60| 34 3b 09 09 2f 2a 20 20 | 44 61 74 61 20 74 79 70 |4;../* |Data typ|
|00004f70| 65 20 20 2a 2f 0a 09 75 | 6e 73 69 67 6e 65 64 09 |e */..u|nsigned.|
|00004f80| 64 5f 72 65 6c 6f 63 20 | 3a 20 20 32 3b 09 09 2f |d_reloc |: 2;../|
|00004f90| 2a 20 20 52 65 6c 6f 63 | 61 74 61 62 6c 65 20 20 |* Reloc|atable |
|00004fa0| 2a 2f 0a 09 75 6e 73 69 | 67 6e 65 64 09 64 5f 72 |*/..unsi|gned.d_r|
|00004fb0| 70 74 72 09 3a 20 20 32 | 3b 09 09 2f 2a 20 20 57 |ptr.: 2|;../* W|
|00004fc0| 68 65 72 65 20 72 65 6c | 6f 63 61 74 65 64 20 20 |here rel|ocated |
|00004fd0| 2a 2f 0a 09 73 68 6f 72 | 74 09 09 64 5f 6c 6e 67 |*/..shor|t..d_lng|
|00004fe0| 3b 09 09 09 2f 2a 20 20 | 4c 65 6e 67 74 68 20 2d |;.../* |Length -|
|00004ff0| 76 65 20 66 6f 72 20 44 | 5f 43 4f 4e 54 20 2a 2f |ve for D|_CONT */|
|00005000| 0a 09 73 79 6d 62 6f 6c | 09 09 64 5f 72 65 6c 73 |..symbol|..d_rels|
|00005010| 79 6d 62 3b 09 09 2f 2a | 20 20 52 65 6c 6f 63 61 |ymb;../*| Reloca|
|00005020| 74 69 6f 6e 20 73 79 6d | 62 6f 6c 20 20 2a 2f 0a |tion sym|bol */.|
|00005030| 09 6c 6f 6e 67 09 09 64 | 5f 72 65 6c 64 69 73 70 |.long..d|_reldisp|
|00005040| 3b 09 09 2f 2a 20 20 4f | 66 66 73 65 74 20 2b 20 |;../* O|ffset + |
|00005050| 6f 72 20 2d 20 66 72 6f | 6d 20 73 79 6d 62 20 2a |or - fro|m symb *|
|00005060| 2f 0a 09 73 79 6d 62 6f | 6c 09 09 64 5f 6c 61 62 |/..symbo|l..d_lab|
|00005070| 3b 09 09 09 2f 2a 20 20 | 4c 61 62 65 6c 20 20 2a |;.../* |Label *|
|00005080| 2f 0a 7d 20 20 64 5f 65 | 6e 74 72 79 3b 0a 0a 2f |/.} d_e|ntry;../|
|00005090| 2a 0a 20 2a 09 44 61 74 | 61 20 74 79 70 65 73 2e |*. *.Dat|a types.|
|000050a0| 0a 20 2a 2f 0a 0a 23 64 | 65 66 69 6e 65 09 44 5f |. */..#d|efine.D_|
|000050b0| 41 53 43 09 09 30 09 09 | 2f 2a 20 20 41 73 63 69 |ASC..0..|/* Asci|
|000050c0| 69 20 63 68 61 72 73 20 | 20 2a 2f 0a 23 64 65 66 |i chars | */.#def|
|000050d0| 69 6e 65 09 44 5f 41 53 | 43 5a 09 09 31 09 09 2f |ine.D_AS|CZ..1../|
|000050e0| 2a 20 20 4e 75 6c 6c 2d | 74 65 72 6d 20 61 73 63 |* Null-|term asc|
|000050f0| 69 69 20 20 2a 2f 0a 23 | 64 65 66 69 6e 65 09 44 |ii */.#|define.D|
|00005100| 5f 42 59 54 45 09 09 32 | 09 09 2f 2a 20 20 44 65 |_BYTE..2|../* De|
|00005110| 63 69 6d 61 6c 20 62 79 | 74 65 73 20 20 2a 2f 0a |cimal by|tes */.|
|00005120| 23 64 65 66 69 6e 65 09 | 44 5f 57 4f 52 44 09 09 |#define.|D_WORD..|
|00005130| 33 09 09 2f 2a 20 20 57 | 6f 72 64 73 20 20 2a 2f |3../* W|ords */|
|00005140| 0a 23 64 65 66 69 6e 65 | 09 44 5f 4c 4f 4e 47 09 |.#define|.D_LONG.|
|00005150| 09 34 09 09 2f 2a 20 20 | 4c 6f 6e 67 73 20 20 2a |.4../* |Longs *|
|00005160| 2f 0a 23 64 65 66 69 6e | 65 09 44 5f 41 44 44 52 |/.#defin|e.D_ADDR|
|00005170| 09 09 35 09 09 2f 2a 20 | 20 41 64 64 72 65 73 73 |..5../* | Address|
|00005180| 20 70 6f 69 6e 74 65 72 | 20 20 2a 2f 0a 23 64 65 | pointer| */.#de|
|00005190| 66 69 6e 65 09 44 5f 43 | 4f 4e 54 09 09 36 09 09 |fine.D_C|ONT..6..|
|000051a0| 2f 2a 20 20 43 6f 6e 74 | 69 6e 75 61 74 69 6f 6e |/* Cont|inuation|
|000051b0| 20 6f 66 20 6c 61 73 74 | 20 20 2a 2f 0a 0a 2f 2a | of last| */../*|
|000051c0| 0a 20 2a 09 27 43 6f 6d | 6d 6f 6e 27 20 69 74 65 |. *.'Com|mon' ite|
|000051d0| 6d 73 2e 0a 20 2a 2f 0a | 0a 73 74 72 75 63 74 09 |ms.. */.|.struct.|
|000051e0| 63 6f 6d 6d 69 74 09 7b | 0a 09 73 79 6d 62 6f 6c |commit.{|..symbol|
|000051f0| 09 2a 63 5f 73 79 6d 62 | 3b 09 09 2f 2a 20 20 4c |.*c_symb|;../* L|
|00005200| 69 73 74 20 6f 66 20 73 | 79 6d 62 6f 6c 73 20 20 |ist of s|ymbols |
|00005210| 2a 2f 0a 09 69 6e 74 09 | 63 5f 69 6e 74 3b 09 09 |*/..int.|c_int;..|
|00005220| 09 2f 2a 20 20 43 75 72 | 72 65 6e 74 20 6e 75 6d |./* Cur|rent num|
|00005230| 62 65 72 20 20 2a 2f 0a | 09 69 6e 74 09 63 5f 6d |ber */.|.int.c_m|
|00005240| 61 78 3b 09 09 09 2f 2a | 20 20 4d 61 78 69 6d 75 |ax;.../*| Maximu|
|00005250| 6d 20 20 2a 2f 0a 7d 3b | 0a 0a 2f 2a 0a 20 2a 09 |m */.};|../*. *.|
|00005260| 4c 69 62 72 61 72 79 20 | 66 69 6c 65 20 64 65 73 |Library |file des|
|00005270| 63 72 69 70 74 69 6f 6e | 2e 0a 20 2a 2f 0a 0a 73 |cription|.. */..s|
|00005280| 74 72 75 63 74 09 6c 69 | 62 69 74 09 7b 0a 09 69 |truct.li|bit.{..i|
|00005290| 6e 74 09 6c 66 5f 66 64 | 3b 09 09 09 2f 2a 20 20 |nt.lf_fd|;.../* |
|000052a0| 46 69 6c 65 20 64 65 73 | 63 72 69 70 74 6f 72 20 |File des|criptor |
|000052b0| 20 2a 2f 0a 09 6c 6f 6e | 67 09 6c 66 5f 6f 66 66 | */..lon|g.lf_off|
|000052c0| 73 65 74 3b 09 09 2f 2a | 20 20 4f 66 66 73 65 74 |set;../*| Offset|
|000052d0| 20 6f 66 20 63 75 72 72 | 65 6e 74 20 66 69 6c 65 | of curr|ent file|
|000052e0| 20 20 2a 2f 0a 09 6c 6f | 6e 67 09 6c 66 5f 6e 65 | */..lo|ng.lf_ne|
|000052f0| 78 74 3b 09 09 2f 2a 20 | 20 4f 66 66 73 65 74 20 |xt;../* | Offset |
|00005300| 6f 66 20 6e 65 78 74 20 | 66 69 6c 65 20 20 2a 2f |of next |file */|
|00005310| 0a 09 63 68 61 72 09 6c | 66 5f 6e 61 6d 65 5b 31 |..char.l|f_name[1|
|00005320| 34 5d 3b 09 09 2f 2a 20 | 20 4e 61 6d 65 20 6f 66 |4];../* | Name of|
|00005330| 20 69 74 65 6d 20 20 2a | 2f 0a 7d 3b 0a 53 48 41 | item *|/.};.SHA|
|00005340| 52 5f 45 4f 46 0a 69 66 | 20 74 65 73 74 20 34 35 |R_EOF.if| test 45|
|00005350| 32 36 20 2d 6e 65 20 22 | 60 77 63 20 2d 63 20 3c |26 -ne "|`wc -c <|
|00005360| 20 27 75 6e 63 2e 68 27 | 60 22 0a 74 68 65 6e 0a | 'unc.h'|`".then.|
|00005370| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 65 72 72 6f |.echo sh|ar: erro|
|00005380| 72 20 74 72 61 6e 73 6d | 69 74 74 69 6e 67 20 22 |r transm|itting "|
|00005390| 27 75 6e 63 2e 68 27 22 | 20 27 28 73 68 6f 75 6c |'unc.h'"| '(shoul|
|000053a0| 64 20 68 61 76 65 20 62 | 65 65 6e 20 34 35 32 36 |d have b|een 4526|
|000053b0| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 66 69 | charact|ers)'.fi|
|000053c0| 0a 66 69 0a 65 63 68 6f | 20 73 68 61 72 3a 20 65 |.fi.echo| shar: e|
|000053d0| 78 74 72 61 63 74 69 6e | 67 20 22 27 61 6c 6c 6f |xtractin|g "'allo|
|000053e0| 63 2e 63 27 22 20 27 28 | 36 33 39 36 20 63 68 61 |c.c'" '(|6396 cha|
|000053f0| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|00005400| 74 20 2d 66 20 27 61 6c | 6c 6f 63 2e 63 27 0a 74 |t -f 'al|loc.c'.t|
|00005410| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00005420| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|00005430| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00005440| 65 20 22 27 61 6c 6c 6f | 63 2e 63 27 22 0a 65 6c |e "'allo|c.c'".el|
|00005450| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|00005460| 45 4f 46 20 3e 20 27 61 | 6c 6c 6f 63 2e 63 27 0a |EOF > 'a|lloc.c'.|
|00005470| 2f 2a 0a 20 2a 09 53 43 | 43 53 3a 09 40 28 23 29 |/*. *.SC|CS:.@(#)|
|00005480| 61 6c 6c 6f 63 2e 63 09 | 31 2e 32 09 31 31 2f 32 |alloc.c.|1.2.11/2|
|00005490| 2f 38 34 09 31 34 3a 31 | 37 3a 32 30 0a 20 2a 09 |/84.14:1|7:20. *.|
|000054a0| 41 6c 6c 6f 63 61 74 65 | 20 73 70 61 63 65 20 65 |Allocate| space e|
|000054b0| 74 63 2e 0a 20 2a 0a 20 | 2a 2a 2a 2a 2a 2a 2a 2a |tc.. *. |********|
|000054c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000054d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000054e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000054f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0a |********|*******.|
|00005500| 20 2a 09 54 68 69 73 20 | 73 6f 66 74 77 61 72 65 | *.This |software|
|00005510| 20 69 73 20 63 6f 70 79 | 72 69 67 68 74 20 6f 66 | is copy|right of|
|00005520| 0a 20 2a 0a 20 2a 09 09 | 4a 6f 68 6e 20 4d 20 43 |. *. *..|John M C|
|00005530| 6f 6c 6c 69 6e 73 0a 20 | 2a 09 09 34 37 20 43 65 |ollins. |*..47 Ce|
|00005540| 64 61 72 77 6f 6f 64 20 | 44 72 69 76 65 0a 20 2a |darwood |Drive. *|
|00005550| 09 09 53 74 20 41 6c 62 | 61 6e 73 0a 20 2a 09 09 |..St Alb|ans. *..|
|00005560| 48 65 72 74 73 2c 20 41 | 4c 34 20 30 44 4e 0a 20 |Herts, A|L4 0DN. |
|00005570| 2a 09 09 45 6e 67 6c 61 | 6e 64 09 09 09 2b 34 34 |*..Engla|nd...+44|
|00005580| 20 37 32 37 20 35 37 32 | 36 37 0a 20 2a 0a 20 2a | 727 572|67. *. *|
|00005590| 09 61 6e 64 20 69 73 20 | 72 65 6c 65 61 73 65 64 |.and is |released|
|000055a0| 20 69 6e 74 6f 20 74 68 | 65 20 70 75 62 6c 69 63 | into th|e public|
|000055b0| 20 64 6f 6d 61 69 6e 20 | 6f 6e 20 74 68 65 20 66 | domain |on the f|
|000055c0| 6f 6c 6c 6f 77 69 6e 67 | 20 63 6f 6e 64 69 74 69 |ollowing| conditi|
|000055d0| 6f 6e 73 3a 0a 20 2a 0a | 20 2a 09 09 31 2e 20 20 |ons:. *.| *..1. |
|000055e0| 4e 6f 20 66 72 65 65 20 | 6d 61 69 6e 74 65 6e 61 |No free |maintena|
|000055f0| 6e 63 65 20 77 69 6c 6c | 20 62 65 20 67 75 61 72 |nce will| be guar|
|00005600| 61 6e 74 65 65 64 2e 0a | 20 2a 09 09 32 2e 20 20 |anteed..| *..2. |
|00005610| 4e 6f 74 68 69 6e 67 20 | 6d 61 79 20 62 65 20 62 |Nothing |may be b|
|00005620| 61 73 65 64 20 6f 6e 20 | 74 68 69 73 20 73 6f 66 |ased on |this sof|
|00005630| 74 77 61 72 65 20 77 69 | 74 68 6f 75 74 0a 20 2a |tware wi|thout. *|
|00005640| 09 09 20 20 20 20 61 63 | 6b 6e 6f 77 6c 65 64 67 |.. ac|knowledg|
|00005650| 65 6d 65 6e 74 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |ement, i|ncluding|
|00005660| 20 69 6e 63 6f 72 70 6f | 72 61 74 69 6f 6e 20 6f | incorpo|ration o|
|00005670| 66 20 74 68 69 73 0a 20 | 2a 09 09 20 20 20 20 6e |f this. |*.. n|
|00005680| 6f 74 69 63 65 2e 0a 20 | 2a 0a 20 2a 09 4e 6f 74 |otice.. |*. *.Not|
|00005690| 77 69 74 68 73 74 61 6e | 64 69 6e 67 20 74 68 65 |withstan|ding the|
|000056a0| 20 61 62 6f 76 65 2c 20 | 74 68 65 20 61 75 74 68 | above, |the auth|
|000056b0| 6f 72 20 77 65 6c 63 6f | 6d 65 73 20 63 6f 72 72 |or welco|mes corr|
|000056c0| 65 73 70 6f 6e 64 65 6e | 63 65 20 61 6e 64 20 62 |esponden|ce and b|
|000056d0| 75 67 0a 20 2a 09 66 69 | 78 65 73 2e 0a 20 2a 2a |ug. *.fi|xes.. **|
|000056e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000056f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005700| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005710| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005720| 2a 2a 2a 2a 2a 0a 20 2a | 2f 0a 0a 23 69 6e 63 6c |*****. *|/..#incl|
|00005730| 75 64 65 20 3c 73 74 64 | 69 6f 2e 68 3e 0a 23 69 |ude <std|io.h>.#i|
|00005740| 6e 63 6c 75 64 65 20 3c | 61 2e 6f 75 74 2e 68 3e |nclude <|a.out.h>|
|00005750| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 65 74 6a 6d |.#includ|e <setjm|
|00005760| 70 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 22 75 |p.h>.#in|clude "u|
|00005770| 6e 63 2e 68 22 0a 0a 23 | 64 65 66 69 6e 65 09 53 |nc.h"..#|define.S|
|00005780| 54 49 4e 43 09 31 30 0a | 0a 63 68 61 72 09 2a 6d |TINC.10.|.char.*m|
|00005790| 61 6c 6c 6f 63 28 29 2c | 20 2a 72 65 61 6c 6c 6f |alloc(),| *reallo|
|000057a0| 63 28 29 3b 0a 63 68 61 | 72 09 2a 73 74 72 6e 63 |c();.cha|r.*strnc|
|000057b0| 70 79 28 29 3b 0a 76 6f | 69 64 09 67 65 74 74 65 |py();.vo|id.gette|
|000057c0| 28 29 2c 20 67 65 74 64 | 65 28 29 2c 20 73 65 74 |(), getd|e(), set|
|000057d0| 64 65 28 29 2c 20 70 75 | 74 74 65 28 29 2c 20 70 |de(), pu|tte(), p|
|000057e0| 75 74 64 65 28 29 3b 0a | 76 6f 69 64 09 75 6e 69 |utde();.|void.uni|
|000057f0| 6d 70 6c 28 29 3b 0a 6c | 6f 6e 67 09 67 65 74 74 |mpl();.l|ong.gett|
|00005800| 77 28 29 3b 0a 0a 65 66 | 5f 66 69 64 73 09 6d 61 |w();..ef|_fids.ma|
|00005810| 69 6e 66 69 6c 65 3b 0a | 0a 2f 2a 0a 20 2a 09 4f |infile;.|./*. *.O|
|00005820| 6f 70 73 21 20 6f 75 74 | 20 6f 66 20 6d 65 6d 6f |ops! out| of memo|
|00005830| 72 79 2e 2e 2e 2e 2e 0a | 20 2a 2f 0a 0a 76 6f 69 |ry......| */..voi|
|00005840| 64 09 6e 6f 6d 65 6d 28 | 29 0a 7b 0a 09 28 76 6f |d.nomem(|).{..(vo|
|00005850| 69 64 29 20 66 70 72 69 | 6e 74 66 28 73 74 64 65 |id) fpri|ntf(stde|
|00005860| 72 72 2c 20 22 53 6f 72 | 72 79 20 2d 20 72 75 6e |rr, "Sor|ry - run|
|00005870| 20 6f 75 74 20 6f 66 20 | 6d 65 6d 6f 72 79 5c 6e | out of |memory\n|
|00005880| 22 29 3b 0a 09 65 78 69 | 74 28 32 35 35 29 3b 0a |");..exi|t(255);.|
|00005890| 7d 0a 0a 2f 2a 0a 20 2a | 09 4c 6f 6f 6b 20 75 70 |}../*. *|.Look up|
|000058a0| 20 68 61 73 68 20 76 61 | 6c 75 65 20 6f 66 20 73 | hash va|lue of s|
|000058b0| 79 6d 62 6f 6c 2e 0a 20 | 2a 2f 0a 0a 75 6e 73 69 |ymbol.. |*/..unsi|
|000058c0| 67 6e 65 64 20 20 73 68 | 61 73 68 28 73 74 72 29 |gned sh|ash(str)|
|000058d0| 0a 72 65 67 69 73 74 65 | 72 20 20 63 68 61 72 09 |.registe|r char.|
|000058e0| 2a 73 74 72 3b 0a 7b 0a | 09 72 65 67 69 73 74 65 |*str;.{.|.registe|
|000058f0| 72 20 20 75 6e 73 69 67 | 6e 65 64 20 20 72 65 73 |r unsig|ned res|
|00005900| 75 6c 74 20 3d 20 30 3b | 0a 09 72 65 67 69 73 74 |ult = 0;|..regist|
|00005910| 65 72 20 20 69 6e 74 09 | 63 6e 74 20 3d 20 30 3b |er int.|cnt = 0;|
|00005920| 0a 09 0a 09 77 68 69 6c | 65 20 20 28 2a 73 74 72 |....whil|e (*str|
|00005930| 20 20 26 26 20 20 63 6e | 74 20 3c 20 4d 41 58 43 | && cn|t < MAXC|
|00005940| 48 41 52 53 29 20 20 7b | 0a 09 09 72 65 73 75 6c |HARS) {|...resul|
|00005950| 74 20 2b 3d 20 2a 73 74 | 72 2b 2b 3b 0a 09 09 63 |t += *st|r++;...c|
|00005960| 6e 74 2b 2b 3b 0a 09 7d | 0a 09 72 65 74 75 72 6e |nt++;..}|..return|
|00005970| 20 20 72 65 73 75 6c 74 | 20 25 20 48 41 53 48 4d | result| % HASHM|
|00005980| 4f 44 3b 0a 7d 0a 0a 2f | 2a 0a 20 2a 09 4c 6f 6f |OD;.}../|*. *.Loo|
|00005990| 6b 20 75 70 20 68 61 73 | 68 20 76 61 6c 75 65 20 |k up has|h value |
|000059a0| 6f 66 20 73 79 6d 62 6f | 6c 2c 20 70 6f 73 73 69 |of symbo|l, possi|
|000059b0| 62 6c 79 20 61 6c 6c 6f | 63 61 74 69 6e 67 20 61 |bly allo|cating a|
|000059c0| 20 6e 65 77 20 73 79 6d | 62 6f 6c 2e 0a 20 2a 2f | new sym|bol.. */|
|000059d0| 0a 0a 73 79 6d 62 6f 6c | 09 6c 6f 6f 6b 75 70 28 |..symbol|.lookup(|
|000059e0| 73 74 72 29 0a 63 68 61 | 72 09 2a 73 74 72 3b 0a |str).cha|r.*str;.|
|000059f0| 7b 0a 09 72 65 67 69 73 | 74 65 72 20 20 73 79 6d |{..regis|ter sym|
|00005a00| 62 6f 6c 20 20 72 65 73 | 2c 20 2a 70 70 3b 0a 09 |bol res|, *pp;..|
|00005a10| 72 65 67 69 73 74 65 72 | 20 20 69 6e 74 09 6c 65 |register| int.le|
|00005a20| 6e 3b 0a 09 0a 09 70 70 | 20 3d 20 26 73 79 6d 62 |n;....pp| = &symb|
|00005a30| 68 61 73 68 5b 73 68 61 | 73 68 28 73 74 72 29 5d |hash[sha|sh(str)]|
|00005a40| 3b 0a 09 72 65 73 20 3d | 20 2a 70 70 3b 0a 09 77 |;..res =| *pp;..w|
|00005a50| 68 69 6c 65 20 20 28 72 | 65 73 20 21 3d 20 4e 55 |hile (r|es != NU|
|00005a60| 4c 4c 29 20 20 7b 0a 09 | 09 69 66 20 20 28 73 74 |LL) {..|.if (st|
|00005a70| 72 6e 63 6d 70 28 72 65 | 73 2d 3e 73 5f 6e 61 6d |rncmp(re|s->s_nam|
|00005a80| 65 2c 20 73 74 72 2c 20 | 4d 41 58 43 48 41 52 53 |e, str, |MAXCHARS|
|00005a90| 29 20 3d 3d 20 30 29 0a | 09 09 09 72 65 74 75 72 |) == 0).|...retur|
|00005aa0| 6e 09 72 65 73 3b 0a 09 | 09 70 70 20 3d 20 26 72 |n.res;..|.pp = &r|
|00005ab0| 65 73 2d 3e 73 5f 6e 65 | 78 74 3b 0a 09 09 72 65 |es->s_ne|xt;...re|
|00005ac0| 73 20 3d 20 2a 70 70 3b | 0a 09 7d 0a 09 66 6f 72 |s = *pp;|..}..for|
|00005ad0| 20 20 28 6c 65 6e 20 3d | 20 30 3b 20 20 6c 65 6e | (len =| 0; len|
|00005ae0| 20 3c 20 4d 41 58 43 48 | 41 52 53 3b 20 20 6c 65 | < MAXCH|ARS; le|
|00005af0| 6e 2b 2b 29 0a 09 09 69 | 66 20 20 28 73 74 72 5b |n++)...i|f (str[|
|00005b00| 6c 65 6e 5d 20 3d 3d 20 | 27 5c 30 27 29 0a 09 09 |len] == |'\0')...|
|00005b10| 09 62 72 65 61 6b 3b 0a | 09 6c 65 6e 2b 2b 3b 0a |.break;.|.len++;.|
|00005b20| 09 72 65 73 20 3d 20 28 | 73 79 6d 62 6f 6c 29 20 |.res = (|symbol) |
|00005b30| 6d 61 6c 6c 6f 63 28 73 | 69 7a 65 6f 66 28 73 74 |malloc(s|izeof(st|
|00005b40| 72 75 63 74 20 73 79 6d | 73 74 72 29 20 2b 20 6c |ruct sym|str) + l|
|00005b50| 65 6e 29 3b 0a 09 69 66 | 20 20 28 72 65 73 20 3d |en);..if| (res =|
|00005b60| 3d 20 4e 55 4c 4c 29 0a | 09 09 6e 6f 6d 65 6d 28 |= NULL).|..nomem(|
|00005b70| 29 3b 0a 09 2a 70 70 20 | 3d 20 72 65 73 3b 0a 09 |);..*pp |= res;..|
|00005b80| 72 65 73 2d 3e 73 5f 6e | 65 78 74 20 3d 20 4e 55 |res->s_n|ext = NU|
|00005b90| 4c 4c 3b 0a 09 28 76 6f | 69 64 29 20 73 74 72 6e |LL;..(vo|id) strn|
|00005ba0| 63 70 79 28 72 65 73 2d | 3e 73 5f 6e 61 6d 65 2c |cpy(res-|>s_name,|
|00005bb0| 20 73 74 72 2c 20 6c 65 | 6e 29 3b 0a 09 72 65 73 | str, le|n);..res|
|00005bc0| 2d 3e 73 5f 6e 61 6d 65 | 5b 6c 65 6e 5d 20 3d 20 |->s_name|[len] = |
|00005bd0| 27 5c 30 27 3b 09 09 2f | 2a 20 20 4e 75 6c 6c 2d |'\0';../|* Null-|
|00005be0| 74 65 72 6d 69 6e 61 74 | 65 20 20 2a 2f 0a 09 72 |terminat|e */..r|
|00005bf0| 65 73 2d 3e 73 5f 6e 65 | 77 73 79 6d 20 3d 20 31 |es->s_ne|wsym = 1|
|00005c00| 3b 0a 09 72 65 73 2d 3e | 73 5f 67 6c 6f 62 20 3d |;..res->|s_glob =|
|00005c10| 20 30 3b 0a 09 72 65 73 | 2d 3e 73 5f 69 6e 76 65 | 0;..res|->s_inve|
|00005c20| 6e 74 20 3d 20 30 3b 0a | 09 72 65 73 2d 3e 73 5f |nt = 0;.|.res->s_|
|00005c30| 6c 69 6e 6b 20 3d 20 4e | 55 4c 4c 3b 0a 09 72 65 |link = N|ULL;..re|
|00005c40| 73 2d 3e 73 5f 75 73 65 | 64 20 3d 20 30 3b 0a 09 |s->s_use|d = 0;..|
|00005c50| 72 65 73 2d 3e 73 5f 64 | 65 66 73 20 3d 20 30 3b |res->s_d|efs = 0;|
|00005c60| 0a 09 72 65 73 2d 3e 73 | 5f 6c 73 79 6d 62 20 3d |..res->s|_lsymb =|
|00005c70| 20 30 3b 0a 09 72 65 74 | 75 72 6e 20 20 72 65 73 | 0;..ret|urn res|
|00005c80| 3b 0a 7d 0a 0a 2f 2a 0a | 20 2a 09 49 6e 76 65 6e |;.}../*.| *.Inven|
|00005c90| 74 20 61 20 73 79 6d 62 | 6f 6c 2c 20 6d 61 6b 69 |t a symb|ol, maki|
|00005ca0| 6e 67 20 73 75 72 65 20 | 74 68 61 74 20 77 65 20 |ng sure |that we |
|00005cb0| 64 6f 6e 27 74 20 6b 6e | 6f 77 20 69 74 2e 0a 20 |don't kn|ow it.. |
|00005cc0| 2a 2f 0a 0a 73 79 6d 62 | 6f 6c 09 69 6e 76 65 6e |*/..symb|ol.inven|
|00005cd0| 74 73 79 6d 62 28 70 72 | 65 66 69 78 29 0a 63 68 |tsymb(pr|efix).ch|
|00005ce0| 61 72 09 2a 70 72 65 66 | 69 78 3b 0a 7b 0a 09 73 |ar.*pref|ix;.{..s|
|00005cf0| 74 61 74 69 63 09 69 6e | 74 20 20 6e 73 79 6d 62 |tatic.in|t nsymb|
|00005d00| 20 3d 20 30 3b 0a 09 63 | 68 61 72 09 73 63 68 61 | = 0;..c|har.scha|
|00005d10| 72 73 5b 31 30 5d 3b 0a | 09 72 65 67 69 73 74 65 |rs[10];.|.registe|
|00005d20| 72 20 20 73 79 6d 62 6f | 6c 20 20 72 65 73 3b 0a |r symbo|l res;.|
|00005d30| 09 0a 09 64 6f 09 28 76 | 6f 69 64 29 20 73 70 72 |...do.(v|oid) spr|
|00005d40| 69 6e 74 66 28 73 63 68 | 61 72 73 2c 20 22 25 73 |intf(sch|ars, "%s|
|00005d50| 25 64 22 2c 20 70 72 65 | 66 69 78 2c 20 2b 2b 6e |%d", pre|fix, ++n|
|00005d60| 73 79 6d 62 29 3b 0a 09 | 77 68 69 6c 65 20 20 28 |symb);..|while (|
|00005d70| 21 28 72 65 73 20 3d 20 | 6c 6f 6f 6b 75 70 28 73 |!(res = |lookup(s|
|00005d80| 63 68 61 72 73 29 29 2d | 3e 73 5f 6e 65 77 73 79 |chars))-|>s_newsy|
|00005d90| 6d 29 3b 0a 09 0a 09 72 | 65 73 2d 3e 73 5f 6e 65 |m);....r|es->s_ne|
|00005da0| 77 73 79 6d 20 3d 20 30 | 3b 0a 09 72 65 73 2d 3e |wsym = 0|;..res->|
|00005db0| 73 5f 69 6e 76 65 6e 74 | 20 3d 20 31 3b 0a 09 72 |s_invent| = 1;..r|
|00005dc0| 65 74 75 72 6e 09 72 65 | 73 3b 0a 7d 0a 09 20 0a |eturn.re|s;.}.. .|
|00005dd0| 2f 2a 0a 20 2a 09 52 65 | 61 6c 6c 6f 63 61 74 65 |/*. *.Re|allocate|
|00005de0| 20 73 79 6d 62 6f 6c 20 | 74 61 62 6c 65 2e 0a 20 | symbol |table.. |
|00005df0| 2a 2f 0a 0a 76 6f 69 64 | 09 72 65 61 6c 6c 73 74 |*/..void|.reallst|
|00005e00| 28 6f 75 74 66 29 0a 72 | 65 67 69 73 74 65 72 20 |(outf).r|egister |
|00005e10| 20 65 66 5f 66 69 64 20 | 20 6f 75 74 66 3b 0a 7b | ef_fid | outf;.{|
|00005e20| 0a 09 6f 75 74 66 2d 3e | 65 66 5f 73 74 6d 61 78 |..outf->|ef_stmax|
|00005e30| 20 2b 3d 20 53 54 49 4e | 43 3b 0a 09 69 66 20 20 | += STIN|C;..if |
|00005e40| 28 6f 75 74 66 2d 3e 65 | 66 5f 73 74 76 65 63 20 |(outf->e|f_stvec |
|00005e50| 3d 3d 20 4e 55 4c 4c 29 | 0a 09 09 6f 75 74 66 2d |== NULL)|...outf-|
|00005e60| 3e 65 66 5f 73 74 76 65 | 63 20 3d 20 28 73 79 6d |>ef_stve|c = (sym|
|00005e70| 62 6f 6c 20 2a 29 20 6d | 61 6c 6c 6f 63 28 6f 75 |bol *) m|alloc(ou|
|00005e80| 74 66 2d 3e 65 66 5f 73 | 74 6d 61 78 20 2a 20 73 |tf->ef_s|tmax * s|
|00005e90| 69 7a 65 6f 66 28 73 79 | 6d 62 6f 6c 29 29 3b 0a |izeof(sy|mbol));.|
|00005ea0| 09 65 6c 73 65 0a 09 09 | 6f 75 74 66 2d 3e 65 66 |.else...|outf->ef|
|00005eb0| 5f 73 74 76 65 63 20 3d | 20 28 73 79 6d 62 6f 6c |_stvec =| (symbol|
|00005ec0| 20 2a 29 20 72 65 61 6c | 6c 6f 63 28 6f 75 74 66 | *) real|loc(outf|
|00005ed0| 2d 3e 65 66 5f 73 74 76 | 65 63 2c 0a 09 09 09 09 |->ef_stv|ec,.....|
|00005ee0| 09 6f 75 74 66 2d 3e 65 | 66 5f 73 74 6d 61 78 20 |.outf->e|f_stmax |
|00005ef0| 2a 20 73 69 7a 65 6f 66 | 28 73 79 6d 62 6f 6c 29 |* sizeof|(symbol)|
|00005f00| 29 3b 0a 09 69 66 20 20 | 28 6f 75 74 66 2d 3e 65 |);..if |(outf->e|
|00005f10| 66 5f 73 74 76 65 63 20 | 3d 3d 20 4e 55 4c 4c 29 |f_stvec |== NULL)|
|00005f20| 0a 09 09 6e 6f 6d 65 6d | 28 29 3b 0a 7d 0a 0a 2f |...nomem|();.}../|
|00005f30| 2a 0a 20 2a 09 53 65 61 | 72 63 68 20 74 68 72 6f |*. *.Sea|rch thro|
|00005f40| 75 67 68 20 65 78 69 73 | 74 69 6e 67 20 73 79 6d |ugh exis|ting sym|
|00005f50| 62 6f 6c 20 74 61 62 6c | 65 20 66 6f 72 20 73 79 |bol tabl|e for sy|
|00005f60| 6d 62 6f 6c 20 77 69 74 | 68 20 67 69 76 65 6e 0a |mbol wit|h given.|
|00005f70| 20 2a 09 76 61 6c 75 65 | 2e 20 20 49 6e 76 65 6e | *.value|. Inven|
|00005f80| 74 20 61 20 6e 65 77 20 | 6f 6e 65 20 69 66 20 6e |t a new |one if n|
|00005f90| 65 65 64 65 64 2e 0a 20 | 2a 2f 0a 0a 73 79 6d 62 |eeded.. |*/..symb|
|00005fa0| 6f 6c 09 67 65 74 6e 73 | 79 6d 62 28 66 69 64 2c |ol.getns|ymb(fid,|
|00005fb0| 20 73 65 67 2c 20 70 6f | 73 29 0a 72 65 67 69 73 | seg, po|s).regis|
|00005fc0| 74 65 72 20 20 65 66 5f | 66 69 64 20 20 66 69 64 |ter ef_|fid fid|
|00005fd0| 3b 0a 75 6e 73 69 67 6e | 65 64 20 20 73 65 67 3b |;.unsign|ed seg;|
|00005fe0| 0a 6c 6f 6e 67 09 70 6f | 73 3b 0a 7b 0a 09 72 65 |.long.po|s;.{..re|
|00005ff0| 67 69 73 74 65 72 20 20 | 69 6e 74 09 69 3b 0a 09 |gister |int.i;..|
|00006000| 72 65 67 69 73 74 65 72 | 20 20 73 79 6d 62 6f 6c |register| symbol|
|00006010| 20 20 72 65 73 3b 0a 09 | 0a 09 2f 2a 2a 2a 2a 2a | res;..|../*****|
|00006020| 2a 2a 2a 2a 2a 2a 20 20 | 4d 41 43 48 49 4e 45 20 |****** |MACHINE |
|00006030| 44 45 50 45 4e 44 45 4e | 54 20 20 2a 2a 2a 2a 2a |DEPENDEN|T *****|
|00006040| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006050| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 09 20 2a 09 43 6f |********|*.. *.Co|
|00006060| 6e 76 65 72 74 20 72 65 | 6c 6f 63 61 74 69 6f 6e |nvert re|location|
|00006070| 20 73 65 67 6d 65 6e 74 | 20 74 79 70 65 20 28 61 | segment| type (a|
|00006080| 72 67 75 6d 65 6e 74 29 | 20 74 6f 20 73 79 6d 62 |rgument)| to symb|
|00006090| 6f 6c 20 74 79 70 65 0a | 09 20 2a 09 28 61 73 20 |ol type.|. *.(as |
|000060a0| 72 65 6d 65 6d 62 65 72 | 65 64 20 69 6e 20 73 79 |remember|ed in sy|
|000060b0| 6d 62 6f 6c 20 74 61 62 | 6c 65 29 2e 20 20 44 6f |mbol tab|le). Do|
|000060c0| 6e 27 74 20 61 73 6b 20 | 6d 65 20 77 68 79 20 74 |n't ask |me why t|
|000060d0| 68 65 79 0a 09 20 2a 09 | 68 61 76 65 20 74 6f 20 |hey.. *.|have to |
|000060e0| 62 65 20 64 69 66 66 65 | 72 65 6e 74 2e 2e 2e 2e |be diffe|rent....|
|000060f0| 2e 0a 09 20 2a 2f 0a 09 | 0a 09 73 65 67 20 2b 3d |... */..|..seg +=|
|00006100| 20 54 45 58 54 20 2d 20 | 52 54 45 58 54 3b 0a 09 | TEXT - |RTEXT;..|
|00006110| 0a 09 2f 2a 0a 09 20 2a | 09 53 65 65 20 69 66 20 |../*.. *|.See if |
|00006120| 74 68 65 20 72 65 66 65 | 72 65 6e 63 65 20 69 73 |the refe|rence is|
|00006130| 20 74 6f 20 61 6e 20 65 | 78 74 65 72 6e 61 6c 20 | to an e|xternal |
|00006140| 73 79 6d 62 6f 6c 2e 0a | 09 20 2a 09 49 66 20 73 |symbol..|. *.If s|
|00006150| 6f 2c 20 75 73 65 20 74 | 68 61 74 2e 0a 09 20 2a |o, use t|hat... *|
|00006160| 2f 0a 09 0a 09 66 6f 72 | 20 20 28 69 20 3d 20 30 |/....for| (i = 0|
|00006170| 3b 20 20 69 20 3c 20 66 | 69 64 2d 3e 65 66 5f 73 |; i < f|id->ef_s|
|00006180| 74 63 6e 74 3b 20 20 69 | 2b 2b 29 20 20 7b 0a 09 |tcnt; i|++) {..|
|00006190| 09 72 65 73 20 3d 20 66 | 69 64 2d 3e 65 66 5f 73 |.res = f|id->ef_s|
|000061a0| 74 76 65 63 5b 69 5d 3b | 0a 09 09 69 66 20 20 28 |tvec[i];|...if (|
|000061b0| 72 65 73 2d 3e 73 5f 74 | 79 70 65 20 3d 3d 20 73 |res->s_t|ype == s|
|000061c0| 65 67 20 20 26 26 20 20 | 72 65 73 2d 3e 73 5f 76 |eg && |res->s_v|
|000061d0| 61 6c 75 65 20 3d 3d 20 | 70 6f 73 29 0a 09 09 09 |alue == |pos)....|
|000061e0| 72 65 74 75 72 6e 09 72 | 65 73 3b 0a 09 7d 0a 09 |return.r|es;..}..|
|000061f0| 0a 09 2f 2a 0a 09 20 2a | 09 49 6e 76 65 6e 74 20 |../*.. *|.Invent |
|00006200| 61 20 73 79 6d 62 6f 6c | 20 61 6e 64 20 75 73 65 |a symbol| and use|
|00006210| 20 74 68 61 74 2e 0a 09 | 20 2a 2f 0a 09 0a 09 72 | that...| */....r|
|00006220| 65 73 20 3d 20 69 6e 76 | 65 6e 74 73 79 6d 62 28 |es = inv|entsymb(|
|00006230| 22 52 53 22 29 3b 0a 09 | 69 66 20 20 28 66 69 64 |"RS");..|if (fid|
|00006240| 2d 3e 65 66 5f 73 74 63 | 6e 74 20 3e 3d 20 66 69 |->ef_stc|nt >= fi|
|00006250| 64 2d 3e 65 66 5f 73 74 | 6d 61 78 29 0a 09 09 72 |d->ef_st|max)...r|
|00006260| 65 61 6c 6c 73 74 28 66 | 69 64 29 3b 0a 09 66 69 |eallst(f|id);..fi|
|00006270| 64 2d 3e 65 66 5f 73 74 | 76 65 63 5b 66 69 64 2d |d->ef_st|vec[fid-|
|00006280| 3e 65 66 5f 73 74 63 6e | 74 2b 2b 5d 20 3d 20 72 |>ef_stcn|t++] = r|
|00006290| 65 73 3b 0a 09 72 65 73 | 2d 3e 73 5f 74 79 70 65 |es;..res|->s_type|
|000062a0| 20 3d 20 73 65 67 3b 0a | 09 72 65 73 2d 3e 73 5f | = seg;.|.res->s_|
|000062b0| 76 61 6c 75 65 20 3d 20 | 70 6f 73 3b 0a 09 69 66 |value = |pos;..if|
|000062c0| 20 20 28 73 65 67 20 3d | 3d 20 54 45 58 54 29 20 | (seg =|= TEXT) |
|000062d0| 20 7b 0a 09 09 74 5f 65 | 6e 74 72 79 09 74 65 6e | {...t_e|ntry.ten|
|000062e0| 74 3b 0a 09 09 67 65 74 | 74 65 28 66 69 64 2c 20 |t;...get|te(fid, |
|000062f0| 70 6f 73 2c 20 26 74 65 | 6e 74 29 3b 0a 09 09 74 |pos, &te|nt);...t|
|00006300| 65 6e 74 2e 74 5f 62 64 | 65 73 74 20 3d 20 31 3b |ent.t_bd|est = 1;|
|00006310| 0a 09 09 74 65 6e 74 2e | 74 5f 6c 61 62 20 3d 20 |...tent.|t_lab = |
|00006320| 72 65 73 3b 0a 09 09 70 | 75 74 74 65 28 66 69 64 |res;...p|utte(fid|
|00006330| 2c 20 70 6f 73 2c 20 26 | 74 65 6e 74 29 3b 0a 09 |, pos, &|tent);..|
|00006340| 7d 0a 09 65 6c 73 65 20 | 20 69 66 20 20 28 73 65 |}..else | if (se|
|00006350| 67 20 3d 3d 20 44 41 54 | 41 20 20 7c 7c 20 20 73 |g == DAT|A || s|
|00006360| 65 67 20 3d 3d 20 42 53 | 53 29 20 20 7b 0a 09 09 |eg == BS|S) {...|
|00006370| 64 5f 65 6e 74 72 79 20 | 64 65 6e 74 3b 0a 09 09 |d_entry |dent;...|
|00006380| 67 65 74 64 65 28 66 69 | 64 2c 20 70 6f 73 2c 20 |getde(fi|d, pos, |
|00006390| 26 64 65 6e 74 29 3b 0a | 09 09 64 65 6e 74 2e 64 |&dent);.|..dent.d|
|000063a0| 5f 6c 61 62 20 3d 20 72 | 65 73 3b 0a 09 09 70 75 |_lab = r|es;...pu|
|000063b0| 74 64 65 28 66 69 64 2c | 20 70 6f 73 2c 20 26 64 |tde(fid,| pos, &d|
|000063c0| 65 6e 74 29 3b 0a 09 7d | 0a 0a 09 72 65 74 75 72 |ent);..}|...retur|
|000063d0| 6e 09 72 65 73 3b 0a 7d | 0a 0a 2f 2a 0a 20 2a 09 |n.res;.}|../*. *.|
|000063e0| 41 73 73 75 6d 69 6e 67 | 20 61 64 64 72 65 73 73 |Assuming| address|
|000063f0| 20 67 69 76 65 6e 20 69 | 73 20 69 6e 20 74 65 78 | given i|s in tex|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.