home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume34 / jpeg / part09 < prev    next >
SHell self-extracting ARchive  |  1992-12-17  |  58.9 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

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

You can browse this item here: part09

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text 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)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 6a 70 65 67 | 2d 69 6e 66 6f 40 75 75 |om: jpeg|-info@uu|
|00000030| 6e 65 74 2e 75 75 2e 6e | 65 74 20 28 49 6e 64 65 |net.uu.n|et (Inde|
|00000040| 70 65 6e 64 65 6e 74 20 | 4a 50 45 47 20 47 72 6f |pendent |JPEG Gro|
|00000050| 75 70 29 0a 53 75 62 6a | 65 63 74 3a 20 20 76 33 |up).Subj|ect: v3|
|00000060| 34 69 30 36 33 3a 20 20 | 6a 70 65 67 20 2d 20 4a |4i063: |jpeg - J|
|00000070| 50 45 47 20 69 6d 61 67 | 65 20 63 6f 6d 70 72 65 |PEG imag|e compre|
|00000080| 73 73 69 6f 6e 2c 20 50 | 61 72 74 30 39 2f 31 38 |ssion, P|art09/18|
|00000090| 0a 4d 65 73 73 61 67 65 | 2d 49 44 3a 20 3c 31 39 |.Message|-ID: <19|
|000000a0| 39 32 44 65 63 31 37 2e | 30 34 31 38 34 39 2e 32 |92Dec17.|041849.2|
|000000b0| 33 36 39 39 40 73 70 61 | 72 6b 79 2e 69 6d 64 2e |3699@spa|rky.imd.|
|000000c0| 73 74 65 72 6c 69 6e 67 | 2e 63 6f 6d 3e 0a 58 2d |sterling|.com>.X-|
|000000d0| 4d 64 34 2d 53 69 67 6e | 61 74 75 72 65 3a 20 33 |Md4-Sign|ature: 3|
|000000e0| 31 37 31 35 31 38 39 63 | 61 65 36 61 37 65 33 61 |1715189c|ae6a7e3a|
|000000f0| 39 61 32 36 65 38 64 36 | 33 65 35 61 64 31 36 0a |9a26e8d6|3e5ad16.|
|00000100| 44 61 74 65 3a 20 54 68 | 75 2c 20 31 37 20 44 65 |Date: Th|u, 17 De|
|00000110| 63 20 31 39 39 32 20 30 | 34 3a 31 38 3a 34 39 20 |c 1992 0|4:18:49 |
|00000120| 47 4d 54 0a 41 70 70 72 | 6f 76 65 64 3a 20 6b 65 |GMT.Appr|oved: ke|
|00000130| 6e 74 40 73 70 61 72 6b | 79 2e 69 6d 64 2e 73 74 |nt@spark|y.imd.st|
|00000140| 65 72 6c 69 6e 67 2e 63 | 6f 6d 0a 0a 53 75 62 6d |erling.c|om..Subm|
|00000150| 69 74 74 65 64 2d 62 79 | 3a 20 6a 70 65 67 2d 69 |itted-by|: jpeg-i|
|00000160| 6e 66 6f 40 75 75 6e 65 | 74 2e 75 75 2e 6e 65 74 |nfo@uune|t.uu.net|
|00000170| 20 28 49 6e 64 65 70 65 | 6e 64 65 6e 74 20 4a 50 | (Indepe|ndent JP|
|00000180| 45 47 20 47 72 6f 75 70 | 29 0a 50 6f 73 74 69 6e |EG Group|).Postin|
|00000190| 67 2d 6e 75 6d 62 65 72 | 3a 20 56 6f 6c 75 6d 65 |g-number|: Volume|
|000001a0| 20 33 34 2c 20 49 73 73 | 75 65 20 36 33 0a 41 72 | 34, Iss|ue 63.Ar|
|000001b0| 63 68 69 76 65 2d 6e 61 | 6d 65 3a 20 6a 70 65 67 |chive-na|me: jpeg|
|000001c0| 2f 70 61 72 74 30 39 0a | 45 6e 76 69 72 6f 6e 6d |/part09.|Environm|
|000001d0| 65 6e 74 3a 20 55 4e 49 | 58 2c 20 56 4d 53 2c 20 |ent: UNI|X, VMS, |
|000001e0| 4d 53 2d 44 4f 53 2c 20 | 4d 61 63 2c 20 41 6d 69 |MS-DOS, |Mac, Ami|
|000001f0| 67 61 2c 20 41 74 61 72 | 69 2c 20 43 72 61 79 0a |ga, Atar|i, Cray.|
|00000200| 53 75 70 65 72 73 65 64 | 65 73 3a 20 6a 70 65 67 |Supersed|es: jpeg|
|00000210| 3a 20 56 6f 6c 75 6d 65 | 20 32 39 2c 20 49 73 73 |: Volume| 29, Iss|
|00000220| 75 65 20 31 2d 31 38 0a | 0a 23 21 20 2f 62 69 6e |ue 1-18.|.#! /bin|
|00000230| 2f 73 68 0a 23 20 54 68 | 69 73 20 69 73 20 61 20 |/sh.# Th|is is a |
|00000240| 73 68 65 6c 6c 20 61 72 | 63 68 69 76 65 2e 20 20 |shell ar|chive. |
|00000250| 52 65 6d 6f 76 65 20 61 | 6e 79 74 68 69 6e 67 20 |Remove a|nything |
|00000260| 62 65 66 6f 72 65 20 74 | 68 69 73 20 6c 69 6e 65 |before t|his line|
|00000270| 2c 20 74 68 65 6e 20 66 | 65 65 64 20 69 74 0a 23 |, then f|eed it.#|
|00000280| 20 69 6e 74 6f 20 61 20 | 73 68 65 6c 6c 20 76 69 | into a |shell vi|
|00000290| 61 20 22 73 68 20 66 69 | 6c 65 22 20 6f 72 20 73 |a "sh fi|le" or s|
|000002a0| 69 6d 69 6c 61 72 2e 20 | 20 54 6f 20 6f 76 65 72 |imilar. | To over|
|000002b0| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|000002c0| 69 6c 65 73 2c 0a 23 20 | 74 79 70 65 20 22 73 68 |iles,.# |type "sh|
|000002d0| 20 66 69 6c 65 20 2d 63 | 22 2e 0a 23 20 43 6f 6e | file -c|"..# Con|
|000002e0| 74 65 6e 74 73 3a 20 20 | 53 45 54 55 50 20 61 72 |tents: |SETUP ar|
|000002f0| 63 68 69 74 65 63 74 75 | 72 65 2e 41 20 6a 69 6e |chitectu|re.A jin|
|00000300| 63 6c 75 64 65 2e 68 0a | 23 20 57 72 61 70 70 65 |clude.h.|# Wrappe|
|00000310| 64 20 62 79 20 6b 65 6e | 74 40 73 70 61 72 6b 79 |d by ken|t@sparky|
|00000320| 20 6f 6e 20 57 65 64 20 | 44 65 63 20 31 36 20 32 | on Wed |Dec 16 2|
|00000330| 30 3a 35 32 3a 32 38 20 | 31 39 39 32 0a 50 41 54 |0:52:28 |1992.PAT|
|00000340| 48 3d 2f 62 69 6e 3a 2f | 75 73 72 2f 62 69 6e 3a |H=/bin:/|usr/bin:|
|00000350| 2f 75 73 72 2f 75 63 62 | 3a 2f 75 73 72 2f 6c 6f |/usr/ucb|:/usr/lo|
|00000360| 63 61 6c 2f 62 69 6e 3a | 2f 75 73 72 2f 6c 62 69 |cal/bin:|/usr/lbi|
|00000370| 6e 20 3b 20 65 78 70 6f | 72 74 20 50 41 54 48 0a |n ; expo|rt PATH.|
|00000380| 65 63 68 6f 20 49 66 20 | 74 68 69 73 20 61 72 63 |echo If |this arc|
|00000390| 68 69 76 65 20 69 73 20 | 63 6f 6d 70 6c 65 74 65 |hive is |complete|
|000003a0| 2c 20 79 6f 75 20 77 69 | 6c 6c 20 73 65 65 20 74 |, you wi|ll see t|
|000003b0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6d 65 73 |he follo|wing mes|
|000003c0| 73 61 67 65 3a 0a 65 63 | 68 6f 20 27 20 20 20 20 |sage:.ec|ho ' |
|000003d0| 20 20 20 20 20 20 22 73 | 68 61 72 3a 20 45 6e 64 | "s|har: End|
|000003e0| 20 6f 66 20 61 72 63 68 | 69 76 65 20 39 20 28 6f | of arch|ive 9 (o|
|000003f0| 66 20 31 38 29 2e 22 27 | 0a 69 66 20 74 65 73 74 |f 18)."'|.if test|
|00000400| 20 2d 66 20 27 53 45 54 | 55 50 27 20 2d 61 20 22 | -f 'SET|UP' -a "|
|00000410| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00000420| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00000430| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00000440| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00000450| 65 20 5c 22 27 53 45 54 | 55 50 27 5c 22 0a 65 6c |e \"'SET|UP'\".el|
|00000460| 73 65 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |se. ech|o shar: |
|00000470| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 53 45 |Extracti|ng \"'SE|
|00000480| 54 55 50 27 5c 22 20 5c | 28 32 36 32 34 32 20 63 |TUP'\" \|(26242 c|
|00000490| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 20 20 73 65 |haracter|s\). se|
|000004a0| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 53 45 54 |d "s/^X/|/" >'SET|
|000004b0| 55 50 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |UP' <<'E|ND_OF_FI|
|000004c0| 4c 45 27 0a 58 53 45 54 | 55 50 20 69 6e 73 74 72 |LE'.XSET|UP instr|
|000004d0| 75 63 74 69 6f 6e 73 20 | 66 6f 72 20 74 68 65 20 |uctions |for the |
|000004e0| 49 6e 64 65 70 65 6e 64 | 65 6e 74 20 4a 50 45 47 |Independ|ent JPEG|
|000004f0| 20 47 72 6f 75 70 27 73 | 20 4a 50 45 47 20 73 6f | Group's| JPEG so|
|00000500| 66 74 77 61 72 65 0a 58 | 3d 3d 3d 3d 3d 3d 3d 3d |ftware.X|========|
|00000510| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000520| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000530| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000540| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0a 58 0a 58 54 68 69 |========|=.X.XThi|
|00000550| 73 20 66 69 6c 65 20 65 | 78 70 6c 61 69 6e 73 20 |s file e|xplains |
|00000560| 68 6f 77 20 74 6f 20 63 | 6f 6e 66 69 67 75 72 65 |how to c|onfigure|
|00000570| 20 61 6e 64 20 63 6f 6d | 70 69 6c 65 20 74 68 65 | and com|pile the|
|00000580| 20 4a 50 45 47 20 73 6f | 66 74 77 61 72 65 2e 20 | JPEG so|ftware. |
|00000590| 20 57 65 20 68 61 76 65 | 0a 58 74 72 69 65 64 20 | We have|.Xtried |
|000005a0| 74 6f 20 6d 61 6b 65 20 | 74 68 69 73 20 73 6f 66 |to make |this sof|
|000005b0| 74 77 61 72 65 20 65 78 | 74 72 65 6d 65 6c 79 20 |tware ex|tremely |
|000005c0| 70 6f 72 74 61 62 6c 65 | 20 61 6e 64 20 66 6c 65 |portable| and fle|
|000005d0| 78 69 62 6c 65 2c 20 73 | 6f 20 74 68 61 74 20 69 |xible, s|o that i|
|000005e0| 74 20 63 61 6e 20 62 65 | 0a 58 61 64 61 70 74 65 |t can be|.Xadapte|
|000005f0| 64 20 74 6f 20 61 2c 6d | 6f 73 74 20 61 6e 79 20 |d to a,m|ost any |
|00000600| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 2e 20 20 54 68 |environm|ent. Th|
|00000610| 65 20 64 6f 77 6e 73 69 | 64 65 20 6f 66 20 74 68 |e downsi|de of th|
|00000620| 69 73 20 64 65 63 69 73 | 69 6f 6e 20 69 73 20 74 |is decis|ion is t|
|00000630| 68 61 74 20 74 68 65 0a | 58 69 6e 73 74 61 6c 6c |hat the.|Xinstall|
|00000640| 61 74 69 6f 6e 20 70 72 | 6f 63 65 73 73 20 69 73 |ation pr|ocess is|
|00000650| 20 6e 6f 74 20 76 65 72 | 79 20 61 75 74 6f 6d 61 | not ver|y automa|
|00000660| 74 69 63 3b 20 79 6f 75 | 20 77 69 6c 6c 20 6e 65 |tic; you| will ne|
|00000670| 65 64 20 61 74 20 6c 65 | 61 73 74 20 61 20 6c 69 |ed at le|ast a li|
|00000680| 74 74 6c 65 0a 58 66 61 | 6d 69 6c 69 61 72 69 74 |ttle.Xfa|miliarit|
|00000690| 79 20 77 69 74 68 20 43 | 20 70 72 6f 67 72 61 6d |y with C| program|
|000006a0| 6d 69 6e 67 20 61 6e 64 | 20 70 72 6f 67 72 61 6d |ming and| program|
|000006b0| 20 62 75 69 6c 64 20 70 | 72 6f 63 65 64 75 72 65 | build p|rocedure|
|000006c0| 73 20 66 6f 72 20 79 6f | 75 72 20 73 79 73 74 65 |s for yo|ur syste|
|000006d0| 6d 2e 0a 58 0a 58 54 68 | 69 73 20 66 69 6c 65 20 |m..X.XTh|is file |
|000006e0| 63 6f 6e 74 61 69 6e 73 | 20 67 65 6e 65 72 61 6c |contains| general|
|000006f0| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 2c 20 74 | instruc|tions, t|
|00000700| 68 65 6e 20 73 65 63 74 | 69 6f 6e 73 20 6f 66 20 |hen sect|ions of |
|00000710| 73 70 65 63 69 66 69 63 | 20 68 69 6e 74 73 20 66 |specific| hints f|
|00000720| 6f 72 0a 58 63 65 72 74 | 61 69 6e 20 73 79 73 74 |or.Xcert|ain syst|
|00000730| 65 6d 73 2e 20 20 59 6f | 75 20 6d 61 79 20 73 61 |ems. Yo|u may sa|
|00000740| 76 65 20 79 6f 75 72 73 | 65 6c 66 20 63 6f 6e 73 |ve yours|elf cons|
|00000750| 69 64 65 72 61 62 6c 65 | 20 74 69 6d 65 20 69 66 |iderable| time if|
|00000760| 20 79 6f 75 20 73 63 61 | 6e 20 74 68 65 0a 58 77 | you sca|n the.Xw|
|00000770| 68 6f 6c 65 20 66 69 6c | 65 20 62 65 66 6f 72 65 |hole fil|e before|
|00000780| 20 73 74 61 72 74 69 6e | 67 20 74 6f 20 64 6f 20 | startin|g to do |
|00000790| 61 6e 79 74 68 69 6e 67 | 2e 0a 58 0a 58 42 65 66 |anything|..X.XBef|
|000007a0| 6f 72 65 20 69 6e 73 74 | 61 6c 6c 69 6e 67 20 74 |ore inst|alling t|
|000007b0| 68 65 20 73 6f 66 74 77 | 61 72 65 20 79 6f 75 20 |he softw|are you |
|000007c0| 6d 75 73 74 20 75 6e 70 | 61 63 6b 20 74 68 65 20 |must unp|ack the |
|000007d0| 64 69 73 74 72 69 62 75 | 74 65 64 20 73 6f 75 72 |distribu|ted sour|
|000007e0| 63 65 20 63 6f 64 65 2e | 0a 58 53 69 6e 63 65 20 |ce code.|.XSince |
|000007f0| 79 6f 75 20 61 72 65 20 | 72 65 61 64 69 6e 67 20 |you are |reading |
|00000800| 74 68 69 73 20 66 69 6c | 65 2c 20 79 6f 75 20 68 |this fil|e, you h|
|00000810| 61 76 65 20 70 72 6f 62 | 61 62 6c 79 20 61 6c 72 |ave prob|ably alr|
|00000820| 65 61 64 79 20 73 75 63 | 63 65 65 64 65 64 20 69 |eady suc|ceeded i|
|00000830| 6e 20 74 68 69 73 0a 58 | 74 61 73 6b 2e 20 20 48 |n this.X|task. H|
|00000840| 6f 77 65 76 65 72 2c 20 | 74 68 65 72 65 20 69 73 |owever, |there is|
|00000850| 20 6f 6e 65 20 70 6f 74 | 65 6e 74 69 61 6c 20 74 | one pot|ential t|
|00000860| 72 61 70 20 69 66 20 79 | 6f 75 20 61 72 65 20 6f |rap if y|ou are o|
|00000870| 6e 20 61 20 6e 6f 6e 2d | 55 6e 69 78 20 73 79 73 |n a non-|Unix sys|
|00000880| 74 65 6d 3a 0a 58 79 6f | 75 20 6d 61 79 20 6e 65 |tem:.Xyo|u may ne|
|00000890| 65 64 20 74 6f 20 63 6f | 6e 76 65 72 74 20 74 68 |ed to co|nvert th|
|000008a0| 65 73 65 20 66 69 6c 65 | 73 20 74 6f 20 74 68 65 |ese file|s to the|
|000008b0| 20 6c 6f 63 61 6c 20 73 | 74 61 6e 64 61 72 64 20 | local s|tandard |
|000008c0| 74 65 78 74 20 66 69 6c | 65 20 66 6f 72 6d 61 74 |text fil|e format|
|000008d0| 0a 58 28 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |.X(for e|xample, |
|000008e0| 69 66 20 79 6f 75 20 61 | 72 65 20 6f 6e 20 4d 53 |if you a|re on MS|
|000008f0| 2d 44 4f 53 20 79 6f 75 | 20 70 72 6f 62 61 62 6c |-DOS you| probabl|
|00000900| 79 20 68 61 76 65 20 74 | 6f 20 63 6f 6e 76 65 72 |y have t|o conver|
|00000910| 74 20 4c 46 20 65 6e 64 | 2d 6f 66 2d 6c 69 6e 65 |t LF end|-of-line|
|00000920| 0a 58 74 6f 20 43 52 2f | 4c 46 29 2e 20 20 49 66 |.Xto CR/|LF). If|
|00000930| 20 73 6f 2c 20 61 70 70 | 6c 79 20 74 68 65 20 63 | so, app|ly the c|
|00000940| 6f 6e 76 65 72 73 69 6f | 6e 20 74 6f 20 61 6c 6c |onversio|n to all|
|00000950| 20 74 68 65 20 66 69 6c | 65 73 20 45 58 43 45 50 | the fil|es EXCEP|
|00000960| 54 20 74 68 6f 73 65 20 | 77 68 6f 73 65 0a 58 6e |T those |whose.Xn|
|00000970| 61 6d 65 73 20 62 65 67 | 69 6e 20 77 69 74 68 20 |ames beg|in with |
|00000980| 22 74 65 73 74 22 2e 20 | 20 54 68 65 20 74 65 73 |"test". | The tes|
|00000990| 74 20 66 69 6c 65 73 20 | 63 6f 6e 74 61 69 6e 20 |t files |contain |
|000009a0| 62 69 6e 61 72 79 20 64 | 61 74 61 3b 20 69 66 20 |binary d|ata; if |
|000009b0| 79 6f 75 20 63 68 61 6e | 67 65 0a 58 74 68 65 6d |you chan|ge.Xthem|
|000009c0| 20 69 6e 20 61 6e 79 20 | 77 61 79 20 74 68 65 6e | in any |way then|
|000009d0| 20 74 68 65 20 73 65 6c | 66 2d 74 65 73 74 20 77 | the sel|f-test w|
|000009e0| 69 6c 6c 20 67 69 76 65 | 20 62 61 64 20 72 65 73 |ill give| bad res|
|000009f0| 75 6c 74 73 2e 0a 58 0a | 58 0a 58 53 54 45 50 20 |ults..X.|X.XSTEP |
|00000a00| 31 3a 20 50 52 45 50 41 | 52 45 20 41 20 4d 41 4b |1: PREPA|RE A MAK|
|00000a10| 45 46 49 4c 45 0a 58 3d | 3d 3d 3d 3d 3d 3d 3d 3d |EFILE.X=|========|
|00000a20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000a30| 3d 0a 58 0a 58 46 69 72 | 73 74 2c 20 73 65 6c 65 |=.X.XFir|st, sele|
|00000a40| 63 74 20 61 20 6d 61 6b | 65 66 69 6c 65 20 61 6e |ct a mak|efile an|
|00000a50| 64 20 63 6f 70 79 20 69 | 74 20 74 6f 20 22 4d 61 |d copy i|t to "Ma|
|00000a60| 6b 65 66 69 6c 65 22 20 | 28 6f 72 20 77 68 61 74 |kefile" |(or what|
|00000a70| 65 76 65 72 20 79 6f 75 | 72 20 76 65 72 73 69 6f |ever you|r versio|
|00000a80| 6e 0a 58 6f 66 20 6d 61 | 6b 65 20 75 73 65 73 20 |n.Xof ma|ke uses |
|00000a90| 61 73 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 6d |as the d|efault m|
|00000aa0| 61 6b 65 66 69 6c 65 20 | 6e 61 6d 65 3b 20 66 6f |akefile |name; fo|
|00000ab0| 72 20 65 78 61 6d 70 6c | 65 2c 20 22 6d 61 6b 65 |r exampl|e, "make|
|00000ac0| 66 69 6c 65 2e 6d 61 6b | 22 20 66 6f 72 0a 58 6f |file.mak|" for.Xo|
|00000ad0| 6c 64 20 76 65 72 73 69 | 6f 6e 73 20 6f 66 20 42 |ld versi|ons of B|
|00000ae0| 6f 72 6c 61 6e 64 20 43 | 29 2e 20 20 57 65 20 69 |orland C|). We i|
|00000af0| 6e 63 6c 75 64 65 20 73 | 65 76 65 72 61 6c 20 73 |nclude s|everal s|
|00000b00| 74 61 6e 64 61 72 64 20 | 6d 61 6b 65 66 69 6c 65 |tandard |makefile|
|00000b10| 73 20 69 6e 20 74 68 65 | 0a 58 64 69 73 74 72 69 |s in the|.Xdistri|
|00000b20| 62 75 74 69 6f 6e 3a 0a | 58 0a 58 09 6d 61 6b 65 |bution:.|X.X.make|
|00000b30| 66 69 6c 65 2e 61 6e 73 | 69 3a 09 66 6f 72 20 55 |file.ans|i:.for U|
|00000b40| 6e 69 78 20 73 79 73 74 | 65 6d 73 20 77 69 74 68 |nix syst|ems with|
|00000b50| 20 41 4e 53 49 2d 63 6f | 6d 70 61 74 69 62 6c 65 | ANSI-co|mpatible|
|00000b60| 20 43 20 63 6f 6d 70 69 | 6c 65 72 73 2e 0a 58 09 | C compi|lers..X.|
|00000b70| 6d 61 6b 65 66 69 6c 65 | 2e 75 6e 69 78 3a 09 66 |makefile|.unix:.f|
|00000b80| 6f 72 20 55 6e 69 78 20 | 73 79 73 74 65 6d 73 20 |or Unix |systems |
|00000b90| 77 69 74 68 20 6e 6f 6e | 2d 41 4e 53 49 20 43 20 |with non|-ANSI C |
|00000ba0| 63 6f 6d 70 69 6c 65 72 | 73 2e 0a 58 09 6d 61 6b |compiler|s..X.mak|
|00000bb0| 65 66 69 6c 65 2e 6d 63 | 35 3a 09 66 6f 72 20 4d |efile.mc|5:.for M|
|00000bc0| 69 63 72 6f 73 6f 66 74 | 20 43 20 35 2e 78 20 75 |icrosoft| C 5.x u|
|00000bd0| 6e 64 65 72 20 4d 53 2d | 44 4f 53 2e 0a 58 09 6d |nder MS-|DOS..X.m|
|00000be0| 61 6b 65 66 69 6c 65 2e | 6d 63 36 3a 09 66 6f 72 |akefile.|mc6:.for|
|00000bf0| 20 4d 69 63 72 6f 73 6f | 66 74 20 43 20 36 2e 78 | Microso|ft C 6.x|
|00000c00| 20 61 6e 64 20 75 70 20 | 75 6e 64 65 72 20 4d 53 | and up |under MS|
|00000c10| 2d 44 4f 53 2e 0a 58 09 | 6d 61 6b 65 66 69 6c 65 |-DOS..X.|makefile|
|00000c20| 2e 62 63 63 3a 09 66 6f | 72 20 42 6f 72 6c 61 6e |.bcc:.fo|r Borlan|
|00000c30| 64 20 43 20 28 54 75 72 | 62 6f 20 43 29 20 75 6e |d C (Tur|bo C) un|
|00000c40| 64 65 72 20 4d 53 2d 44 | 4f 53 2e 0a 58 09 6d 61 |der MS-D|OS..X.ma|
|00000c50| 6b 65 66 69 6c 65 2e 6d | 61 6e 78 3a 09 66 6f 72 |kefile.m|anx:.for|
|00000c60| 20 4d 61 6e 78 20 41 7a | 74 65 63 20 43 20 6f 6e | Manx Az|tec C on|
|00000c70| 20 41 6d 69 67 61 73 2e | 0a 58 09 6d 61 6b 65 66 | Amigas.|.X.makef|
|00000c80| 69 6c 65 2e 73 61 73 3a | 09 66 6f 72 20 53 41 53 |ile.sas:|.for SAS|
|00000c90| 20 43 20 6f 6e 20 41 6d | 69 67 61 73 2e 0a 58 09 | C on Am|igas..X.|
|00000ca0| 6d 61 6b 63 6a 70 65 67 | 2e 73 74 3a 09 70 72 6f |makcjpeg|.st:.pro|
|00000cb0| 6a 65 63 74 20 66 69 6c | 65 20 66 6f 72 20 41 74 |ject fil|e for At|
|00000cc0| 61 72 69 20 53 54 2f 53 | 54 45 2f 54 54 20 50 75 |ari ST/S|TE/TT Pu|
|00000cd0| 72 65 20 43 20 6f 72 20 | 54 75 72 62 6f 20 43 2e |re C or |Turbo C.|
|00000ce0| 0a 58 09 6d 61 6b 64 6a | 70 65 67 2e 73 74 3a 09 |.X.makdj|peg.st:.|
|00000cf0| 70 72 6f 6a 65 63 74 20 | 66 69 6c 65 20 66 6f 72 |project |file for|
|00000d00| 20 41 74 61 72 69 20 53 | 54 2f 53 54 45 2f 54 54 | Atari S|T/STE/TT|
|00000d10| 20 50 75 72 65 20 43 20 | 6f 72 20 54 75 72 62 6f | Pure C |or Turbo|
|00000d20| 20 43 2e 0a 58 09 6d 61 | 6b 6c 6a 70 65 67 2e 73 | C..X.ma|kljpeg.s|
|00000d30| 74 3a 09 70 72 6f 6a 65 | 63 74 20 66 69 6c 65 20 |t:.proje|ct file |
|00000d40| 66 6f 72 20 41 74 61 72 | 69 20 53 54 2f 53 54 45 |for Atar|i ST/STE|
|00000d50| 2f 54 54 20 50 75 72 65 | 20 43 20 6f 72 20 54 75 |/TT Pure| C or Tu|
|00000d60| 72 62 6f 20 43 2e 0a 58 | 09 6d 61 6b 65 66 69 6c |rbo C..X|.makefil|
|00000d70| 65 2e 6d 6d 73 3a 09 66 | 6f 72 20 56 41 58 2f 56 |e.mms:.f|or VAX/V|
|00000d80| 4d 53 20 73 79 73 74 65 | 6d 73 20 77 69 74 68 20 |MS syste|ms with |
|00000d90| 4d 4d 53 2e 0a 58 09 6d | 61 6b 65 66 69 6c 65 2e |MMS..X.m|akefile.|
|00000da0| 76 6d 73 3a 09 66 6f 72 | 20 56 41 58 2f 56 4d 53 |vms:.for| VAX/VMS|
|00000db0| 20 73 79 73 74 65 6d 73 | 20 77 69 74 68 6f 75 74 | systems| without|
|00000dc0| 20 4d 4d 53 2e 0a 58 0a | 58 49 66 20 79 6f 75 20 | MMS..X.|XIf you |
|00000dd0| 64 6f 6e 27 74 20 73 65 | 65 20 61 20 6d 61 6b 65 |don't se|e a make|
|00000de0| 66 69 6c 65 20 66 6f 72 | 20 79 6f 75 72 20 73 79 |file for| your sy|
|00000df0| 73 74 65 6d 2c 20 77 65 | 20 72 65 63 6f 6d 6d 65 |stem, we| recomme|
|00000e00| 6e 64 20 73 74 61 72 74 | 69 6e 67 20 66 72 6f 6d |nd start|ing from|
|00000e10| 20 65 69 74 68 65 72 0a | 58 6d 61 6b 65 66 69 6c | either.|Xmakefil|
|00000e20| 65 2e 61 6e 73 69 20 6f | 72 20 6d 61 6b 65 66 69 |e.ansi o|r makefi|
|00000e30| 6c 65 2e 75 6e 69 78 2c | 20 64 65 70 65 6e 64 69 |le.unix,| dependi|
|00000e40| 6e 67 20 6f 6e 20 77 68 | 65 74 68 65 72 20 79 6f |ng on wh|ether yo|
|00000e50| 75 72 20 63 6f 6d 70 69 | 6c 65 72 20 61 63 63 65 |ur compi|ler acce|
|00000e60| 70 74 73 0a 58 41 4e 53 | 49 20 43 20 6f 72 20 6e |pts.XANS|I C or n|
|00000e70| 6f 74 2e 20 20 41 63 74 | 75 61 6c 6c 79 20 79 6f |ot. Act|ually yo|
|00000e80| 75 20 73 68 6f 75 6c 64 | 20 73 74 61 72 74 20 77 |u should| start w|
|00000e90| 69 74 68 20 6d 61 6b 65 | 66 69 6c 65 2e 61 6e 73 |ith make|file.ans|
|00000ea0| 69 20 77 68 65 6e 65 76 | 65 72 20 79 6f 75 72 0a |i whenev|er your.|
|00000eb0| 58 63 6f 6d 70 69 6c 65 | 72 20 73 75 70 70 6f 72 |Xcompile|r suppor|
|00000ec0| 74 73 20 41 4e 53 49 2d | 73 74 79 6c 65 20 66 75 |ts ANSI-|style fu|
|00000ed0| 6e 63 74 69 6f 6e 20 64 | 65 66 69 6e 69 74 69 6f |nction d|efinitio|
|00000ee0| 6e 73 3b 20 79 6f 75 20 | 64 6f 6e 27 74 20 6e 65 |ns; you |don't ne|
|00000ef0| 65 64 20 66 75 6c 6c 20 | 41 4e 53 49 0a 58 63 6f |ed full |ANSI.Xco|
|00000f00| 6d 70 61 74 69 62 69 6c | 69 74 79 2e 20 20 54 68 |mpatibil|ity. Th|
|00000f10| 65 20 64 69 66 66 65 72 | 65 6e 63 65 20 62 65 74 |e differ|ence bet|
|00000f20| 77 65 65 6e 20 74 68 65 | 20 74 77 6f 20 6d 61 6b |ween the| two mak|
|00000f30| 65 66 69 6c 65 73 20 69 | 73 20 74 68 61 74 20 6d |efiles i|s that m|
|00000f40| 61 6b 65 66 69 6c 65 2e | 75 6e 69 78 0a 58 70 72 |akefile.|unix.Xpr|
|00000f50| 65 70 72 6f 63 65 73 73 | 65 73 20 74 68 65 20 73 |eprocess|es the s|
|00000f60| 6f 75 72 63 65 20 63 6f | 64 65 20 74 6f 20 63 6f |ource co|de to co|
|00000f70| 6e 76 65 72 74 20 66 75 | 6e 63 74 69 6f 6e 20 64 |nvert fu|nction d|
|00000f80| 65 66 69 6e 69 74 69 6f | 6e 73 20 74 6f 20 6f 6c |efinitio|ns to ol|
|00000f90| 64 2d 73 74 79 6c 65 20 | 43 2e 0a 58 28 4f 75 72 |d-style |C..X(Our|
|00000fa0| 20 74 68 61 6e 6b 73 20 | 74 6f 20 50 65 74 65 72 | thanks |to Peter|
|00000fb0| 20 44 65 75 74 73 63 68 | 20 6f 66 20 41 6c 61 64 | Deutsch| of Alad|
|00000fc0| 64 69 6e 20 45 6e 74 65 | 72 70 72 69 73 65 73 20 |din Ente|rprises |
|00000fd0| 66 6f 72 20 74 68 65 20 | 61 6e 73 69 32 6b 6e 72 |for the |ansi2knr|
|00000fe0| 20 70 72 6f 67 72 61 6d | 2e 29 0a 58 0a 58 49 66 | program|.).X.XIf|
|00000ff0| 20 79 6f 75 20 64 6f 6e | 27 74 20 6b 6e 6f 77 20 | you don|'t know |
|00001000| 77 68 65 74 68 65 72 20 | 79 6f 75 72 20 63 6f 6d |whether |your com|
|00001010| 70 69 6c 65 72 20 73 75 | 70 70 6f 72 74 73 20 41 |piler su|pports A|
|00001020| 4e 53 49 2d 73 74 79 6c | 65 20 66 75 6e 63 74 69 |NSI-styl|e functi|
|00001030| 6f 6e 0a 58 64 65 66 69 | 6e 69 74 69 6f 6e 73 2c |on.Xdefi|nitions,|
|00001040| 20 74 68 65 6e 20 74 61 | 6b 65 20 61 20 6c 6f 6f | then ta|ke a loo|
|00001050| 6b 20 61 74 20 63 6b 63 | 6f 6e 66 69 67 2e 63 2e |k at ckc|onfig.c.|
|00001060| 20 20 49 74 20 69 73 20 | 61 20 74 65 73 74 20 70 | It is |a test p|
|00001070| 72 6f 67 72 61 6d 20 74 | 68 61 74 20 77 69 6c 6c |rogram t|hat will|
|00001080| 0a 58 68 65 6c 70 20 79 | 6f 75 20 66 69 67 75 72 |.Xhelp y|ou figur|
|00001090| 65 20 6f 75 74 20 74 68 | 69 73 20 66 61 63 74 2c |e out th|is fact,|
|000010a0| 20 61 73 20 77 65 6c 6c | 20 61 73 20 73 6f 6d 65 | as well| as some|
|000010b0| 20 6f 74 68 65 72 20 66 | 61 63 74 73 20 79 6f 75 | other f|acts you|
|000010c0| 27 6c 6c 20 6e 65 65 64 | 20 69 6e 0a 58 6c 61 74 |'ll need| in.Xlat|
|000010d0| 65 72 20 73 74 65 70 73 | 2e 20 20 59 6f 75 20 6d |er steps|. You m|
|000010e0| 75 73 74 20 63 6f 6d 70 | 69 6c 65 20 61 6e 64 20 |ust comp|ile and |
|000010f0| 65 78 65 63 75 74 65 20 | 63 6b 63 6f 6e 66 69 67 |execute |ckconfig|
|00001100| 2e 63 20 62 79 20 68 61 | 6e 64 3b 20 74 68 65 20 |.c by ha|nd; the |
|00001110| 6d 61 6b 65 66 69 6c 65 | 73 0a 58 64 6f 6e 27 74 |makefile|s.Xdon't|
|00001120| 20 70 72 6f 76 69 64 65 | 20 61 6e 79 20 73 75 70 | provide| any sup|
|00001130| 70 6f 72 74 20 66 6f 72 | 20 74 68 69 73 2e 20 20 |port for| this. |
|00001140| 63 6b 63 6f 6e 66 69 67 | 2e 63 20 6d 61 79 20 6e |ckconfig|.c may n|
|00001150| 6f 74 20 63 6f 6d 70 69 | 6c 65 20 74 68 65 20 66 |ot compi|le the f|
|00001160| 69 72 73 74 20 74 72 79 | 0a 58 28 69 6e 20 66 61 |irst try|.X(in fa|
|00001170| 63 74 2c 20 74 68 65 20 | 77 68 6f 6c 65 20 69 64 |ct, the |whole id|
|00001180| 65 61 20 69 73 20 66 6f | 72 20 69 74 20 74 6f 20 |ea is fo|r it to |
|00001190| 66 61 69 6c 20 69 66 20 | 61 6e 79 74 68 69 6e 67 |fail if |anything|
|000011a0| 20 69 73 20 67 6f 69 6e | 67 20 74 6f 29 2e 20 20 | is goin|g to). |
|000011b0| 49 66 20 79 6f 75 0a 58 | 67 65 74 20 63 6f 6d 70 |If you.X|get comp|
|000011c0| 69 6c 65 20 65 72 72 6f | 72 73 2c 20 66 69 78 20 |ile erro|rs, fix |
|000011d0| 74 68 65 6d 20 62 79 20 | 65 64 69 74 69 6e 67 20 |them by |editing |
|000011e0| 63 6b 63 6f 6e 66 69 67 | 2e 63 20 61 63 63 6f 72 |ckconfig|.c accor|
|000011f0| 64 69 6e 67 20 74 6f 20 | 74 68 65 20 64 69 72 65 |ding to |the dire|
|00001200| 63 74 69 6f 6e 73 0a 58 | 67 69 76 65 6e 20 69 6e |ctions.X|given in|
|00001210| 20 63 6b 63 6f 6e 66 69 | 67 2e 63 2e 20 20 4f 6e | ckconfi|g.c. On|
|00001220| 63 65 20 79 6f 75 20 67 | 65 74 20 69 74 20 74 6f |ce you g|et it to|
|00001230| 20 72 75 6e 2c 20 73 65 | 6c 65 63 74 20 61 20 6d | run, se|lect a m|
|00001240| 61 6b 65 66 69 6c 65 20 | 61 63 63 6f 72 64 69 6e |akefile |accordin|
|00001250| 67 20 74 6f 0a 58 74 68 | 65 20 61 64 76 69 63 65 |g to.Xth|e advice|
|00001260| 20 69 74 20 70 72 69 6e | 74 73 20 6f 75 74 2c 20 | it prin|ts out, |
|00001270| 61 6e 64 20 6d 61 6b 65 | 20 61 6e 79 20 6f 74 68 |and make| any oth|
|00001280| 65 72 20 63 68 61 6e 67 | 65 73 20 69 74 20 72 65 |er chang|es it re|
|00001290| 63 6f 6d 6d 65 6e 64 73 | 2e 0a 58 0a 58 4c 6f 6f |commends|..X.XLoo|
|000012a0| 6b 20 6f 76 65 72 20 74 | 68 65 20 73 65 6c 65 63 |k over t|he selec|
|000012b0| 74 65 64 20 4d 61 6b 65 | 66 69 6c 65 20 61 6e 64 |ted Make|file and|
|000012c0| 20 61 64 6a 75 73 74 20 | 6f 70 74 69 6f 6e 73 20 | adjust |options |
|000012d0| 61 73 20 6e 65 65 64 65 | 64 2e 20 20 49 6e 20 70 |as neede|d. In p|
|000012e0| 61 72 74 69 63 75 6c 61 | 72 0a 58 79 6f 75 20 6d |articula|r.Xyou m|
|000012f0| 61 79 20 77 61 6e 74 20 | 74 6f 20 63 68 61 6e 67 |ay want |to chang|
|00001300| 65 20 74 68 65 20 43 43 | 20 61 6e 64 20 43 46 4c |e the CC| and CFL|
|00001310| 41 47 53 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 2e |AGS defi|nitions.|
|00001320| 20 20 46 6f 72 20 69 6e | 73 74 61 6e 63 65 2c 20 | For in|stance, |
|00001330| 69 66 20 79 6f 75 0a 58 | 61 72 65 20 75 73 69 6e |if you.X|are usin|
|00001340| 67 20 47 43 43 2c 20 73 | 65 74 20 43 43 3d 67 63 |g GCC, s|et CC=gc|
|00001350| 63 2e 20 20 49 66 20 79 | 6f 75 20 68 61 64 20 74 |c. If y|ou had t|
|00001360| 6f 20 75 73 65 20 61 6e | 79 20 63 6f 6d 70 69 6c |o use an|y compil|
|00001370| 65 72 20 73 77 69 74 63 | 68 65 73 20 74 6f 20 67 |er switc|hes to g|
|00001380| 65 74 0a 58 63 6b 63 6f | 6e 66 69 67 2e 63 20 74 |et.Xckco|nfig.c t|
|00001390| 6f 20 77 6f 72 6b 2c 20 | 6d 61 6b 65 20 73 75 72 |o work, |make sur|
|000013a0| 65 20 74 68 65 20 73 61 | 6d 65 20 73 77 69 74 63 |e the sa|me switc|
|000013b0| 68 65 73 20 61 72 65 20 | 69 6e 20 43 46 4c 41 47 |hes are |in CFLAG|
|000013c0| 53 2e 0a 58 0a 58 49 66 | 20 79 6f 75 20 61 72 65 |S..X.XIf| you are|
|000013d0| 20 6f 6e 20 61 20 73 79 | 73 74 65 6d 20 74 68 61 | on a sy|stem tha|
|000013e0| 74 20 64 6f 65 73 6e 27 | 74 20 75 73 65 20 6d 61 |t doesn'|t use ma|
|000013f0| 6b 65 66 69 6c 65 73 2c | 20 79 6f 75 27 6c 6c 20 |kefiles,| you'll |
|00001400| 6e 65 65 64 20 74 6f 20 | 73 65 74 20 75 70 0a 58 |need to |set up.X|
|00001410| 70 72 6f 6a 65 63 74 20 | 66 69 6c 65 73 20 28 6f |project |files (o|
|00001420| 72 20 77 68 61 74 65 76 | 65 72 20 79 6f 75 20 64 |r whatev|er you d|
|00001430| 6f 20 75 73 65 29 20 74 | 6f 20 63 6f 6d 70 69 6c |o use) t|o compil|
|00001440| 65 20 61 6c 6c 20 74 68 | 65 20 73 6f 75 72 63 65 |e all th|e source|
|00001450| 20 66 69 6c 65 73 20 61 | 6e 64 0a 58 6c 69 6e 6b | files a|nd.Xlink|
|00001460| 20 74 68 65 6d 20 69 6e | 74 6f 20 65 78 65 63 75 | them in|to execu|
|00001470| 74 61 62 6c 65 20 66 69 | 6c 65 73 20 63 6a 70 65 |table fi|les cjpe|
|00001480| 67 20 61 6e 64 20 64 6a | 70 65 67 2e 20 20 53 65 |g and dj|peg. Se|
|00001490| 65 20 74 68 65 20 66 69 | 6c 65 20 6c 69 73 74 73 |e the fi|le lists|
|000014a0| 20 69 6e 20 61 6e 79 20 | 6f 66 0a 58 74 68 65 20 | in any |of.Xthe |
|000014b0| 6d 61 6b 65 66 69 6c 65 | 73 20 74 6f 20 66 69 6e |makefile|s to fin|
|000014c0| 64 20 6f 75 74 20 77 68 | 69 63 68 20 66 69 6c 65 |d out wh|ich file|
|000014d0| 73 20 67 6f 20 69 6e 74 | 6f 20 65 61 63 68 20 70 |s go int|o each p|
|000014e0| 72 6f 67 72 61 6d 2e 20 | 20 41 73 20 61 20 6c 61 |rogram. | As a la|
|000014f0| 73 74 20 72 65 73 6f 72 | 74 2c 0a 58 79 6f 75 20 |st resor|t,.Xyou |
|00001500| 63 61 6e 20 6d 61 6b 65 | 20 61 20 62 61 74 63 68 |can make| a batch|
|00001510| 20 73 63 72 69 70 74 20 | 74 68 61 74 20 6a 75 73 | script |that jus|
|00001520| 74 20 63 6f 6d 70 69 6c | 65 73 20 65 76 65 72 79 |t compil|es every|
|00001530| 74 68 69 6e 67 20 61 6e | 64 20 6c 69 6e 6b 73 20 |thing an|d links |
|00001540| 69 74 20 61 6c 6c 0a 58 | 74 6f 67 65 74 68 65 72 |it all.X|together|
|00001550| 3b 20 6d 61 6b 65 66 69 | 6c 65 2e 76 6d 73 20 69 |; makefi|le.vms i|
|00001560| 73 20 61 6e 20 65 78 61 | 6d 70 6c 65 20 6f 66 20 |s an exa|mple of |
|00001570| 74 68 69 73 20 28 69 74 | 27 73 20 66 6f 72 20 56 |this (it|'s for V|
|00001580| 4d 53 20 73 79 73 74 65 | 6d 73 20 74 68 61 74 20 |MS syste|ms that |
|00001590| 68 61 76 65 0a 58 6e 6f | 20 6d 61 6b 65 2d 6c 69 |have.Xno| make-li|
|000015a0| 6b 65 20 75 74 69 6c 69 | 74 79 29 2e 0a 58 0a 58 |ke utili|ty)..X.X|
|000015b0| 0a 58 53 54 45 50 20 32 | 3a 20 45 44 49 54 20 4a |.XSTEP 2|: EDIT J|
|000015c0| 43 4f 4e 46 49 47 2e 48 | 0a 58 3d 3d 3d 3d 3d 3d |CONFIG.H|.X======|
|000015d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000015e0| 0a 58 0a 58 4c 6f 6f 6b | 20 6f 76 65 72 20 6a 63 |.X.XLook| over jc|
|000015f0| 6f 6e 66 69 67 2e 68 20 | 61 6e 64 20 61 64 6a 75 |onfig.h |and adju|
|00001600| 73 74 20 23 64 65 66 69 | 6e 65 73 20 74 6f 20 72 |st #defi|nes to r|
|00001610| 65 66 6c 65 63 74 20 74 | 68 65 20 70 72 6f 70 65 |eflect t|he prope|
|00001620| 72 74 69 65 73 20 6f 66 | 20 79 6f 75 72 0a 58 73 |rties of| your.Xs|
|00001630| 79 73 74 65 6d 20 61 6e | 64 20 43 20 63 6f 6d 70 |ystem an|d C comp|
|00001640| 69 6c 65 72 2e 20 20 49 | 66 20 79 6f 75 20 70 72 |iler. I|f you pr|
|00001650| 65 66 65 72 2c 20 79 6f | 75 20 63 61 6e 20 75 73 |efer, yo|u can us|
|00001660| 75 61 6c 6c 79 20 6c 65 | 61 76 65 20 6a 63 6f 6e |ually le|ave jcon|
|00001670| 66 69 67 2e 68 0a 58 75 | 6e 6d 6f 64 69 66 69 65 |fig.h.Xu|nmodifie|
|00001680| 64 20 61 6e 64 20 61 64 | 64 20 2d 44 73 79 6d 62 |d and ad|d -Dsymb|
|00001690| 6f 6c 20 73 77 69 74 63 | 68 65 73 20 74 6f 20 74 |ol switc|hes to t|
|000016a0| 68 65 20 4d 61 6b 65 66 | 69 6c 65 27 73 20 43 46 |he Makef|ile's CF|
|000016b0| 4c 41 47 53 20 64 65 66 | 69 6e 69 74 69 6f 6e 2e |LAGS def|inition.|
|000016c0| 0a 58 28 54 68 69 73 20 | 69 73 20 61 6c 72 65 61 |.X(This |is alrea|
|000016d0| 64 79 20 64 6f 6e 65 20 | 69 66 20 79 6f 75 20 75 |dy done |if you u|
|000016e0| 73 65 64 20 61 20 63 6f | 6d 70 69 6c 65 72 2d 73 |sed a co|mpiler-s|
|000016f0| 70 65 63 69 66 69 63 20 | 6d 61 6b 65 66 69 6c 65 |pecific |makefile|
|00001700| 20 69 6e 20 73 74 65 70 | 20 31 2e 29 0a 58 48 6f | in step| 1.).XHo|
|00001710| 77 65 76 65 72 2c 20 70 | 75 74 74 69 6e 67 20 74 |wever, p|utting t|
|00001720| 68 65 20 73 77 69 74 63 | 68 65 73 20 69 6e 20 74 |he switc|hes in t|
|00001730| 68 65 20 4d 61 6b 65 66 | 69 6c 65 20 69 73 20 61 |he Makef|ile is a|
|00001740| 20 62 61 64 20 69 64 65 | 61 20 69 66 20 79 6f 75 | bad ide|a if you|
|00001750| 20 61 72 65 20 67 6f 69 | 6e 67 0a 58 74 6f 20 69 | are goi|ng.Xto i|
|00001760| 6e 63 6f 72 70 6f 72 61 | 74 65 20 74 68 65 20 4a |ncorpora|te the J|
|00001770| 50 45 47 20 73 6f 66 74 | 77 61 72 65 20 69 6e 74 |PEG soft|ware int|
|00001780| 6f 20 6f 74 68 65 72 20 | 70 72 6f 67 72 61 6d 73 |o other |programs|
|00001790| 20 2d 2d 2d 20 79 6f 75 | 27 64 20 6e 65 65 64 20 | --- you|'d need |
|000017a0| 74 6f 20 69 6e 63 6c 75 | 64 65 0a 58 74 68 65 20 |to inclu|de.Xthe |
|000017b0| 73 61 6d 65 20 2d 44 20 | 73 77 69 74 63 68 65 73 |same -D |switches|
|000017c0| 20 69 6e 20 74 68 65 20 | 6f 74 68 65 72 20 70 72 | in the |other pr|
|000017d0| 6f 67 72 61 6d 73 27 20 | 4d 61 6b 65 66 69 6c 65 |ograms' |Makefile|
|000017e0| 73 2e 20 20 42 65 74 74 | 65 72 20 74 6f 20 63 68 |s. Bett|er to ch|
|000017f0| 61 6e 67 65 0a 58 6a 63 | 6f 6e 66 69 67 2e 68 2e |ange.Xjc|onfig.h.|
|00001800| 0a 58 0a 58 49 66 20 79 | 6f 75 20 68 61 76 65 20 |.X.XIf y|ou have |
|00001810| 61 6e 20 41 4e 53 49 2d | 63 6f 6d 70 6c 69 61 6e |an ANSI-|complian|
|00001820| 74 20 43 20 63 6f 6d 70 | 69 6c 65 72 2c 20 6e 6f |t C comp|iler, no|
|00001830| 20 63 68 61 6e 67 65 73 | 20 73 68 6f 75 6c 64 20 | changes| should |
|00001840| 62 65 20 6e 65 63 65 73 | 73 61 72 79 0a 58 65 78 |be neces|sary.Xex|
|00001850| 63 65 70 74 20 70 65 72 | 68 61 70 73 20 66 6f 72 |cept per|haps for|
|00001860| 20 52 49 47 48 54 5f 53 | 48 49 46 54 5f 49 53 5f | RIGHT_S|HIFT_IS_|
|00001870| 55 4e 53 49 47 4e 45 44 | 20 61 6e 64 20 54 57 4f |UNSIGNED| and TWO|
|00001880| 5f 46 49 4c 45 5f 43 4f | 4d 4d 41 4e 44 4c 49 4e |_FILE_CO|MMANDLIN|
|00001890| 45 2e 20 20 46 6f 72 0a | 58 6f 6c 64 65 72 20 63 |E. For.|Xolder c|
|000018a0| 6f 6d 70 69 6c 65 72 73 | 20 6f 74 68 65 72 20 63 |ompilers| other c|
|000018b0| 68 61 6e 67 65 73 20 6d | 61 79 20 62 65 20 6e 65 |hanges m|ay be ne|
|000018c0| 65 64 65 64 2c 20 64 65 | 70 65 6e 64 69 6e 67 20 |eded, de|pending |
|000018d0| 6f 6e 20 77 68 61 74 20 | 41 4e 53 49 20 66 65 61 |on what |ANSI fea|
|000018e0| 74 75 72 65 73 0a 58 61 | 72 65 20 73 75 70 70 6f |tures.Xa|re suppo|
|000018f0| 72 74 65 64 2e 0a 58 0a | 58 49 66 20 79 6f 75 20 |rted..X.|XIf you |
|00001900| 64 6f 6e 27 74 20 6b 6e | 6f 77 20 65 6e 6f 75 67 |don't kn|ow enoug|
|00001910| 68 20 61 62 6f 75 74 20 | 43 20 70 72 6f 67 72 61 |h about |C progra|
|00001920| 6d 6d 69 6e 67 20 74 6f | 20 75 6e 64 65 72 73 74 |mming to| underst|
|00001930| 61 6e 64 20 74 68 65 20 | 71 75 65 73 74 69 6f 6e |and the |question|
|00001940| 73 20 69 6e 0a 58 6a 63 | 6f 6e 66 69 67 2e 68 2c |s in.Xjc|onfig.h,|
|00001950| 20 74 68 65 6e 20 75 73 | 65 20 63 6b 63 6f 6e 66 | then us|e ckconf|
|00001960| 69 67 2e 63 20 74 6f 20 | 66 69 67 75 72 65 20 6f |ig.c to |figure o|
|00001970| 75 74 20 77 68 61 74 20 | 74 6f 20 63 68 61 6e 67 |ut what |to chang|
|00001980| 65 2e 20 20 28 53 65 65 | 20 64 65 73 63 72 69 70 |e. (See| descrip|
|00001990| 74 69 6f 6e 0a 58 6f 66 | 20 63 6b 63 6f 6e 66 69 |tion.Xof| ckconfi|
|000019a0| 67 2e 63 20 69 6e 20 73 | 74 65 70 20 31 2e 29 0a |g.c in s|tep 1.).|
|000019b0| 58 0a 58 41 20 6e 6f 74 | 65 20 61 62 6f 75 74 20 |X.XA not|e about |
|000019c0| 54 57 4f 5f 46 49 4c 45 | 5f 43 4f 4d 4d 41 4e 44 |TWO_FILE|_COMMAND|
|000019d0| 4c 49 4e 45 3a 20 64 65 | 66 69 6e 69 6e 67 20 74 |LINE: de|fining t|
|000019e0| 68 69 73 20 73 65 6c 65 | 63 74 73 20 74 68 65 20 |his sele|cts the |
|000019f0| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 0a 58 73 79 |command |line.Xsy|
|00001a00| 6e 74 61 78 20 69 6e 20 | 77 68 69 63 68 20 74 68 |ntax in |which th|
|00001a10| 65 20 69 6e 70 75 74 20 | 61 6e 64 20 6f 75 74 70 |e input |and outp|
|00001a20| 75 74 20 66 69 6c 65 73 | 20 61 72 65 20 62 6f 74 |ut files| are bot|
|00001a30| 68 20 6e 61 6d 65 64 20 | 6f 6e 20 74 68 65 20 63 |h named |on the c|
|00001a40| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 2e 0a 58 49 66 |ommand l|ine..XIf|
|00001a50| 20 69 74 27 73 20 6e 6f | 74 20 64 65 66 69 6e 65 | it's no|t define|
|00001a60| 64 2c 20 74 68 65 20 6f | 75 74 70 75 74 20 69 6d |d, the o|utput im|
|00001a70| 61 67 65 20 67 6f 65 73 | 20 74 6f 20 73 74 61 6e |age goes| to stan|
|00001a80| 64 61 72 64 20 6f 75 74 | 70 75 74 2c 20 61 6e 64 |dard out|put, and|
|00001a90| 20 74 68 65 20 69 6e 70 | 75 74 0a 58 63 61 6e 20 | the inp|ut.Xcan |
|00001aa0| 6f 70 74 69 6f 6e 61 6c | 6c 79 20 63 6f 6d 65 20 |optional|ly come |
|00001ab0| 66 72 6f 6d 20 73 74 61 | 6e 64 61 72 64 20 69 6e |from sta|ndard in|
|00001ac0| 70 75 74 2e 20 20 59 6f | 75 20 4d 55 53 54 20 75 |put. Yo|u MUST u|
|00001ad0| 73 65 20 74 77 6f 2d 66 | 69 6c 65 20 73 74 79 6c |se two-f|ile styl|
|00001ae0| 65 20 6f 6e 20 61 6e 79 | 0a 58 73 79 73 74 65 6d |e on any|.Xsystem|
|00001af0| 20 74 68 61 74 20 64 6f | 65 73 6e 27 74 20 63 6f | that do|esn't co|
|00001b00| 70 65 20 77 65 6c 6c 20 | 77 69 74 68 20 62 69 6e |pe well |with bin|
|00001b10| 61 72 79 20 64 61 74 61 | 20 66 65 64 20 74 68 72 |ary data| fed thr|
|00001b20| 6f 75 67 68 20 73 74 64 | 69 6e 2f 73 74 64 6f 75 |ough std|in/stdou|
|00001b30| 74 3b 20 74 68 69 73 0a | 58 69 73 20 74 72 75 65 |t; this.|Xis true|
|00001b40| 20 66 6f 72 20 6d 6f 73 | 74 20 4d 53 2d 44 4f 53 | for mos|t MS-DOS|
|00001b50| 20 63 6f 6d 70 69 6c 65 | 72 73 2c 20 66 6f 72 20 | compile|rs, for |
|00001b60| 65 78 61 6d 70 6c 65 2e | 20 20 49 66 20 79 6f 75 |example.| If you|
|00001b70| 27 72 65 20 6e 6f 74 20 | 6f 6e 20 61 20 55 6e 69 |'re not |on a Uni|
|00001b80| 78 0a 58 73 79 73 74 65 | 6d 2c 20 69 74 27 73 20 |x.Xsyste|m, it's |
|00001b90| 70 72 6f 62 61 62 6c 79 | 20 73 61 66 65 73 74 20 |probably| safest |
|00001ba0| 74 6f 20 61 73 73 75 6d | 65 20 79 6f 75 20 6e 65 |to assum|e you ne|
|00001bb0| 65 64 20 74 77 6f 2d 66 | 69 6c 65 20 73 74 79 6c |ed two-f|ile styl|
|00001bc0| 65 2e 0a 58 0a 58 0a 58 | 53 54 45 50 20 33 3a 20 |e..X.X.X|STEP 3: |
|00001bd0| 53 45 4c 45 43 54 20 53 | 59 53 54 45 4d 2d 44 45 |SELECT S|YSTEM-DE|
|00001be0| 50 45 4e 44 45 4e 54 20 | 46 49 4c 45 53 0a 58 3d |PENDENT |FILES.X=|
|00001bf0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001c00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001c10| 3d 3d 3d 3d 0a 58 0a 58 | 41 20 66 65 77 20 70 6c |====.X.X|A few pl|
|00001c20| 61 63 65 73 20 69 6e 20 | 74 68 65 20 4a 50 45 47 |aces in |the JPEG|
|00001c30| 20 73 6f 66 74 77 61 72 | 65 20 61 72 65 20 73 6f | softwar|e are so|
|00001c40| 20 73 79 73 74 65 6d 2d | 64 65 70 65 6e 64 65 6e | system-|dependen|
|00001c50| 74 20 74 68 61 74 20 77 | 65 20 68 61 76 65 20 74 |t that w|e have t|
|00001c60| 6f 0a 58 70 72 6f 76 69 | 64 65 20 73 65 76 65 72 |o.Xprovi|de sever|
|00001c70| 61 6c 20 64 69 66 66 65 | 72 65 6e 74 20 69 6d 70 |al diffe|rent imp|
|00001c80| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 73 20 61 6e 64 |lementat|ions and|
|00001c90| 20 6c 65 74 20 79 6f 75 | 20 73 65 6c 65 63 74 20 | let you| select |
|00001ca0| 74 68 65 20 6f 6e 65 20 | 79 6f 75 20 6e 65 65 64 |the one |you need|
|00001cb0| 2e 0a 58 0a 58 54 68 65 | 20 6f 6e 6c 79 20 73 79 |..X.XThe| only sy|
|00001cc0| 73 74 65 6d 2d 64 65 70 | 65 6e 64 65 6e 74 20 66 |stem-dep|endent f|
|00001cd0| 69 6c 65 20 69 6e 20 74 | 68 65 20 63 75 72 72 65 |ile in t|he curre|
|00001ce0| 6e 74 20 76 65 72 73 69 | 6f 6e 20 69 73 20 6a 6d |nt versi|on is jm|
|00001cf0| 65 6d 73 79 73 2e 63 2e | 20 20 54 68 69 73 20 66 |emsys.c.| This f|
|00001d00| 69 6c 65 0a 58 63 6f 6e | 74 72 6f 6c 73 20 75 73 |ile.Xcon|trols us|
|00001d10| 65 20 6f 66 20 74 65 6d | 70 6f 72 61 72 79 20 66 |e of tem|porary f|
|00001d20| 69 6c 65 73 20 66 6f 72 | 20 62 69 67 20 69 6d 61 |iles for| big ima|
|00001d30| 67 65 73 20 74 68 61 74 | 20 77 6f 6e 27 74 20 66 |ges that| won't f|
|00001d40| 69 74 20 69 6e 20 6d 61 | 69 6e 20 6d 65 6d 6f 72 |it in ma|in memor|
|00001d50| 79 2e 0a 58 59 6f 75 27 | 6c 6c 20 6e 6f 74 69 63 |y..XYou'|ll notic|
|00001d60| 65 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 66 69 |e there |is no fi|
|00001d70| 6c 65 20 6e 61 6d 65 64 | 20 6a 6d 65 6d 73 79 73 |le named| jmemsys|
|00001d80| 2e 63 20 69 6e 20 74 68 | 65 20 64 69 73 74 72 69 |.c in th|e distri|
|00001d90| 62 75 74 69 6f 6e 3b 20 | 79 6f 75 20 6d 75 73 74 |bution; |you must|
|00001da0| 0a 58 73 65 6c 65 63 74 | 20 6f 6e 65 20 6f 66 20 |.Xselect| one of |
|00001db0| 74 68 65 20 70 72 6f 76 | 69 64 65 64 20 76 65 72 |the prov|ided ver|
|00001dc0| 73 69 6f 6e 73 20 61 6e | 64 20 63 6f 70 79 2c 20 |sions an|d copy, |
|00001dd0| 72 65 6e 61 6d 65 2c 20 | 6f 72 20 6c 69 6e 6b 20 |rename, |or link |
|00001de0| 69 74 20 74 6f 20 6a 6d | 65 6d 73 79 73 2e 63 2e |it to jm|emsys.c.|
|00001df0| 0a 58 48 65 72 65 20 61 | 72 65 20 74 68 65 20 70 |.XHere a|re the p|
|00001e00| 72 6f 76 69 64 65 64 20 | 76 65 72 73 69 6f 6e 73 |rovided |versions|
|00001e10| 3a 0a 58 0a 58 09 6a 6d | 65 6d 61 6e 73 69 2e 63 |:.X.X.jm|emansi.c|
|00001e20| 09 54 68 69 73 20 69 73 | 20 61 20 72 65 61 73 6f |.This is| a reaso|
|00001e30| 6e 61 62 6c 79 20 70 6f | 72 74 61 62 6c 65 20 76 |nably po|rtable v|
|00001e40| 65 72 73 69 6f 6e 20 74 | 68 61 74 20 73 68 6f 75 |ersion t|hat shou|
|00001e50| 6c 64 0a 58 09 09 09 77 | 6f 72 6b 20 6f 6e 20 6d |ld.X...w|ork on m|
|00001e60| 6f 73 74 20 41 4e 53 49 | 20 61 6e 64 20 6e 65 61 |ost ANSI| and nea|
|00001e70| 72 2d 41 4e 53 49 20 43 | 20 63 6f 6d 70 69 6c 65 |r-ANSI C| compile|
|00001e80| 72 73 2e 20 20 49 74 20 | 75 73 65 73 0a 58 09 09 |rs. It |uses.X..|
|00001e90| 09 74 68 65 20 41 4e 53 | 49 2d 73 74 61 6e 64 61 |.the ANS|I-standa|
|00001ea0| 72 64 20 6c 69 62 72 61 | 72 79 20 72 6f 75 74 69 |rd libra|ry routi|
|00001eb0| 6e 65 20 74 6d 70 66 69 | 6c 65 28 29 2c 20 77 68 |ne tmpfi|le(), wh|
|00001ec0| 69 63 68 20 6e 6f 74 0a | 58 09 09 09 61 6c 6c 20 |ich not.|X...all |
|00001ed0| 6e 6f 6e 2d 41 4e 53 49 | 20 73 79 73 74 65 6d 73 |non-ANSI| systems|
|00001ee0| 20 68 61 76 65 2e 20 20 | 4f 6e 20 73 6f 6d 65 20 | have. |On some |
|00001ef0| 73 79 73 74 65 6d 73 20 | 74 6d 70 66 69 6c 65 28 |systems |tmpfile(|
|00001f00| 29 0a 58 09 09 09 6d 61 | 79 20 70 75 74 20 74 68 |).X...ma|y put th|
|00001f10| 65 20 74 65 6d 70 6f 72 | 61 72 79 20 66 69 6c 65 |e tempor|ary file|
|00001f20| 20 69 6e 20 61 20 6e 6f | 6e 2d 6f 70 74 69 6d 61 | in a no|n-optima|
|00001f30| 6c 20 6c 6f 63 61 74 69 | 6f 6e 3b 0a 58 09 09 09 |l locati|on;.X...|
|00001f40| 69 66 20 79 6f 75 20 64 | 6f 6e 27 74 20 6c 69 6b |if you d|on't lik|
|00001f50| 65 20 77 68 61 74 20 69 | 74 20 64 6f 65 73 2c 20 |e what i|t does, |
|00001f60| 75 73 65 20 6a 6d 65 6d | 6e 61 6d 65 2e 63 2e 0a |use jmem|name.c..|
|00001f70| 58 0a 58 09 6a 6d 65 6d | 6e 61 6d 65 2e 63 09 54 |X.X.jmem|name.c.T|
|00001f80| 68 69 73 20 76 65 72 73 | 69 6f 6e 20 63 6f 6e 73 |his vers|ion cons|
|00001f90| 74 72 75 63 74 73 20 74 | 68 65 20 74 65 6d 70 20 |tructs t|he temp |
|00001fa0| 66 69 6c 65 20 6e 61 6d | 65 20 62 79 20 69 74 73 |file nam|e by its|
|00001fb0| 65 6c 66 2e 0a 58 09 09 | 09 46 6f 72 20 61 6e 79 |elf..X..|.For any|
|00001fc0| 74 68 69 6e 67 20 65 78 | 63 65 70 74 20 61 20 55 |thing ex|cept a U|
|00001fd0| 6e 69 78 20 6d 61 63 68 | 69 6e 65 2c 20 79 6f 75 |nix mach|ine, you|
|00001fe0| 27 6c 6c 20 6e 65 65 64 | 20 74 6f 0a 58 09 09 09 |'ll need| to.X...|
|00001ff0| 63 6f 6e 66 69 67 75 72 | 65 20 74 68 65 20 73 65 |configur|e the se|
|00002000| 6c 65 63 74 5f 66 69 6c | 65 5f 6e 61 6d 65 28 29 |lect_fil|e_name()|
|00002010| 20 72 6f 75 74 69 6e 65 | 20 61 70 70 72 6f 70 72 | routine| appropr|
|00002020| 69 61 74 65 6c 79 3b 0a | 58 09 09 09 73 65 65 20 |iately;.|X...see |
|00002030| 74 68 65 20 63 6f 6d 6d | 65 6e 74 73 20 6e 65 61 |the comm|ents nea|
|00002040| 72 20 74 68 65 20 68 65 | 61 64 20 6f 66 20 6a 6d |r the he|ad of jm|
|00002050| 65 6d 6e 61 6d 65 2e 63 | 2e 0a 58 09 09 09 49 66 |emname.c|..X...If|
|00002060| 20 79 6f 75 20 75 73 65 | 20 74 68 69 73 20 76 65 | you use| this ve|
|00002070| 72 73 69 6f 6e 2c 20 64 | 65 66 69 6e 65 20 4e 45 |rsion, d|efine NE|
|00002080| 45 44 5f 53 49 47 4e 41 | 4c 5f 43 41 54 43 48 45 |ED_SIGNA|L_CATCHE|
|00002090| 52 0a 58 09 09 09 69 6e | 20 6a 63 6f 6e 66 69 67 |R.X...in| jconfig|
|000020a0| 2e 68 20 6f 72 20 69 6e | 20 74 68 65 20 4d 61 6b |.h or in| the Mak|
|000020b0| 65 66 69 6c 65 20 74 6f | 20 6d 61 6b 65 20 73 75 |efile to| make su|
|000020c0| 72 65 20 74 68 65 20 74 | 65 6d 70 0a 58 09 09 09 |re the t|emp.X...|
|000020d0| 66 69 6c 65 73 20 61 72 | 65 20 72 65 6d 6f 76 65 |files ar|e remove|
|000020e0| 64 20 69 66 20 74 68 65 | 20 70 72 6f 67 72 61 6d |d if the| program|
|000020f0| 20 69 73 20 61 62 6f 72 | 74 65 64 2e 0a 58 0a 58 | is abor|ted..X.X|
|00002100| 09 6a 6d 65 6d 6e 6f 62 | 73 2e 63 09 28 54 68 61 |.jmemnob|s.c.(Tha|
|00002110| 74 20 73 74 61 6e 64 73 | 20 66 6f 72 20 4e 6f 20 |t stands| for No |
|00002120| 42 61 63 6b 69 6e 67 20 | 53 74 6f 72 65 20 3a 2d |Backing |Store :-|
|00002130| 29 2e 20 20 54 68 69 73 | 20 77 69 6c 6c 0a 58 09 |). This| will.X.|
|00002140| 09 09 63 6f 6d 70 69 6c | 65 20 6f 6e 20 61 6c 6d |..compil|e on alm|
|00002150| 6f 73 74 20 61 6e 79 20 | 73 79 73 74 65 6d 2c 20 |ost any |system, |
|00002160| 62 75 74 20 69 74 20 61 | 73 73 75 6d 65 73 20 79 |but it a|ssumes y|
|00002170| 6f 75 0a 58 09 09 09 68 | 61 76 65 20 65 6e 6f 75 |ou.X...h|ave enou|
|00002180| 67 68 20 6d 61 69 6e 20 | 6d 65 6d 6f 72 79 20 6f |gh main |memory o|
|00002190| 72 20 76 69 72 74 75 61 | 6c 20 6d 65 6d 6f 72 79 |r virtua|l memory|
|000021a0| 20 74 6f 20 68 6f 6c 64 | 0a 58 09 09 09 74 68 65 | to hold|.X...the|
|000021b0| 20 62 69 67 67 65 73 74 | 20 69 6d 61 67 65 73 20 | biggest| images |
|000021c0| 79 6f 75 20 6e 65 65 64 | 20 74 6f 20 77 6f 72 6b |you need| to work|
|000021d0| 20 77 69 74 68 2e 0a 58 | 0a 58 09 6a 6d 65 6d 64 | with..X|.X.jmemd|
|000021e0| 6f 73 2e 63 09 54 68 69 | 73 20 73 68 6f 75 6c 64 |os.c.Thi|s should|
|000021f0| 20 62 65 20 75 73 65 64 | 20 69 6e 20 6d 6f 73 74 | be used| in most|
|00002200| 20 4d 53 2d 44 4f 53 20 | 69 6e 73 74 61 6c 6c 61 | MS-DOS |installa|
|00002210| 74 69 6f 6e 73 3b 20 73 | 65 65 0a 58 09 09 09 74 |tions; s|ee.X...t|
|00002220| 68 65 20 73 79 73 74 65 | 6d 2d 73 70 65 63 69 66 |he syste|m-specif|
|00002230| 69 63 20 6e 6f 74 65 73 | 20 61 62 6f 75 74 20 4d |ic notes| about M|
|00002240| 53 2d 44 4f 53 20 66 6f | 72 20 6d 6f 72 65 20 69 |S-DOS fo|r more i|
|00002250| 6e 66 6f 2e 0a 58 09 09 | 09 49 4d 50 4f 52 54 41 |nfo..X..|.IMPORTA|
|00002260| 4e 54 3a 20 69 66 20 79 | 6f 75 20 75 73 65 20 74 |NT: if y|ou use t|
|00002270| 68 69 73 2c 20 61 6c 73 | 6f 20 63 6f 70 79 20 6a |his, als|o copy j|
|00002280| 6d 65 6d 64 6f 73 2e 68 | 20 74 6f 0a 58 09 09 09 |memdos.h| to.X...|
|00002290| 6a 6d 65 6d 73 79 73 2e | 68 2c 20 72 65 70 6c 61 |jmemsys.|h, repla|
|000022a0| 63 69 6e 67 20 74 68 65 | 20 73 74 61 6e 64 61 72 |cing the| standar|
|000022b0| 64 20 76 65 72 73 69 6f | 6e 2e 20 20 41 4c 53 4f |d versio|n. ALSO|
|000022c0| 2c 0a 58 09 09 09 69 6e | 63 6c 75 64 65 20 74 68 |,.X...in|clude th|
|000022d0| 65 20 61 73 73 65 6d 62 | 6c 79 20 66 69 6c 65 20 |e assemb|ly file |
|000022e0| 6a 6d 65 6d 64 6f 73 61 | 2e 61 73 6d 20 69 6e 20 |jmemdosa|.asm in |
|000022f0| 74 68 65 20 70 72 6f 67 | 72 61 6d 73 2e 0a 58 09 |the prog|rams..X.|
|00002300| 09 09 28 54 68 69 73 20 | 6c 61 73 74 20 69 73 20 |..(This |last is |
|00002310| 61 6c 72 65 61 64 79 20 | 64 6f 6e 65 20 69 66 20 |already |done if |
|00002320| 79 6f 75 20 75 73 65 64 | 20 6f 6e 65 20 6f 66 20 |you used| one of |
|00002330| 74 68 65 0a 58 09 09 09 | 73 75 70 70 6c 69 65 64 |the.X...|supplied|
|00002340| 20 4d 53 2d 44 4f 53 2d | 73 70 65 63 69 66 69 63 | MS-DOS-|specific|
|00002350| 20 6d 61 6b 65 66 69 6c | 65 73 2e 29 0a 58 0a 58 | makefil|es.).X.X|
|00002360| 49 66 20 79 6f 75 20 68 | 61 76 65 20 70 6c 65 6e |If you h|ave plen|
|00002370| 74 79 20 6f 66 20 28 72 | 65 61 6c 20 6f 72 20 76 |ty of (r|eal or v|
|00002380| 69 72 74 75 61 6c 29 20 | 6d 61 69 6e 20 6d 65 6d |irtual) |main mem|
|00002390| 6f 72 79 2c 20 6a 75 73 | 74 20 75 73 65 20 6a 6d |ory, jus|t use jm|
|000023a0| 65 6d 6e 6f 62 73 2e 63 | 2e 0a 58 22 50 6c 65 6e |emnobs.c|..X"Plen|
|000023b0| 74 79 22 20 6d 65 61 6e | 73 20 61 74 20 6c 65 61 |ty" mean|s at lea|
|000023c0| 73 74 20 74 65 6e 20 62 | 79 74 65 73 20 66 6f 72 |st ten b|ytes for|
|000023d0| 20 65 76 65 72 79 20 70 | 69 78 65 6c 20 69 6e 20 | every p|ixel in |
|000023e0| 74 68 65 20 6c 61 72 67 | 65 73 74 20 69 6d 61 67 |the larg|est imag|
|000023f0| 65 73 0a 58 79 6f 75 20 | 70 6c 61 6e 20 74 6f 20 |es.Xyou |plan to |
|00002400| 70 72 6f 63 65 73 73 2c | 20 73 6f 20 61 20 6c 6f |process,| so a lo|
|00002410| 74 20 6f 66 20 73 79 73 | 74 65 6d 73 20 64 6f 6e |t of sys|tems don|
|00002420| 27 74 20 6d 65 65 74 20 | 74 68 69 73 20 63 72 69 |'t meet |this cri|
|00002430| 74 65 72 69 6f 6e 2e 0a | 58 49 66 20 79 6f 75 72 |terion..|XIf your|
|00002440| 73 20 64 6f 65 73 6e 27 | 74 2c 20 74 72 79 20 6a |s doesn'|t, try j|
|00002450| 6d 65 6d 61 6e 73 69 2e | 63 20 66 69 72 73 74 2e |memansi.|c first.|
|00002460| 20 20 49 66 20 74 68 61 | 74 20 64 6f 65 73 6e 27 | If tha|t doesn'|
|00002470| 74 20 63 6f 6d 70 69 6c | 65 2c 20 79 6f 75 27 6c |t compil|e, you'l|
|00002480| 6c 20 68 61 76 65 0a 58 | 74 6f 20 75 73 65 20 6a |l have.X|to use j|
|00002490| 6d 65 6d 6e 61 6d 65 2e | 63 3b 20 62 65 20 73 75 |memname.|c; be su|
|000024a0| 72 65 20 74 6f 20 61 64 | 6a 75 73 74 20 73 65 6c |re to ad|just sel|
|000024b0| 65 63 74 5f 66 69 6c 65 | 5f 6e 61 6d 65 28 29 20 |ect_file|_name() |
|000024c0| 66 6f 72 20 6c 6f 63 61 | 6c 20 63 6f 6e 64 69 74 |for loca|l condit|
|000024d0| 69 6f 6e 73 2e 0a 58 59 | 6f 75 20 6d 61 79 20 61 |ions..XY|ou may a|
|000024e0| 6c 73 6f 20 6e 65 65 64 | 20 74 6f 20 63 68 61 6e |lso need| to chan|
|000024f0| 67 65 20 75 6e 6c 69 6e | 6b 28 29 20 74 6f 20 72 |ge unlin|k() to r|
|00002500| 65 6d 6f 76 65 28 29 20 | 69 6e 20 63 6c 6f 73 65 |emove() |in close|
|00002510| 5f 62 61 63 6b 69 6e 67 | 5f 73 74 6f 72 65 28 29 |_backing|_store()|
|00002520| 2e 0a 58 0a 58 45 78 63 | 65 70 74 20 77 69 74 68 |..X.XExc|ept with|
|00002530| 20 6a 6d 65 6d 6e 6f 62 | 73 2e 63 2c 20 79 6f 75 | jmemnob|s.c, you|
|00002540| 20 6e 65 65 64 20 74 6f | 20 61 64 6a 75 73 74 20 | need to| adjust |
|00002550| 74 68 65 20 23 64 65 66 | 69 6e 65 20 44 45 46 41 |the #def|ine DEFA|
|00002560| 55 4c 54 5f 4d 41 58 5f | 4d 45 4d 20 74 6f 20 61 |ULT_MAX_|MEM to a|
|00002570| 0a 58 72 65 61 73 6f 6e | 61 62 6c 65 20 76 61 6c |.Xreason|able val|
|00002580| 75 65 20 66 6f 72 20 79 | 6f 75 72 20 73 79 73 74 |ue for y|our syst|
|00002590| 65 6d 20 28 65 69 74 68 | 65 72 20 62 79 20 65 64 |em (eith|er by ed|
|000025a0| 69 74 69 6e 67 20 6a 6d | 65 6d 73 79 73 2e 63 2c |iting jm|emsys.c,|
|000025b0| 20 6f 72 20 62 79 20 61 | 64 64 69 6e 67 0a 58 61 | or by a|dding.Xa|
|000025c0| 20 2d 44 20 73 77 69 74 | 63 68 20 74 6f 20 74 68 | -D swit|ch to th|
|000025d0| 65 20 4d 61 6b 65 66 69 | 6c 65 29 2e 20 20 54 68 |e Makefi|le). Th|
|000025e0| 69 73 20 76 61 6c 75 65 | 20 6c 69 6d 69 74 73 20 |is value| limits |
|000025f0| 74 68 65 20 61 6d 6f 75 | 6e 74 20 6f 66 20 64 61 |the amou|nt of da|
|00002600| 74 61 20 73 70 61 63 65 | 20 74 68 65 0a 58 70 72 |ta space| the.Xpr|
|00002610| 6f 67 72 61 6d 20 77 69 | 6c 6c 20 61 74 74 65 6d |ogram wi|ll attem|
|00002620| 70 74 20 74 6f 20 61 6c | 6c 6f 63 61 74 65 2e 20 |pt to al|locate. |
|00002630| 20 43 6f 64 65 20 61 6e | 64 20 73 74 61 74 69 63 | Code an|d static|
|00002640| 20 64 61 74 61 20 73 70 | 61 63 65 20 69 73 6e 27 | data sp|ace isn'|
|00002650| 74 20 63 6f 75 6e 74 65 | 64 2c 0a 58 73 6f 20 74 |t counte|d,.Xso t|
|00002660| 68 65 20 61 63 74 75 61 | 6c 20 6d 65 6d 6f 72 79 |he actua|l memory|
|00002670| 20 6e 65 65 64 73 20 66 | 6f 72 20 63 6a 70 65 67 | needs f|or cjpeg|
|00002680| 20 6f 72 20 64 6a 70 65 | 67 20 61 72 65 20 74 79 | or djpe|g are ty|
|00002690| 70 69 63 61 6c 6c 79 20 | 31 30 30 20 74 6f 20 31 |pically |100 to 1|
|000026a0| 35 30 4b 62 20 6d 6f 72 | 65 0a 58 74 68 61 6e 20 |50Kb mor|e.Xthan |
|000026b0| 74 68 65 20 6d 61 78 2d | 6d 65 6d 6f 72 79 20 73 |the max-|memory s|
|000026c0| 65 74 74 69 6e 67 2e 20 | 20 4c 61 72 67 65 72 20 |etting. | Larger |
|000026d0| 6d 61 78 2d 6d 65 6d 6f | 72 79 20 73 65 74 74 69 |max-memo|ry setti|
|000026e0| 6e 67 73 20 72 65 64 75 | 63 65 20 74 68 65 20 61 |ngs redu|ce the a|
|000026f0| 6d 6f 75 6e 74 20 6f 66 | 0a 58 49 2f 4f 20 6e 65 |mount of|.XI/O ne|
|00002700| 65 64 65 64 20 74 6f 20 | 70 72 6f 63 65 73 73 20 |eded to |process |
|00002710| 61 20 6c 61 72 67 65 20 | 69 6d 61 67 65 2c 20 62 |a large |image, b|
|00002720| 75 74 20 74 6f 6f 20 6c | 61 72 67 65 20 61 20 76 |ut too l|arge a v|
|00002730| 61 6c 75 65 20 63 61 6e | 20 72 65 73 75 6c 74 20 |alue can| result |
|00002740| 69 6e 0a 58 22 69 6e 73 | 75 66 66 69 63 69 65 6e |in.X"ins|ufficien|
|00002750| 74 20 6d 65 6d 6f 72 79 | 22 20 66 61 69 6c 75 72 |t memory|" failur|
|00002760| 65 73 2e 20 20 4f 6e 20 | 6d 6f 73 74 20 55 6e 69 |es. On |most Uni|
|00002770| 78 20 6d 61 63 68 69 6e | 65 73 20 28 61 6e 64 20 |x machin|es (and |
|00002780| 6f 74 68 65 72 20 73 79 | 73 74 65 6d 73 20 77 69 |other sy|stems wi|
|00002790| 74 68 0a 58 76 69 72 74 | 75 61 6c 20 6d 65 6d 6f |th.Xvirt|ual memo|
|000027a0| 72 79 29 2c 20 6a 75 73 | 74 20 73 65 74 20 44 45 |ry), jus|t set DE|
|000027b0| 46 41 55 4c 54 5f 4d 41 | 58 5f 4d 45 4d 20 74 6f |FAULT_MA|X_MEM to|
|000027c0| 20 73 65 76 65 72 61 6c | 20 6d 69 6c 6c 69 6f 6e | several| million|
|000027d0| 20 61 6e 64 20 66 6f 72 | 67 65 74 20 69 74 2e 0a | and for|get it..|
|000027e0| 58 41 74 20 74 68 65 20 | 6f 74 68 65 72 20 65 6e |XAt the |other en|
|000027f0| 64 20 6f 66 20 74 68 65 | 20 73 70 65 63 74 72 75 |d of the| spectru|
|00002800| 6d 2c 20 66 6f 72 20 4d | 53 2d 44 4f 53 20 6d 61 |m, for M|S-DOS ma|
|00002810| 63 68 69 6e 65 73 20 79 | 6f 75 20 70 72 6f 62 61 |chines y|ou proba|
|00002820| 62 6c 79 20 63 61 6e 27 | 74 20 67 6f 0a 58 6d 75 |bly can'|t go.Xmu|
|00002830| 63 68 20 61 62 6f 76 65 | 20 33 30 30 4b 20 74 6f |ch above| 300K to|
|00002840| 20 34 30 30 4b 2e 20 20 | 28 4f 6e 20 4d 53 2d 44 | 400K. |(On MS-D|
|00002850| 4f 53 20 74 68 65 20 76 | 61 6c 75 65 20 72 65 66 |OS the v|alue ref|
|00002860| 65 72 73 20 74 6f 20 63 | 6f 6e 76 65 6e 74 69 6f |ers to c|onventio|
|00002870| 6e 61 6c 20 6d 65 6d 6f | 72 79 3b 0a 58 65 78 74 |nal memo|ry;.Xext|
|00002880| 65 6e 64 65 64 2f 65 78 | 70 61 6e 64 65 64 20 6d |ended/ex|panded m|
|00002890| 65 6d 6f 72 79 20 69 73 | 20 68 61 6e 64 6c 65 64 |emory is| handled|
|000028a0| 20 73 65 70 61 72 61 74 | 65 6c 79 20 62 79 20 6a | separat|ely by j|
|000028b0| 6d 65 6d 64 6f 73 2e 63 | 2e 29 0a 58 0a 58 0a 58 |memdos.c|.).X.X.X|
|000028c0| 53 54 45 50 20 34 3a 20 | 4d 41 4b 45 0a 58 3d 3d |STEP 4: |MAKE.X==|
|000028d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 58 0a 58 4e 6f |========|==.X.XNo|
|000028e0| 77 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 62 65 20 |w you sh|ould be |
|000028f0| 61 62 6c 65 20 74 6f 20 | 22 6d 61 6b 65 22 20 74 |able to |"make" t|
|00002900| 68 65 20 73 6f 66 74 77 | 61 72 65 2e 0a 58 0a 58 |he softw|are..X.X|
|00002910| 49 66 20 79 6f 75 20 68 | 61 76 65 20 74 72 6f 75 |If you h|ave trou|
|00002920| 62 6c 65 20 77 69 74 68 | 20 6d 69 73 73 69 6e 67 |ble with| missing|
|00002930| 20 73 79 73 74 65 6d 20 | 69 6e 63 6c 75 64 65 20 | system |include |
|00002940| 66 69 6c 65 73 20 6f 72 | 20 69 6e 63 6c 75 73 69 |files or| inclusi|
|00002950| 6f 6e 20 6f 66 20 74 68 | 65 0a 58 77 72 6f 6e 67 |on of th|e.Xwrong|
|00002960| 20 6f 6e 65 73 2c 20 6c | 6f 6f 6b 20 61 74 20 6a | ones, l|ook at j|
|00002970| 69 6e 63 6c 75 64 65 2e | 68 20 28 6f 72 20 75 73 |include.|h (or us|
|00002980| 65 20 63 6b 63 6f 6e 66 | 69 67 2e 63 2c 20 69 66 |e ckconf|ig.c, if|
|00002990| 20 79 6f 75 20 61 72 65 | 20 6e 6f 74 20 61 20 43 | you are| not a C|
|000029a0| 20 65 78 70 65 72 74 29 | 2e 0a 58 0a 58 49 66 20 | expert)|..X.XIf |
|000029b0| 79 6f 75 72 20 63 6f 6d | 70 69 6c 65 72 20 63 6f |your com|piler co|
|000029c0| 6d 70 6c 61 69 6e 73 20 | 61 62 6f 75 74 20 62 69 |mplains |about bi|
|000029d0| 67 5f 73 61 72 72 61 79 | 5f 63 6f 6e 74 72 6f 6c |g_sarray|_control|
|000029e0| 20 61 6e 64 20 62 69 67 | 5f 62 61 72 72 61 79 5f | and big|_barray_|
|000029f0| 63 6f 6e 74 72 6f 6c 0a | 58 62 65 69 6e 67 20 75 |control.|Xbeing u|
|00002a00| 6e 64 65 66 69 6e 65 64 | 20 73 74 72 75 63 74 75 |ndefined| structu|
|00002a10| 72 65 73 2c 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |res, you| should |
|00002a20| 62 65 20 61 62 6c 65 20 | 74 6f 20 73 68 75 74 20 |be able |to shut |
|00002a30| 69 74 20 75 70 20 62 79 | 20 61 64 64 69 6e 67 0a |it up by| adding.|
|00002a40| 58 2d 44 49 4e 43 4f 4d | 50 4c 45 54 45 5f 54 59 |X-DINCOM|PLETE_TY|
|00002a50| 50 45 53 5f 42 52 4f 4b | 45 4e 20 74 6f 20 43 46 |PES_BROK|EN to CF|
|00002a60| 4c 41 47 53 20 28 6f 72 | 20 61 64 64 20 23 64 65 |LAGS (or| add #de|
|00002a70| 66 69 6e 65 20 49 4e 43 | 4f 4d 50 4c 45 54 45 5f |fine INC|OMPLETE_|
|00002a80| 54 59 50 45 53 5f 42 52 | 4f 4b 45 4e 0a 58 74 6f |TYPES_BR|OKEN.Xto|
|00002a90| 20 6a 63 6f 6e 66 69 67 | 2e 68 29 2e 20 20 49 66 | jconfig|.h). If|
|00002aa0| 20 79 6f 75 20 64 6f 6e | 27 74 20 68 61 76 65 20 | you don|'t have |
|00002ab0| 61 20 67 65 74 65 6e 76 | 28 29 20 6c 69 62 72 61 |a getenv|() libra|
|00002ac0| 72 79 20 72 6f 75 74 69 | 6e 65 2c 20 64 65 66 69 |ry routi|ne, defi|
|00002ad0| 6e 65 20 4e 4f 5f 47 45 | 54 45 4e 56 2e 0a 58 0a |ne NO_GE|TENV..X.|
|00002ae0| 58 54 68 65 72 65 20 61 | 72 65 20 61 20 66 61 69 |XThere a|re a fai|
|00002af0| 72 20 6e 75 6d 62 65 72 | 20 6f 66 20 72 6f 75 74 |r number| of rout|
|00002b00| 69 6e 65 73 20 74 68 61 | 74 20 64 6f 20 6e 6f 74 |ines tha|t do not|
|00002b10| 20 75 73 65 20 61 6c 6c | 20 6f 66 20 74 68 65 69 | use all| of thei|
|00002b20| 72 20 70 61 72 61 6d 65 | 74 65 72 73 3b 0a 58 73 |r parame|ters;.Xs|
|00002b30| 6f 6d 65 20 63 6f 6d 70 | 69 6c 65 72 73 20 77 69 |ome comp|ilers wi|
|00002b40| 6c 6c 20 69 73 73 75 65 | 20 77 61 72 6e 69 6e 67 |ll issue| warning|
|00002b50| 73 20 61 62 6f 75 74 20 | 74 68 69 73 2c 20 77 68 |s about |this, wh|
|00002b60| 69 63 68 20 79 6f 75 20 | 63 61 6e 20 69 67 6e 6f |ich you |can igno|
|00002b70| 72 65 2e 20 20 41 6e 79 | 0a 58 6f 74 68 65 72 20 |re. Any|.Xother |
|00002b80| 77 61 72 6e 69 6e 67 20 | 64 65 73 65 72 76 65 73 |warning |deserves|
|00002b90| 20 69 6e 76 65 73 74 69 | 67 61 74 69 6f 6e 2e 0a | investi|gation..|
|00002ba0| 58 0a 58 0a 58 53 54 45 | 50 20 35 3a 20 54 45 53 |X.X.XSTE|P 5: TES|
|00002bb0| 54 0a 58 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0a |T.X=====|=======.|
|00002bc0| 58 0a 58 41 73 20 61 20 | 71 75 69 63 6b 20 74 65 |X.XAs a |quick te|
|00002bd0| 73 74 20 6f 66 20 66 75 | 6e 63 74 69 6f 6e 61 6c |st of fu|nctional|
|00002be0| 69 74 79 20 77 65 27 76 | 65 20 69 6e 63 6c 75 64 |ity we'v|e includ|
|00002bf0| 65 64 20 61 20 73 6d 61 | 6c 6c 20 73 61 6d 70 6c |ed a sma|ll sampl|
|00002c00| 65 20 69 6d 61 67 65 20 | 69 6e 0a 58 73 65 76 65 |e image |in.Xseve|
|00002c10| 72 61 6c 20 66 6f 72 6d | 73 3a 0a 58 09 74 65 73 |ral form|s:.X.tes|
|00002c20| 74 6f 72 69 67 2e 6a 70 | 67 09 41 20 72 65 64 75 |torig.jp|g.A redu|
|00002c30| 63 65 64 20 73 65 63 74 | 69 6f 6e 20 6f 66 20 74 |ced sect|ion of t|
|00002c40| 68 65 20 77 65 6c 6c 2d | 6b 6e 6f 77 6e 20 4c 65 |he well-|known Le|
|00002c50| 6e 6e 61 20 70 69 63 74 | 75 72 65 2e 0a 58 09 74 |nna pict|ure..X.t|
|00002c60| 65 73 74 69 6d 67 2e 70 | 70 6d 09 54 68 65 20 6f |estimg.p|pm.The o|
|00002c70| 75 74 70 75 74 20 6f 66 | 20 64 6a 70 65 67 20 74 |utput of| djpeg t|
|00002c80| 65 73 74 6f 72 69 67 2e | 6a 70 67 0a 58 09 74 65 |estorig.|jpg.X.te|
|00002c90| 73 74 69 6d 67 2e 67 69 | 66 09 54 68 65 20 6f 75 |stimg.gi|f.The ou|
|00002ca0| 74 70 75 74 20 6f 66 20 | 64 6a 70 65 67 20 2d 67 |tput of |djpeg -g|
|00002cb0| 69 66 20 74 65 73 74 6f | 72 69 67 2e 6a 70 67 0a |if testo|rig.jpg.|
|00002cc0| 58 09 74 65 73 74 69 6d | 67 2e 6a 70 67 09 54 68 |X.testim|g.jpg.Th|
|00002cd0| 65 20 6f 75 74 70 75 74 | 20 6f 66 20 63 6a 70 65 |e output| of cjpe|
|00002ce0| 67 20 74 65 73 74 69 6d | 67 2e 70 70 6d 0a 58 28 |g testim|g.ppm.X(|
|00002cf0| 54 68 65 20 74 77 6f 20 | 2e 6a 70 67 20 66 69 6c |The two |.jpg fil|
|00002d00| 65 73 20 61 72 65 6e 27 | 74 20 69 64 65 6e 74 69 |es aren'|t identi|
|00002d10| 63 61 6c 20 73 69 6e 63 | 65 20 4a 50 45 47 20 69 |cal sinc|e JPEG i|
|00002d20| 73 20 6c 6f 73 73 79 2e | 29 20 20 49 66 20 79 6f |s lossy.|) If yo|
|00002d30| 75 20 63 61 6e 0a 58 67 | 65 6e 65 72 61 74 65 20 |u can.Xg|enerate |
|00002d40| 64 75 70 6c 69 63 61 74 | 65 73 20 6f 66 20 74 68 |duplicat|es of th|
|00002d50| 65 20 74 65 73 74 69 6d | 67 2e 2a 20 66 69 6c 65 |e testim|g.* file|
|00002d60| 73 20 74 68 65 6e 20 79 | 6f 75 20 70 72 6f 62 61 |s then y|ou proba|
|00002d70| 62 6c 79 20 68 61 76 65 | 20 77 6f 72 6b 69 6e 67 |bly have| working|
|00002d80| 0a 58 70 72 6f 67 72 61 | 6d 73 2e 0a 58 0a 58 57 |.Xprogra|ms..X.XW|
|00002d90| 69 74 68 20 6d 6f 73 74 | 20 6f 66 20 74 68 65 20 |ith most| of the |
|00002da0| 6d 61 6b 65 66 69 6c 65 | 73 2c 20 22 6d 61 6b 65 |makefile|s, "make|
|00002db0| 20 74 65 73 74 22 20 77 | 69 6c 6c 20 70 65 72 66 | test" w|ill perf|
|00002dc0| 6f 72 6d 20 74 68 65 20 | 6e 65 63 65 73 73 61 72 |orm the |necessar|
|00002dd0| 79 0a 58 63 6f 6d 70 61 | 72 69 73 6f 6e 73 2e 20 |y.Xcompa|risons. |
|00002de0| 20 49 66 20 79 6f 75 27 | 72 65 20 75 73 69 6e 67 | If you'|re using|
|00002df0| 20 61 20 6d 61 6b 65 66 | 69 6c 65 20 74 68 61 74 | a makef|ile that|
|00002e00| 20 64 6f 65 73 6e 27 74 | 20 70 72 6f 76 69 64 65 | doesn't| provide|
|00002e10| 20 74 68 69 73 20 6f 70 | 74 69 6f 6e 2c 20 72 75 | this op|tion, ru|
|00002e20| 6e 0a 58 64 6a 70 65 67 | 20 61 6e 64 20 63 6a 70 |n.Xdjpeg| and cjp|
|00002e30| 65 67 20 74 6f 20 67 65 | 6e 65 72 61 74 65 20 74 |eg to ge|nerate t|
|00002e40| 65 73 74 6f 75 74 2e 70 | 70 6d 2c 20 74 65 73 74 |estout.p|pm, test|
|00002e50| 6f 75 74 2e 67 69 66 2c | 20 61 6e 64 20 74 65 73 |out.gif,| and tes|
|00002e60| 74 6f 75 74 2e 6a 70 67 | 2c 20 74 68 65 6e 0a 58 |tout.jpg|, then.X|
|00002e70| 63 6f 6d 70 61 72 65 20 | 74 68 65 73 65 20 74 6f |compare |these to|
|00002e80| 20 74 65 73 74 69 6d 67 | 2e 2a 20 77 69 74 68 20 | testimg|.* with |
|00002e90| 77 68 61 74 65 76 65 72 | 20 62 69 6e 61 72 79 20 |whatever| binary |
|00002ea0| 66 69 6c 65 20 63 6f 6d | 70 61 72 69 73 6f 6e 20 |file com|parison |
|00002eb0| 74 6f 6f 6c 20 79 6f 75 | 20 68 61 76 65 2e 0a 58 |tool you| have..X|
|00002ec0| 54 68 65 20 66 69 6c 65 | 73 20 73 68 6f 75 6c 64 |The file|s should|
|00002ed0| 20 62 65 20 62 69 74 2d | 66 6f 72 2d 62 69 74 20 | be bit-|for-bit |
|00002ee0| 69 64 65 6e 74 69 63 61 | 6c 2e 0a 58 0a 58 49 66 |identica|l..X.XIf|
|00002ef0| 20 74 68 65 20 63 6a 70 | 65 67 20 74 65 73 74 20 | the cjp|eg test |
|00002f00| 72 75 6e 20 66 61 69 6c | 73 20 77 69 74 68 20 22 |run fail|s with "|
|00002f10| 4d 69 73 73 69 6e 67 20 | 48 75 66 66 6d 61 6e 20 |Missing |Huffman |
|00002f20| 63 6f 64 65 20 74 61 62 | 6c 65 20 65 6e 74 72 79 |code tab|le entry|
|00002f30| 22 2c 20 69 74 27 73 20 | 61 0a 58 67 6f 6f 64 20 |", it's |a.Xgood |
|00002f40| 62 65 74 20 74 68 61 74 | 20 79 6f 75 20 6e 65 65 |bet that| you nee|
|00002f50| 64 65 64 20 74 6f 20 64 | 65 66 69 6e 65 20 52 49 |ded to d|efine RI|
|00002f60| 47 48 54 5f 53 48 49 46 | 54 5f 49 53 5f 55 4e 53 |GHT_SHIF|T_IS_UNS|
|00002f70| 49 47 4e 45 44 2e 20 20 | 47 6f 20 62 61 63 6b 20 |IGNED. |Go back |
|00002f80| 74 6f 20 73 74 65 70 20 | 32 0a 58 61 6e 64 20 72 |to step |2.Xand r|
|00002f90| 75 6e 20 63 6b 63 6f 6e | 66 69 67 2e 63 2e 20 20 |un ckcon|fig.c. |
|00002fa0| 28 54 68 69 73 20 69 73 | 20 61 20 67 6f 6f 64 20 |(This is| a good |
|00002fb0| 70 6c 61 6e 20 66 6f 72 | 20 61 6e 79 20 6f 74 68 |plan for| any oth|
|00002fc0| 65 72 20 74 65 73 74 20 | 66 61 69 6c 75 72 65 2c |er test |failure,|
|00002fd0| 20 74 6f 6f 2e 29 0a 58 | 0a 58 49 66 20 79 6f 75 | too.).X|.XIf you|
|00002fe0| 72 20 63 68 6f 69 63 65 | 20 6f 66 20 6a 6d 65 6d |r choice| of jmem|
|00002ff0| 73 79 73 2e 63 20 77 61 | 73 20 61 6e 79 74 68 69 |sys.c wa|s anythi|
|00003000| 6e 67 20 6f 74 68 65 72 | 20 74 68 61 6e 20 6a 6d |ng other| than jm|
|00003010| 65 6d 6e 6f 62 73 2e 63 | 2c 20 79 6f 75 20 73 68 |emnobs.c|, you sh|
|00003020| 6f 75 6c 64 0a 58 74 65 | 73 74 20 74 68 61 74 20 |ould.Xte|st that |
|00003030| 74 65 6d 70 6f 72 61 72 | 79 2d 66 69 6c 65 20 75 |temporar|y-file u|
|00003040| 73 61 67 65 20 77 6f 72 | 6b 73 2e 20 20 54 72 79 |sage wor|ks. Try|
|00003050| 20 22 64 6a 70 65 67 20 | 2d 67 69 66 20 2d 6d 61 | "djpeg |-gif -ma|
|00003060| 78 20 30 20 74 65 73 74 | 6f 72 69 67 2e 6a 70 67 |x 0 test|orig.jpg|
|00003070| 22 0a 58 61 6e 64 20 6d | 61 6b 65 20 73 75 72 65 |".Xand m|ake sure|
|00003080| 20 69 74 73 20 6f 75 74 | 70 75 74 20 6d 61 74 63 | its out|put matc|
|00003090| 68 65 73 20 74 65 73 74 | 69 6d 67 2e 67 69 66 2e |hes test|img.gif.|
|000030a0| 20 20 49 66 20 79 6f 75 | 20 68 61 76 65 20 61 6e | If you| have an|
|000030b0| 79 20 72 65 61 6c 6c 79 | 20 6c 61 72 67 65 0a 58 |y really| large.X|
|000030c0| 69 6d 61 67 65 73 20 68 | 61 6e 64 79 2c 20 74 72 |images h|andy, tr|
|000030d0| 79 20 63 6f 6d 70 72 65 | 73 73 69 6e 67 20 74 68 |y compre|ssing th|
|000030e0| 65 6d 20 77 69 74 68 20 | 2d 6f 70 74 69 6d 69 7a |em with |-optimiz|
|000030f0| 65 20 61 6e 64 2f 6f 72 | 20 64 65 63 6f 6d 70 72 |e and/or| decompr|
|00003100| 65 73 73 69 6e 67 20 77 | 69 74 68 0a 58 2d 67 69 |essing w|ith.X-gi|
|00003110| 66 20 74 6f 20 6d 61 6b | 65 20 73 75 72 65 20 79 |f to mak|e sure y|
|00003120| 6f 75 72 20 44 45 46 41 | 55 4c 54 5f 4d 41 58 5f |our DEFA|ULT_MAX_|
|00003130| 4d 45 4d 20 73 65 74 74 | 69 6e 67 20 69 73 20 6e |MEM sett|ing is n|
|00003140| 6f 74 20 74 6f 6f 20 6c | 61 72 67 65 2e 0a 58 0a |ot too l|arge..X.|
|00003150| 58 4e 4f 54 45 3a 20 74 | 68 69 73 20 69 73 20 66 |XNOTE: t|his is f|
|00003160| 61 72 20 66 72 6f 6d 20 | 61 6e 20 65 78 68 61 75 |ar from |an exhau|
|00003170| 73 74 69 76 65 20 74 65 | 73 74 20 6f 66 20 74 68 |stive te|st of th|
|00003180| 65 20 4a 50 45 47 20 73 | 6f 66 74 77 61 72 65 3b |e JPEG s|oftware;|
|00003190| 20 73 6f 6d 65 20 6d 6f | 64 75 6c 65 73 2c 0a 58 | some mo|dules,.X|
|000031a0| 73 75 63 68 20 61 73 20 | 31 2d 70 61 73 73 20 63 |such as |1-pass c|
|000031b0| 6f 6c 6f 72 20 71 75 61 | 6e 74 69 7a 61 74 69 6f |olor qua|ntizatio|
|000031c0| 6e 2c 20 61 72 65 20 6e | 6f 74 20 65 78 65 72 63 |n, are n|ot exerc|
|000031d0| 69 73 65 64 20 61 74 20 | 61 6c 6c 2e 20 20 49 74 |ised at |all. It|
|000031e0| 27 73 20 6a 75 73 74 20 | 61 20 71 75 69 63 6b 0a |'s just |a quick.|
|000031f0| 58 74 65 73 74 20 74 6f | 20 67 69 76 65 20 79 6f |Xtest to| give yo|
|00003200| 75 20 73 6f 6d 65 20 63 | 6f 6e 66 69 64 65 6e 63 |u some c|onfidenc|
|00003210| 65 20 74 68 61 74 20 79 | 6f 75 20 68 61 76 65 6e |e that y|ou haven|
|00003220| 27 74 20 6d 69 73 73 65 | 64 20 73 6f 6d 65 74 68 |'t misse|d someth|
|00003230| 69 6e 67 20 6d 61 6a 6f | 72 2e 0a 58 0a 58 0a 58 |ing majo|r..X.X.X|
|00003240| 53 54 45 50 20 36 3a 20 | 49 4e 53 54 41 4c 4c 41 |STEP 6: |INSTALLA|
|00003250| 54 49 4f 4e 0a 58 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |TION.X==|========|
|00003260| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 58 0a 58 4f 6e |========|==.X.XOn|
|00003270| 63 65 20 79 6f 75 27 72 | 65 20 64 6f 6e 65 20 77 |ce you'r|e done w|
|00003280| 69 74 68 20 74 68 65 20 | 61 62 6f 76 65 20 73 74 |ith the |above st|
|00003290| 65 70 73 2c 20 79 6f 75 | 20 63 61 6e 20 69 6e 73 |eps, you| can ins|
|000032a0| 74 61 6c 6c 20 74 68 65 | 20 73 6f 66 74 77 61 72 |tall the| softwar|
|000032b0| 65 20 62 79 20 63 6f 70 | 79 69 6e 67 0a 58 74 68 |e by cop|ying.Xth|
|000032c0| 65 20 65 78 65 63 75 74 | 61 62 6c 65 20 66 69 6c |e execut|able fil|
|000032d0| 65 73 20 28 63 6a 70 65 | 67 20 61 6e 64 20 64 6a |es (cjpe|g and dj|
|000032e0| 70 65 67 29 20 74 6f 20 | 77 68 65 72 65 76 65 72 |peg) to |wherever|
|000032f0| 20 79 6f 75 20 6e 6f 72 | 6d 61 6c 6c 79 20 69 6e | you nor|mally in|
|00003300| 73 74 61 6c 6c 0a 58 70 | 72 6f 67 72 61 6d 73 2e |stall.Xp|rograms.|
|00003310| 20 20 4f 6e 20 55 6e 69 | 78 20 73 79 73 74 65 6d | On Uni|x system|
|00003320| 73 2c 20 79 6f 75 27 6c | 6c 20 61 6c 73 6f 20 77 |s, you'l|l also w|
|00003330| 61 6e 74 20 74 6f 20 70 | 75 74 20 63 6a 70 65 67 |ant to p|ut cjpeg|
|00003340| 2e 31 20 61 6e 64 20 64 | 6a 70 65 67 2e 31 20 69 |.1 and d|jpeg.1 i|
|00003350| 6e 20 74 68 65 0a 58 63 | 6f 72 72 65 73 70 6f 6e |n the.Xc|orrespon|
|00003360| 64 69 6e 67 20 6d 61 6e | 75 61 6c 20 64 69 72 65 |ding man|ual dire|
|00003370| 63 74 6f 72 79 2e 20 20 | 28 54 68 65 20 6d 61 6b |ctory. |(The mak|
|00003380| 65 66 69 6c 65 73 20 64 | 6f 6e 27 74 20 73 75 70 |efiles d|on't sup|
|00003390| 70 6f 72 74 20 74 68 69 | 73 20 73 74 65 70 20 73 |port thi|s step s|
|000033a0| 69 6e 63 65 0a 58 74 68 | 65 72 65 27 73 20 73 75 |ince.Xth|ere's su|
|000033b0| 63 68 20 61 20 77 69 64 | 65 20 76 61 72 69 65 74 |ch a wid|e variet|
|000033c0| 79 20 6f 66 20 69 6e 73 | 74 61 6c 6c 61 74 69 6f |y of ins|tallatio|
|000033d0| 6e 20 70 72 6f 63 65 64 | 75 72 65 73 20 6f 6e 20 |n proced|ures on |
|000033e0| 64 69 66 66 65 72 65 6e | 74 20 73 79 73 74 65 6d |differen|t system|
|000033f0| 73 2e 29 0a 58 0a 58 54 | 6f 20 6c 65 61 72 6e 20 |s.).X.XT|o learn |
|00003400| 74 6f 20 75 73 65 20 74 | 68 65 20 70 72 6f 67 72 |to use t|he progr|
|00003410| 61 6d 73 2c 20 72 65 61 | 64 20 74 68 65 20 66 69 |ams, rea|d the fi|
|00003420| 6c 65 20 55 53 41 47 45 | 20 28 6f 72 20 6d 61 6e |le USAGE| (or man|
|00003430| 75 61 6c 20 70 61 67 65 | 73 20 63 6a 70 65 67 28 |ual page|s cjpeg(|
|00003440| 31 29 0a 58 61 6e 64 20 | 64 6a 70 65 67 28 31 29 |1).Xand |djpeg(1)|
|00003450| 20 6f 6e 20 55 6e 69 78 | 29 2e 0a 58 0a 58 0a 58 | on Unix|)..X.X.X|
|00003460| 4f 50 54 49 4d 49 5a 41 | 54 49 4f 4e 0a 58 3d 3d |OPTIMIZA|TION.X==|
|00003470| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 58 0a 58 55 6e |========|==.X.XUn|
|00003480| 6c 65 73 73 20 79 6f 75 | 20 6f 77 6e 20 61 20 43 |less you| own a C|
|00003490| 72 61 79 2c 20 79 6f 75 | 27 6c 6c 20 70 72 6f 62 |ray, you|'ll prob|
|000034a0| 61 62 6c 79 20 62 65 20 | 69 6e 74 65 72 65 73 74 |ably be |interest|
|000034b0| 65 64 20 69 6e 20 6d 61 | 6b 69 6e 67 20 74 68 65 |ed in ma|king the|
|000034c0| 20 4a 50 45 47 0a 58 73 | 6f 66 74 77 61 72 65 20 | JPEG.Xs|oftware |
|000034d0| 67 6f 20 61 73 20 66 61 | 73 74 20 61 73 20 70 6f |go as fa|st as po|
|000034e0| 73 73 69 62 6c 65 2e 20 | 20 54 68 69 73 20 73 65 |ssible. | This se|
|000034f0| 63 74 69 6f 6e 20 63 6f | 76 65 72 73 20 73 6f 6d |ction co|vers som|
|00003500| 65 20 6d 61 63 68 69 6e | 65 2d 64 65 70 65 6e 64 |e machin|e-depend|
|00003510| 65 6e 74 0a 58 6f 70 74 | 69 6d 69 7a 61 74 69 6f |ent.Xopt|imizatio|
|00003520| 6e 73 20 79 6f 75 20 6d | 61 79 20 77 61 6e 74 20 |ns you m|ay want |
|00003530| 74 6f 20 74 72 79 2e 20 | 20 57 65 20 73 75 67 67 |to try. | We sugg|
|00003540| 65 73 74 20 74 68 61 74 | 20 62 65 66 6f 72 65 20 |est that| before |
|00003550| 74 72 79 69 6e 67 20 61 | 6e 79 20 6f 66 20 74 68 |trying a|ny of th|
|00003560| 69 73 2c 0a 58 79 6f 75 | 20 66 69 72 73 74 20 67 |is,.Xyou| first g|
|00003570| 65 74 20 74 68 65 20 62 | 61 73 69 63 20 69 6e 73 |et the b|asic ins|
|00003580| 74 61 6c 6c 61 74 69 6f | 6e 20 74 6f 20 70 61 73 |tallatio|n to pas|
|00003590| 73 20 74 68 65 20 73 65 | 6c 66 2d 74 65 73 74 20 |s the se|lf-test |
|000035a0| 28 73 74 65 70 20 35 20 | 61 62 6f 76 65 29 2e 0a |(step 5 |above)..|
|000035b0| 58 52 65 70 65 61 74 20 | 74 68 65 20 73 65 6c 66 |XRepeat |the self|
|000035c0| 2d 74 65 73 74 20 61 66 | 74 65 72 20 61 6e 79 20 |-test af|ter any |
|000035d0| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 20 74 6f 20 |optimiza|tion to |
|000035e0| 6d 61 6b 65 20 73 75 72 | 65 20 74 68 61 74 20 79 |make sur|e that y|
|000035f0| 6f 75 20 68 61 76 65 6e | 27 74 0a 58 62 72 6f 6b |ou haven|'t.Xbrok|
|00003600| 65 6e 20 61 6e 79 74 68 | 69 6e 67 2e 0a 58 0a 58 |en anyth|ing..X.X|
|00003610| 54 68 65 20 4a 50 45 47 | 20 44 43 54 20 72 6f 75 |The JPEG| DCT rou|
|00003620| 74 69 6e 65 73 20 70 65 | 72 66 6f 72 6d 20 61 20 |tines pe|rform a |
|00003630| 6c 6f 74 20 6f 66 20 6d | 75 6c 74 69 70 6c 69 63 |lot of m|ultiplic|
|00003640| 61 74 69 6f 6e 73 2e 20 | 20 54 68 65 73 65 20 6d |ations. | These m|
|00003650| 75 6c 74 69 70 6c 69 63 | 61 74 69 6f 6e 73 0a 58 |ultiplic|ations.X|
|00003660| 6d 75 73 74 20 79 69 65 | 6c 64 20 33 32 2d 62 69 |must yie|ld 32-bi|
|00003670| 74 20 72 65 73 75 6c 74 | 73 2c 20 62 75 74 20 6e |t result|s, but n|
|00003680| 6f 6e 65 20 6f 66 20 74 | 68 65 69 72 20 69 6e 70 |one of t|heir inp|
|00003690| 75 74 20 76 61 6c 75 65 | 73 20 61 72 65 20 6d 6f |ut value|s are mo|
|000036a0| 72 65 20 74 68 61 6e 20 | 31 36 0a 58 62 69 74 73 |re than |16.Xbits|
|000036b0| 20 77 69 64 65 2e 20 20 | 4f 6e 20 6d 61 6e 79 20 | wide. |On many |
|000036c0| 6d 61 63 68 69 6e 65 73 | 2c 20 6e 6f 74 61 62 6c |machines|, notabl|
|000036d0| 79 20 74 68 65 20 36 38 | 30 78 30 20 61 6e 64 20 |y the 68|0x0 and |
|000036e0| 38 30 78 38 36 20 43 50 | 55 73 2c 20 61 20 31 36 |80x86 CP|Us, a 16|
|000036f0| 78 31 36 3d 3e 33 32 0a | 58 62 69 74 20 6d 75 6c |x16=>32.|Xbit mul|
|00003700| 74 69 70 6c 79 20 69 6e | 73 74 72 75 63 74 69 6f |tiply in|structio|
|00003710| 6e 20 69 73 20 66 61 73 | 74 65 72 20 74 68 61 6e |n is fas|ter than|
|00003720| 20 61 20 66 75 6c 6c 20 | 33 32 78 33 32 3d 3e 33 | a full |32x32=>3|
|00003730| 32 20 62 69 74 20 6d 75 | 6c 74 69 70 6c 79 2e 0a |2 bit mu|ltiply..|
|00003740| 58 55 6e 66 6f 72 74 75 | 6e 61 74 65 6c 79 20 74 |XUnfortu|nately t|
|00003750| 68 65 72 65 20 69 73 20 | 6e 6f 20 70 6f 72 74 61 |here is |no porta|
|00003760| 62 6c 65 20 77 61 79 20 | 74 6f 20 73 70 65 63 69 |ble way |to speci|
|00003770| 66 79 20 73 75 63 68 20 | 61 20 6d 75 6c 74 69 70 |fy such |a multip|
|00003780| 6c 69 63 61 74 69 6f 6e | 20 69 6e 20 43 2c 0a 58 |lication| in C,.X|
|00003790| 62 75 74 20 73 6f 6d 65 | 20 63 6f 6d 70 69 6c 65 |but some| compile|
|000037a0| 72 73 20 63 61 6e 20 67 | 65 6e 65 72 61 74 65 20 |rs can g|enerate |
|000037b0| 6f 6e 65 20 77 68 65 6e | 20 79 6f 75 20 75 73 65 |one when| you use|
|000037c0| 20 74 68 65 20 72 69 67 | 68 74 20 63 6f 6d 62 69 | the rig|ht combi|
|000037d0| 6e 61 74 69 6f 6e 20 6f | 66 0a 58 63 61 73 74 73 |nation o|f.Xcasts|
|000037e0| 2e 20 20 53 65 65 20 74 | 68 65 20 4d 55 4c 54 49 |. See t|he MULTI|
|000037f0| 50 4c 59 20 6d 61 63 72 | 6f 20 64 65 66 69 6e 69 |PLY macr|o defini|
|00003800| 74 69 6f 6e 73 20 69 6e | 20 6a 66 77 64 64 63 74 |tions in| jfwddct|
|00003810| 2e 63 20 61 6e 64 20 6a | 72 65 76 64 63 74 2e 63 |.c and j|revdct.c|
|00003820| 2e 0a 58 49 66 20 79 6f | 75 72 20 63 6f 6d 70 69 |..XIf yo|ur compi|
|00003830| 6c 65 72 20 6d 61 6b 65 | 73 20 22 69 6e 74 22 20 |ler make|s "int" |
|00003840| 62 65 20 33 32 20 62 69 | 74 73 20 61 6e 64 20 22 |be 32 bi|ts and "|
|00003850| 73 68 6f 72 74 22 20 62 | 65 20 31 36 20 62 69 74 |short" b|e 16 bit|
|00003860| 73 2c 20 64 65 66 69 6e | 69 6e 67 0a 58 53 48 4f |s, defin|ing.XSHO|
|00003870| 52 54 78 53 48 4f 52 54 | 5f 33 32 20 69 73 20 66 |RTxSHORT|_32 is f|
|00003880| 61 69 72 6c 79 20 6c 69 | 6b 65 6c 79 20 74 6f 20 |airly li|kely to |
|00003890| 77 6f 72 6b 2e 20 20 57 | 68 65 6e 20 65 78 70 65 |work. W|hen expe|
|000038a0| 72 69 6d 65 6e 74 69 6e | 67 20 77 69 74 68 20 61 |rimentin|g with a|
|000038b0| 6c 74 65 72 6e 61 74 65 | 0a 58 64 65 66 69 6e 69 |lternate|.Xdefini|
|000038c0| 74 69 6f 6e 73 2c 20 62 | 65 20 73 75 72 65 20 74 |tions, b|e sure t|
|000038d0| 6f 20 74 65 73 74 20 6e | 6f 74 20 6f 6e 6c 79 20 |o test n|ot only |
|000038e0| 77 68 65 74 68 65 72 20 | 74 68 65 20 63 6f 64 65 |whether |the code|
|000038f0| 20 73 74 69 6c 6c 20 77 | 6f 72 6b 73 20 28 75 73 | still w|orks (us|
|00003900| 65 20 74 68 65 0a 58 73 | 65 6c 66 2d 74 65 73 74 |e the.Xs|elf-test|
|00003910| 20 73 74 65 70 29 2c 20 | 62 75 74 20 61 6c 73 6f | step), |but also|
|00003920| 20 77 68 65 74 68 65 72 | 20 69 74 20 69 73 20 61 | whether| it is a|
|00003930| 63 74 75 61 6c 6c 79 20 | 66 61 73 74 65 72 20 2d |ctually |faster -|
|00003940| 2d 2d 20 6f 6e 20 73 6f | 6d 65 20 63 6f 6d 70 69 |-- on so|me compi|
|00003950| 6c 65 72 73 2c 0a 58 61 | 6c 74 65 72 6e 61 74 65 |lers,.Xa|lternate|
|00003960| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 20 6d 61 79 | definit|ions may|
|00003970| 20 63 6f 6d 70 75 74 65 | 20 74 68 65 20 72 69 67 | compute| the rig|
|00003980| 68 74 20 61 6e 73 77 65 | 72 2c 20 79 65 74 20 62 |ht answe|r, yet b|
|00003990| 65 20 73 6c 6f 77 65 72 | 20 74 68 61 6e 20 74 68 |e slower| than th|
|000039a0| 65 0a 58 64 65 66 61 75 | 6c 74 2e 20 20 54 69 6d |e.Xdefau|lt. Tim|
|000039b0| 69 6e 67 20 63 6a 70 65 | 67 20 6f 6e 20 61 20 6c |ing cjpe|g on a l|
|000039c0| 61 72 67 65 20 50 50 4d | 20 69 6e 70 75 74 20 66 |arge PPM| input f|
|000039d0| 69 6c 65 20 69 73 20 74 | 68 65 20 62 65 73 74 20 |ile is t|he best |
|000039e0| 77 61 79 20 74 6f 20 63 | 68 65 63 6b 0a 58 74 68 |way to c|heck.Xth|
|000039f0| 69 73 2c 20 61 73 20 74 | 68 65 20 44 43 54 20 77 |is, as t|he DCT w|
|00003a00| 69 6c 6c 20 62 65 20 74 | 68 65 20 6c 61 72 67 65 |ill be t|he large|
|00003a10| 73 74 20 66 72 61 63 74 | 69 6f 6e 20 6f 66 20 74 |st fract|ion of t|
|00003a20| 68 65 20 72 75 6e 74 69 | 6d 65 20 69 6e 20 74 68 |he runti|me in th|
|00003a30| 61 74 20 6d 6f 64 65 2e | 0a 58 28 4e 6f 74 65 3a |at mode.|.X(Note:|
|00003a40| 20 73 6f 6d 65 20 6f 66 | 20 74 68 65 20 64 69 73 | some of| the dis|
|00003a50| 74 72 69 62 75 74 65 64 | 20 63 6f 6d 70 69 6c 65 |tributed| compile|
|00003a60| 72 2d 73 70 65 63 69 66 | 69 63 20 6d 61 6b 65 66 |r-specif|ic makef|
|00003a70| 69 6c 65 73 20 61 6c 72 | 65 61 64 79 20 63 6f 6e |iles alr|eady con|
|00003a80| 74 61 69 6e 0a 58 2d 44 | 20 73 77 69 74 63 68 65 |tain.X-D| switche|
|00003a90| 73 20 74 6f 20 73 65 6c | 65 63 74 20 61 6e 20 61 |s to sel|ect an a|
|00003aa0| 70 70 72 6f 70 72 69 61 | 74 65 20 4d 55 4c 54 49 |ppropria|te MULTI|
|00003ab0| 50 4c 59 20 64 65 66 69 | 6e 69 74 69 6f 6e 2e 29 |PLY defi|nition.)|
|00003ac0| 0a 58 0a 58 49 66 20 61 | 63 63 65 73 73 20 74 6f |.X.XIf a|ccess to|
|00003ad0| 20 22 73 68 6f 72 74 22 | 20 61 72 72 61 79 73 20 | "short"| arrays |
|00003ae0| 69 73 20 73 6c 6f 77 20 | 6f 6e 20 79 6f 75 72 20 |is slow |on your |
|00003af0| 6d 61 63 68 69 6e 65 2c | 20 69 74 20 6d 61 79 20 |machine,| it may |
|00003b00| 62 65 20 61 20 77 69 6e | 20 74 6f 20 64 65 66 69 |be a win| to defi|
|00003b10| 6e 65 0a 58 74 79 70 65 | 20 44 43 54 45 4c 45 4d |ne.Xtype| DCTELEM|
|00003b20| 20 61 73 20 69 6e 74 20 | 72 61 74 68 65 72 20 74 | as int |rather t|
|00003b30| 68 61 6e 20 61 73 20 4a | 43 4f 45 46 20 28 77 68 |han as J|COEF (wh|
|00003b40| 69 63 68 20 69 73 20 6e | 6f 72 6d 61 6c 6c 79 20 |ich is n|ormally |
|00003b50| 64 65 66 69 6e 65 64 20 | 61 73 20 73 68 6f 72 74 |defined |as short|
|00003b60| 29 2e 0a 58 54 68 69 73 | 20 77 69 6c 6c 20 63 61 |)..XThis| will ca|
|00003b70| 75 73 65 20 74 68 65 20 | 44 43 54 20 72 6f 75 74 |use the |DCT rout|
|00003b80| 69 6e 65 73 20 74 6f 20 | 6f 70 65 72 61 74 65 20 |ines to |operate |
|00003b90| 6f 6e 20 69 6e 74 20 61 | 72 72 61 79 73 20 69 6e |on int a|rrays in|
|00003ba0| 73 74 65 61 64 20 6f 66 | 20 73 68 6f 72 74 0a 58 |stead of| short.X|
|00003bb0| 61 72 72 61 79 73 2e 20 | 20 49 66 20 73 68 6f 72 |arrays. | If shor|
|00003bc0| 74 73 20 61 72 65 20 73 | 6c 6f 77 20 61 6e 64 20 |ts are s|low and |
|00003bd0| 79 6f 75 20 68 61 76 65 | 20 6c 6f 74 73 20 6f 66 |you have| lots of|
|00003be0| 20 6d 65 6d 6f 72 79 20 | 74 6f 20 62 75 72 6e 2c | memory |to burn,|
|00003bf0| 20 79 6f 75 20 6d 69 67 | 68 74 0a 58 65 76 65 6e | you mig|ht.Xeven|
|00003c00| 20 6d 61 6b 65 20 4a 43 | 4f 45 46 20 69 74 73 65 | make JC|OEF itse|
|00003c10| 6c 66 20 62 65 20 69 6e | 74 2e 0a 58 0a 58 49 66 |lf be in|t..X.XIf|
|00003c20| 20 79 6f 75 72 20 63 6f | 6d 70 69 6c 65 72 20 63 | your co|mpiler c|
|00003c30| 61 6e 20 63 6f 6d 70 69 | 6c 65 20 66 75 6e 63 74 |an compi|le funct|
|00003c40| 69 6f 6e 20 63 61 6c 6c | 73 20 69 6e 2d 6c 69 6e |ion call|s in-lin|
|00003c50| 65 2c 20 6d 61 6b 65 20 | 73 75 72 65 20 74 68 65 |e, make |sure the|
|00003c60| 20 49 4e 4c 49 4e 45 0a | 58 6d 61 63 72 6f 20 69 | INLINE.|Xmacro i|
|00003c70| 6e 20 6a 63 6f 6e 66 69 | 67 2e 68 20 69 73 20 64 |n jconfi|g.h is d|
|00003c80| 65 66 69 6e 65 64 20 61 | 73 20 74 68 65 20 6b 65 |efined a|s the ke|
|00003c90| 79 77 6f 72 64 20 74 68 | 61 74 20 6d 61 72 6b 73 |yword th|at marks|
|00003ca0| 20 61 20 66 75 6e 63 74 | 69 6f 6e 0a 58 69 6e 6c | a funct|ion.Xinl|
|00003cb0| 69 6e 65 2d 61 62 6c 65 | 2e 20 20 53 6f 6d 65 20 |ine-able|. Some |
|00003cc0| 63 6f 6d 70 69 6c 65 72 | 73 20 68 61 76 65 20 61 |compiler|s have a|
|00003cd0| 20 73 77 69 74 63 68 20 | 74 68 61 74 20 74 65 6c | switch |that tel|
|00003ce0| 6c 73 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 20 |ls the c|ompiler |
|00003cf0| 74 6f 20 69 6e 6c 69 6e | 65 0a 58 61 6e 79 20 66 |to inlin|e.Xany f|
|00003d00| 75 6e 63 74 69 6f 6e 20 | 69 74 20 74 68 69 6e 6b |unction |it think|
|00003d10| 73 20 69 73 20 70 72 6f | 66 69 74 61 62 6c 65 20 |s is pro|fitable |
|00003d20| 28 65 2e 67 2e 2c 20 2d | 66 69 6e 6c 69 6e 65 2d |(e.g., -|finline-|
|00003d30| 66 75 6e 63 74 69 6f 6e | 73 20 66 6f 72 20 67 63 |function|s for gc|
|00003d40| 63 29 2e 0a 58 45 6e 61 | 62 6c 69 6e 67 20 73 75 |c)..XEna|bling su|
|00003d50| 63 68 20 61 20 73 77 69 | 74 63 68 20 69 73 20 6c |ch a swi|tch is l|
|00003d60| 69 6b 65 6c 79 20 74 6f | 20 6d 61 6b 65 20 74 68 |ikely to| make th|
|00003d70| 65 20 63 6f 6d 70 69 6c | 65 64 20 63 6f 64 65 20 |e compil|ed code |
|00003d80| 62 69 67 67 65 72 20 62 | 75 74 20 66 61 73 74 65 |bigger b|ut faste|
|00003d90| 72 2e 0a 58 0a 58 49 6e | 20 67 65 6e 65 72 61 6c |r..X.XIn| general|
|00003da0| 2c 20 69 74 27 73 20 77 | 6f 72 74 68 20 74 72 79 |, it's w|orth try|
|00003db0| 69 6e 67 20 74 68 65 20 | 6d 61 78 69 6d 75 6d 20 |ing the |maximum |
|00003dc0| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 20 6c 65 76 |optimiza|tion lev|
|00003dd0| 65 6c 20 6f 66 20 79 6f | 75 72 20 63 6f 6d 70 69 |el of yo|ur compi|
|00003de0| 6c 65 72 2c 0a 58 61 6e | 64 20 65 78 70 65 72 69 |ler,.Xan|d experi|
|00003df0| 6d 65 6e 74 69 6e 67 20 | 77 69 74 68 20 61 6e 79 |menting |with any|
|00003e00| 20 6f 70 74 69 6f 6e 61 | 6c 20 6f 70 74 69 6d 69 | optiona|l optimi|
|00003e10| 7a 61 74 69 6f 6e 73 20 | 73 75 63 68 20 61 73 20 |zations |such as |
|00003e20| 6c 6f 6f 70 20 75 6e 72 | 6f 6c 6c 69 6e 67 2e 0a |loop unr|olling..|
|00003e30| 58 28 55 6e 66 6f 72 74 | 75 6e 61 74 65 6c 79 2c |X(Unfort|unately,|
|00003e40| 20 66 61 72 20 74 6f 6f | 20 6d 61 6e 79 20 63 6f | far too| many co|
|00003e50| 6d 70 69 6c 65 72 73 20 | 68 61 76 65 20 6f 70 74 |mpilers |have opt|
|00003e60| 69 6d 69 7a 65 72 20 62 | 75 67 73 20 2e 2e 2e 20 |imizer b|ugs ... |
|00003e70| 62 65 20 70 72 65 70 61 | 72 65 64 20 74 6f 0a 58 |be prepa|red to.X|
|00003e80| 62 61 63 6b 20 6f 66 66 | 20 69 66 20 74 68 65 20 |back off| if the |
|00003e90| 63 6f 64 65 20 66 61 69 | 6c 73 20 73 65 6c 66 2d |code fai|ls self-|
|00003ea0| 74 65 73 74 2e 29 20 20 | 49 66 20 79 6f 75 20 64 |test.) |If you d|
|00003eb0| 6f 20 61 6e 79 20 65 78 | 70 65 72 69 6d 65 6e 74 |o any ex|periment|
|00003ec0| 61 74 69 6f 6e 20 61 6c | 6f 6e 67 0a 58 74 68 65 |ation al|ong.Xthe|
|00003ed0| 73 65 20 6c 69 6e 65 73 | 2c 20 70 6c 65 61 73 65 |se lines|, please|
|00003ee0| 20 72 65 70 6f 72 74 20 | 74 68 65 20 6f 70 74 69 | report |the opti|
|00003ef0| 6d 61 6c 20 73 65 74 74 | 69 6e 67 73 20 74 6f 20 |mal sett|ings to |
|00003f00| 6a 70 65 67 2d 69 6e 66 | 6f 40 75 75 6e 65 74 2e |jpeg-inf|o@uunet.|
|00003f10| 75 75 2e 6e 65 74 20 73 | 6f 0a 58 77 65 20 63 61 |uu.net s|o.Xwe ca|
|00003f20| 6e 20 6d 65 6e 74 69 6f | 6e 20 74 68 65 6d 20 69 |n mentio|n them i|
|00003f30| 6e 20 66 75 74 75 72 65 | 20 72 65 6c 65 61 73 65 |n future| release|
|00003f40| 73 2e 20 20 42 65 20 73 | 75 72 65 20 74 6f 20 73 |s. Be s|ure to s|
|00003f50| 70 65 63 69 66 79 20 79 | 6f 75 72 20 6d 61 63 68 |pecify y|our mach|
|00003f60| 69 6e 65 20 61 6e 64 0a | 58 63 6f 6d 70 69 6c 65 |ine and.|Xcompile|
|00003f70| 72 20 76 65 72 73 69 6f | 6e 2e 0a 58 0a 58 0a 58 |r versio|n..X.X.X|
|00003f80| 4f 50 54 49 4f 4e 41 4c | 20 53 54 55 46 46 0a 58 |OPTIONAL| STUFF.X|
|00003f90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0a 58 |========|======.X|
|00003fa0| 0a 58 50 72 6f 67 72 65 | 73 73 20 6d 6f 6e 69 74 |.XProgre|ss monit|
|00003fb0| 6f 72 3a 0a 58 0a 58 49 | 66 20 79 6f 75 20 6c 69 |or:.X.XI|f you li|
|00003fc0| 6b 65 2c 20 79 6f 75 20 | 63 61 6e 20 23 64 65 66 |ke, you |can #def|
|00003fd0| 69 6e 65 20 50 52 4f 47 | 52 45 53 53 5f 52 45 50 |ine PROG|RESS_REP|
|00003fe0| 4f 52 54 20 28 69 6e 20 | 6a 63 6f 6e 66 69 67 2e |ORT (in |jconfig.|
|00003ff0| 68 20 6f 72 20 69 6e 20 | 74 68 65 20 4d 61 6b 65 |h or in |the Make|
|00004000| 66 69 6c 65 29 0a 58 74 | 6f 20 65 6e 61 62 6c 65 |file).Xt|o enable|
|00004010| 20 64 69 73 70 6c 61 79 | 20 6f 66 20 70 65 72 63 | display| of perc|
|00004020| 65 6e 74 2d 64 6f 6e 65 | 20 70 72 6f 67 72 65 73 |ent-done| progres|
|00004030| 73 20 72 65 70 6f 72 74 | 73 2e 20 20 54 68 65 20 |s report|s. The |
|00004040| 72 6f 75 74 69 6e 65 73 | 20 70 72 6f 76 69 64 65 |routines| provide|
|00004050| 64 20 69 6e 0a 58 6a 63 | 6d 61 69 6e 2e 63 2f 6a |d in.Xjc|main.c/j|
|00004060| 64 6d 61 69 6e 2e 63 20 | 6d 65 72 65 6c 79 20 70 |dmain.c |merely p|
|00004070| 72 69 6e 74 20 70 65 72 | 63 65 6e 74 61 67 65 73 |rint per|centages|
|00004080| 20 74 6f 20 73 74 64 65 | 72 72 2c 20 62 75 74 20 | to stde|rr, but |
|00004090| 79 6f 75 20 63 61 6e 20 | 63 75 73 74 6f 6d 69 7a |you can |customiz|
|000040a0| 65 0a 58 74 68 65 6d 20 | 74 6f 20 64 6f 20 73 6f |e.Xthem |to do so|
|000040b0| 6d 65 74 68 69 6e 67 20 | 66 61 6e 63 69 65 72 2e |mething |fancier.|
|000040c0| 0a 58 0a 58 55 74 61 68 | 20 52 4c 45 20 66 69 6c |.X.XUtah| RLE fil|
|000040d0| 65 20 66 6f 72 6d 61 74 | 20 73 75 70 70 6f 72 74 |e format| support|
|000040e0| 3a 0a 58 0a 58 57 65 20 | 64 69 73 74 72 69 62 75 |:.X.XWe |distribu|
|000040f0| 74 65 20 74 68 65 20 73 | 6f 66 74 77 61 72 65 20 |te the s|oftware |
|00004100| 77 69 74 68 20 73 75 70 | 70 6f 72 74 20 66 6f 72 |with sup|port for|
|00004110| 20 52 4c 45 20 69 6d 61 | 67 65 20 66 69 6c 65 73 | RLE ima|ge files|
|00004120| 20 28 55 74 61 68 20 52 | 61 73 74 65 72 0a 58 54 | (Utah R|aster.XT|
|00004130| 6f 6f 6c 6b 69 74 20 66 | 6f 72 6d 61 74 29 20 64 |oolkit f|ormat) d|
|00004140| 69 73 61 62 6c 65 64 2c | 20 62 65 63 61 75 73 65 |isabled,| because|
|00004150| 20 74 68 65 20 52 4c 45 | 20 73 75 70 70 6f 72 74 | the RLE| support|
|00004160| 20 77 6f 6e 27 74 20 63 | 6f 6d 70 69 6c 65 20 77 | won't c|ompile w|
|00004170| 69 74 68 6f 75 74 20 74 | 68 65 0a 58 55 74 61 68 |ithout t|he.XUtah|
|00004180| 20 6c 69 62 72 61 72 79 | 2e 20 20 49 66 20 79 6f | library|. If yo|
|00004190| 75 20 68 61 76 65 20 55 | 52 54 20 76 65 72 73 69 |u have U|RT versi|
|000041a0| 6f 6e 20 33 2e 30 2c 20 | 79 6f 75 20 63 61 6e 20 |on 3.0, |you can |
|000041b0| 65 6e 61 62 6c 65 20 52 | 4c 45 20 73 75 70 70 6f |enable R|LE suppo|
|000041c0| 72 74 20 61 73 0a 58 66 | 6f 6c 6c 6f 77 73 3a 0a |rt as.Xf|ollows:.|
|000041d0| 58 09 31 2e 20 20 23 64 | 65 66 69 6e 65 20 52 4c |X.1. #d|efine RL|
|000041e0| 45 5f 53 55 50 50 4f 52 | 54 45 44 20 69 6e 20 6a |E_SUPPOR|TED in j|
|000041f0| 63 6f 6e 66 69 67 2e 68 | 20 6f 72 20 69 6e 20 74 |config.h| or in t|
|00004200| 68 65 20 4d 61 6b 65 66 | 69 6c 65 2e 0a 58 09 32 |he Makef|ile..X.2|
|00004210| 2e 20 20 41 64 64 20 61 | 20 2d 49 20 6f 70 74 69 |. Add a| -I opti|
|00004220| 6f 6e 20 74 6f 20 43 46 | 4c 41 47 53 20 69 6e 20 |on to CF|LAGS in |
|00004230| 74 68 65 20 4d 61 6b 65 | 66 69 6c 65 20 66 6f 72 |the Make|file for|
|00004240| 20 74 68 65 20 64 69 72 | 65 63 74 6f 72 79 0a 58 | the dir|ectory.X|
|00004250| 09 20 20 20 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |. con|taining |
|00004260| 74 68 65 20 55 52 54 20 | 2e 68 20 66 69 6c 65 73 |the URT |.h files|
|00004270| 20 28 74 79 70 69 63 61 | 6c 6c 79 20 74 68 65 20 | (typica|lly the |
|00004280| 22 69 6e 63 6c 75 64 65 | 22 0a 58 09 20 20 20 20 |"include|".X. |
|00004290| 73 75 62 64 69 72 65 63 | 74 6f 72 79 20 6f 66 20 |subdirec|tory of |
|000042a0| 74 68 65 20 55 52 54 20 | 64 69 73 74 72 69 62 75 |the URT |distribu|
|000042b0| 74 69 6f 6e 29 2e 0a 58 | 09 33 2e 20 20 41 64 64 |tion)..X|.3. Add|
|000042c0| 20 2d 4c 2e 2e 2e 20 2d | 6c 72 6c 65 20 74 6f 20 | -L... -|lrle to |
|000042d0| 4c 44 4c 49 42 53 20 69 | 6e 20 74 68 65 20 4d 61 |LDLIBS i|n the Ma|
|000042e0| 6b 65 66 69 6c 65 2c 20 | 77 68 65 72 65 20 2e 2e |kefile, |where ..|
|000042f0| 2e 20 73 70 65 63 69 66 | 69 65 73 0a 58 09 20 20 |. specif|ies.X. |
|00004300| 20 20 74 68 65 20 64 69 | 72 65 63 74 6f 72 79 20 | the di|rectory |
|00004310| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 74 68 65 20 55 |containi|ng the U|
|00004320| 52 54 20 22 6c 69 62 72 | 6c 65 2e 61 22 20 66 69 |RT "libr|le.a" fi|
|00004330| 6c 65 20 28 74 79 70 69 | 63 61 6c 6c 79 20 74 68 |le (typi|cally th|
|00004340| 65 0a 58 09 20 20 20 20 | 22 6c 69 62 22 20 73 75 |e.X. |"lib" su|
|00004350| 62 64 69 72 65 63 74 6f | 72 79 20 6f 66 20 74 68 |bdirecto|ry of th|
|00004360| 65 20 55 52 54 20 64 69 | 73 74 72 69 62 75 74 69 |e URT di|stributi|
|00004370| 6f 6e 29 2e 0a 58 0a 58 | 4a 50 45 47 20 6c 69 62 |on)..X.X|JPEG lib|
|00004380| 72 61 72 79 3a 0a 58 0a | 58 49 66 20 79 6f 75 20 |rary:.X.|XIf you |
|00004390| 77 61 6e 74 20 74 6f 20 | 69 6e 63 6f 72 70 6f 72 |want to |incorpor|
|000043a0| 61 74 65 20 74 68 65 20 | 4a 50 45 47 20 63 6f 64 |ate the |JPEG cod|
|000043b0| 65 20 61 73 20 73 75 62 | 72 6f 75 74 69 6e 65 73 |e as sub|routines|
|000043c0| 20 69 6e 20 61 20 6c 61 | 72 67 65 72 20 70 72 6f | in a la|rger pro|
|000043d0| 67 72 61 6d 2c 0a 58 77 | 65 20 72 65 63 6f 6d 6d |gram,.Xw|e recomm|
|000043e0| 65 6e 64 20 74 68 61 74 | 20 79 6f 75 20 6d 61 6b |end that| you mak|
|000043f0| 65 20 6c 69 62 6a 70 65 | 67 2e 61 2c 20 74 68 65 |e libjpe|g.a, the|
|00004400| 6e 20 6c 69 6e 6b 20 74 | 68 61 74 20 69 6e 74 6f |n link t|hat into|
|00004410| 20 79 6f 75 72 20 73 75 | 72 72 6f 75 6e 64 69 6e | your su|rroundin|
|00004420| 67 0a 58 70 72 6f 67 72 | 61 6d 2e 20 20 53 65 65 |g.Xprogr|am. See|
|00004430| 20 66 69 6c 65 20 52 45 | 41 44 4d 45 20 66 6f 72 | file RE|ADME for|
|00004440| 20 6d 6f 72 65 20 69 6e | 66 6f 2e 0a 58 0a 58 43 | more in|fo..X.XC|
|00004450| 41 55 54 49 4f 4e 3a 20 | 57 68 65 6e 20 79 6f 75 |AUTION: |When you|
|00004460| 20 75 73 65 20 74 68 65 | 20 4a 50 45 47 20 63 6f | use the| JPEG co|
|00004470| 64 65 20 61 73 20 73 75 | 62 72 6f 75 74 69 6e 65 |de as su|broutine|
|00004480| 73 2c 20 77 65 20 72 65 | 63 6f 6d 6d 65 6e 64 20 |s, we re|commend |
|00004490| 74 68 61 74 20 79 6f 75 | 20 6d 61 6b 65 0a 58 61 |that you| make.Xa|
|000044a0| 6e 79 20 72 65 71 75 69 | 72 65 64 20 63 6f 6e 66 |ny requi|red conf|
|000044b0| 69 67 75 72 61 74 69 6f | 6e 20 63 68 61 6e 67 65 |iguratio|n change|
|000044c0| 73 20 62 79 20 6d 6f 64 | 69 66 79 69 6e 67 20 6a |s by mod|ifying j|
|000044d0| 63 6f 6e 66 69 67 2e 68 | 2c 20 6e 6f 74 20 62 79 |config.h|, not by|
|000044e0| 20 61 64 64 69 6e 67 20 | 2d 44 0a 58 73 77 69 74 | adding |-D.Xswit|
|000044f0| 63 68 65 73 20 74 6f 20 | 74 68 65 20 4d 61 6b 65 |ches to |the Make|
|00004500| 66 69 6c 65 2e 20 20 4f | 74 68 65 72 77 69 73 65 |file. O|therwise|
|00004510| 20 79 6f 75 20 6d 75 73 | 74 20 62 65 20 73 75 72 | you mus|t be sur|
|00004520| 65 20 74 6f 20 70 72 6f | 76 69 64 65 20 74 68 65 |e to pro|vide the|
|00004530| 20 73 61 6d 65 20 2d 44 | 0a 58 73 77 69 74 63 68 | same -D|.Xswitch|
|00004540| 65 73 20 77 68 65 6e 20 | 63 6f 6d 70 69 6c 69 6e |es when |compilin|
|00004550| 67 20 61 6e 79 20 70 72 | 6f 67 72 61 6d 20 74 68 |g any pr|ogram th|
|00004560| 61 74 20 69 6e 63 6c 75 | 64 65 73 20 74 68 65 20 |at inclu|des the |
|00004570| 4a 50 45 47 20 2e 68 20 | 66 69 6c 65 73 2c 20 74 |JPEG .h |files, t|
|00004580| 6f 20 65 6e 73 75 72 65 | 0a 58 74 68 61 74 20 74 |o ensure|.Xthat t|
|00004590| 68 65 20 70 61 72 61 6d | 65 74 65 72 20 73 74 72 |he param|eter str|
|000045a0| 75 63 74 75 72 65 73 20 | 61 72 65 20 69 6e 74 65 |uctures |are inte|
|000045b0| 72 70 72 65 74 65 64 20 | 74 68 65 20 73 61 6d 65 |rpreted |the same|
|000045c0| 20 77 61 79 2e 20 20 28 | 54 68 69 73 20 69 73 20 | way. (|This is |
|000045d0| 6f 6e 6c 79 0a 58 63 72 | 69 74 69 63 61 6c 20 66 |only.Xcr|itical f|
|000045e0| 6f 72 20 74 68 65 20 66 | 69 72 73 74 20 66 65 77 |or the f|irst few|
|000045f0| 20 73 79 6d 62 6f 6c 73 | 20 6d 65 6e 74 69 6f 6e | symbols| mention|
|00004600| 65 64 20 69 6e 20 6a 63 | 6f 6e 66 69 67 2e 68 2c |ed in jc|onfig.h,|
|00004610| 20 64 6f 77 6e 20 74 68 | 72 6f 75 67 68 0a 58 4e | down th|rough.XN|
|00004620| 45 45 44 5f 46 41 52 5f | 50 4f 49 4e 54 45 52 53 |EED_FAR_|POINTERS|
|00004630| 2e 29 0a 58 0a 58 52 65 | 6d 6f 76 69 6e 67 20 63 |.).X.XRe|moving c|
|00004640| 6f 64 65 3a 0a 58 0a 58 | 49 66 20 79 6f 75 20 6e |ode:.X.X|If you n|
|00004650| 65 65 64 20 74 6f 20 6d | 61 6b 65 20 61 20 73 6d |eed to m|ake a sm|
|00004660| 61 6c 6c 65 72 20 76 65 | 72 73 69 6f 6e 20 6f 66 |aller ve|rsion of|
|00004670| 20 74 68 65 20 4a 50 45 | 47 20 73 6f 66 74 77 61 | the JPE|G softwa|
|00004680| 72 65 2c 20 73 6f 6d 65 | 20 6f 70 74 69 6f 6e 61 |re, some| optiona|
|00004690| 6c 0a 58 66 75 6e 63 74 | 69 6f 6e 73 20 63 61 6e |l.Xfunct|ions can|
|000046a0| 20 62 65 20 72 65 6d 6f | 76 65 64 20 61 74 20 63 | be remo|ved at c|
|000046b0| 6f 6d 70 69 6c 65 20 74 | 69 6d 65 2e 20 20 53 65 |ompile t|ime. Se|
|000046c0| 65 20 74 68 65 20 78 78 | 78 5f 53 55 50 50 4f 52 |e the xx|x_SUPPOR|
|000046d0| 54 45 44 20 23 64 65 66 | 69 6e 65 73 20 69 6e 0a |TED #def|ines in.|
|000046e0| 58 6a 63 6f 6e 66 69 67 | 2e 68 2e 20 20 49 66 20 |Xjconfig|.h. If |
|000046f0| 61 74 20 61 6c 6c 20 70 | 6f 73 73 69 62 6c 65 2c |at all p|ossible,|
|00004700| 20 77 65 20 72 65 63 6f | 6d 6d 65 6e 64 20 74 68 | we reco|mmend th|
|00004710| 61 74 20 79 6f 75 20 6c | 65 61 76 65 20 69 6e 20 |at you l|eave in |
|00004720| 64 65 63 6f 64 65 72 20 | 73 75 70 70 6f 72 74 0a |decoder |support.|
|00004730| 58 66 6f 72 20 61 6c 6c | 20 76 61 6c 69 64 20 4a |Xfor all| valid J|
|00004740| 50 45 47 20 66 69 6c 65 | 73 2c 20 74 6f 20 65 6e |PEG file|s, to en|
|00004750| 73 75 72 65 20 74 68 61 | 74 20 79 6f 75 20 63 61 |sure tha|t you ca|
|00004760| 6e 20 72 65 61 64 20 61 | 6e 79 6f 6e 65 27 73 20 |n read a|nyone's |
|00004770| 6f 75 74 70 75 74 2e 0a | 58 52 65 73 74 72 69 63 |output..|XRestric|
|00004780| 74 69 6e 67 20 79 6f 75 | 72 20 65 6e 63 6f 64 65 |ting you|r encode|
|00004790| 72 2c 20 6f 72 20 72 65 | 6d 6f 76 69 6e 67 20 6f |r, or re|moving o|
|000047a0| 70 74 69 6f 6e 61 6c 20 | 66 75 6e 63 74 69 6f 6e |ptional |function|
|000047b0| 73 20 6c 69 6b 65 20 62 | 6c 6f 63 6b 20 73 6d 6f |s like b|lock smo|
|000047c0| 6f 74 68 69 6e 67 2c 0a | 58 77 6f 6e 27 74 20 68 |othing,.|Xwon't h|
|000047d0| 75 72 74 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |urt comp|atibilit|
|000047e0| 79 2e 20 20 54 61 6b 69 | 6e 67 20 6f 75 74 20 73 |y. Taki|ng out s|
|000047f0| 75 70 70 6f 72 74 20 66 | 6f 72 20 69 6d 61 67 65 |upport f|or image|
|00004800| 20 66 69 6c 65 20 66 6f | 72 6d 61 74 73 20 74 68 | file fo|rmats th|
|00004810| 61 74 20 79 6f 75 0a 58 | 64 6f 6e 27 74 20 75 73 |at you.X|don't us|
|00004820| 65 20 69 73 20 74 68 65 | 20 6d 6f 73 74 20 70 61 |e is the| most pa|
|00004830| 69 6e 6c 65 73 73 20 77 | 61 79 20 74 6f 20 6d 61 |inless w|ay to ma|
|00004840| 6b 65 20 74 68 65 20 70 | 72 6f 67 72 61 6d 73 20 |ke the p|rograms |
|00004850| 73 6d 61 6c 6c 65 72 2e | 0a 58 0a 58 0a 58 4e 4f |smaller.|.X.X.XNO|
|00004860| 54 45 53 20 46 4f 52 20 | 53 50 45 43 49 46 49 43 |TES FOR |SPECIFIC|
|00004870| 20 53 59 53 54 45 4d 53 | 0a 58 3d 3d 3d 3d 3d 3d | SYSTEMS|.X======|
|00004880| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004890| 3d 3d 3d 3d 0a 58 0a 58 | 57 65 20 77 65 6c 63 6f |====.X.X|We welco|
|000048a0| 6d 65 20 72 65 70 6f 72 | 74 73 20 6f 6e 20 63 68 |me repor|ts on ch|
|000048b0| 61 6e 67 65 73 20 6e 65 | 65 64 65 64 20 66 6f 72 |anges ne|eded for|
|000048c0| 20 73 79 73 74 65 6d 73 | 20 6e 6f 74 20 6d 65 6e | systems| not men|
|000048d0| 74 69 6f 6e 65 64 20 68 | 65 72 65 2e 0a 58 53 75 |tioned h|ere..XSu|
|000048e0| 62 6d 69 74 20 27 65 6d | 20 74 6f 20 6a 70 65 67 |bmit 'em| to jpeg|
|000048f0| 2d 69 6e 66 6f 40 75 75 | 6e 65 74 2e 75 75 2e 6e |-info@uu|net.uu.n|
|00004900| 65 74 2e 20 20 41 6c 73 | 6f 2c 20 69 66 20 63 6b |et. Als|o, if ck|
|00004910| 63 6f 6e 66 69 67 2e 63 | 20 69 73 20 77 72 6f 6e |config.c| is wron|
|00004920| 67 20 61 62 6f 75 74 0a | 58 68 6f 77 20 74 6f 20 |g about.|Xhow to |
|00004930| 63 6f 6e 66 69 67 75 72 | 65 20 74 68 65 20 4a 50 |configur|e the JP|
|00004940| 45 47 20 73 6f 66 74 77 | 61 72 65 20 66 6f 72 20 |EG softw|are for |
|00004950| 79 6f 75 72 20 73 79 73 | 74 65 6d 2c 20 70 6c 65 |your sys|tem, ple|
|00004960| 61 73 65 20 6c 65 74 20 | 75 73 20 6b 6e 6f 77 2e |ase let |us know.|
|00004970| 0a 58 0a 58 0a 58 41 6d | 69 67 61 3a 0a 58 0a 58 |.X.X.XAm|iga:.X.X|
|00004980| 4d 61 6b 65 66 69 6c 65 | 73 20 61 72 65 20 70 72 |Makefile|s are pr|
|00004990| 6f 76 69 64 65 64 20 66 | 6f 72 20 4d 61 6e 78 20 |ovided f|or Manx |
|000049a0| 41 7a 74 65 63 20 43 20 | 61 6e 64 20 53 41 53 20 |Aztec C |and SAS |
|000049b0| 43 2e 20 20 49 20 68 61 | 76 65 20 61 2c 73 6f 20 |C. I ha|ve a,so |
|000049c0| 68 65 61 72 64 20 66 72 | 6f 6d 0a 58 70 65 6f 70 |heard fr|om.Xpeop|
|000049d0| 6c 65 20 77 68 6f 20 68 | 61 76 65 20 63 6f 6d 70 |le who h|ave comp|
|000049e0| 69 6c 65 64 20 77 69 74 | 68 20 74 68 65 20 66 72 |iled wit|h the fr|
|000049f0| 65 65 20 44 49 43 45 20 | 63 6f 6d 70 69 6c 65 72 |ee DICE |compiler|
|00004a00| 2c 20 75 73 69 6e 67 20 | 6d 61 6b 65 66 69 6c 65 |, using |makefile|
|00004a10| 2e 61 6e 73 69 20 61 73 | 20 61 0a 58 73 74 61 72 |.ansi as| a.Xstar|
|00004a20| 74 69 6e 67 20 70 6f 69 | 6e 74 20 28 73 65 74 20 |ting poi|nt (set |
|00004a30| 22 43 43 3d 20 64 63 63 | 22 20 61 6e 64 20 22 43 |"CC= dcc|" and "C|
|00004a40| 46 4c 41 47 53 3d 20 2d | 63 20 2d 44 41 4d 49 47 |FLAGS= -|c -DAMIG|
|00004a50| 41 20 2d 44 54 57 4f 5f | 46 49 4c 45 5f 43 4f 4d |A -DTWO_|FILE_COM|
|00004a60| 4d 41 4e 44 4c 49 4e 45 | 0a 58 2d 44 4e 45 45 44 |MANDLINE|.X-DNEED|
|00004a70| 5f 53 49 47 4e 41 4c 5f | 43 41 54 43 48 45 52 22 |_SIGNAL_|CATCHER"|
|00004a80| 20 69 6e 20 74 68 65 20 | 6d 61 6b 65 66 69 6c 65 | in the |makefile|
|00004a90| 29 2e 20 20 46 6f 72 20 | 61 2c 6c 20 63 6f 6d 70 |). For |a,l comp|
|00004aa0| 69 6c 65 72 73 2c 20 77 | 65 20 72 65 63 6f 6d 6d |ilers, w|e recomm|
|00004ab0| 65 6e 64 20 79 6f 75 0a | 58 75 73 65 20 6a 6d 65 |end you.|Xuse jme|
|00004ac0| 6d 6e 61 6d 65 2e 63 20 | 61 73 20 74 68 65 20 73 |mname.c |as the s|
|00004ad0| 79 73 74 65 6d 2d 64 65 | 70 65 6e 64 65 6e 74 20 |ystem-de|pendent |
|00004ae0| 6d 65 6d 6f 72 79 20 6d | 61 6e 61 67 65 72 2e 20 |memory m|anager. |
|00004af0| 20 41 73 73 75 6d 69 6e | 67 20 79 6f 75 20 68 61 | Assumin|g you ha|
|00004b00| 76 65 0a 58 2d 44 41 4d | 49 47 41 20 69 6e 20 74 |ve.X-DAM|IGA in t|
|00004b10| 68 65 20 6d 61 6b 65 66 | 69 6c 65 2c 20 6a 6d 65 |he makef|ile, jme|
|00004b20| 6d 6e 61 6d 65 2e 63 20 | 77 69 6c 6c 20 70 75 74 |mname.c |will put|
|00004b30| 20 74 65 6d 70 6f 72 61 | 72 79 20 66 69 6c 65 73 | tempora|ry files|
|00004b40| 20 69 6e 20 4a 50 45 47 | 54 4d 50 3a 2e 0a 58 43 | in JPEG|TMP:..XC|
|00004b50| 68 61 6e 67 65 20 6a 6d | 65 6d 6e 61 6d 65 2e 63 |hange jm|emname.c|
|00004b60| 20 69 66 20 79 6f 75 20 | 64 6f 6e 27 74 20 6c 69 | if you |don't li|
|00004b70| 6b 65 20 74 68 69 73 2e | 0a 58 0a 58 0a 58 41 74 |ke this.|.X.X.XAt|
|00004b80| 61 72 69 3a 0a 58 0a 58 | 54 68 65 20 70 72 6f 6a |ari:.X.X|The proj|
|00004b90| 65 63 74 20 66 69 6c 65 | 73 20 70 72 6f 76 69 64 |ect file|s provid|
|00004ba0| 65 64 20 73 68 6f 75 6c | 64 20 77 6f 72 6b 20 61 |ed shoul|d work a|
|00004bb0| 73 2d 69 73 20 77 69 74 | 68 20 50 75 72 65 20 43 |s-is wit|h Pure C|
|00004bc0| 2e 20 20 46 6f 72 20 54 | 75 72 62 6f 20 43 2c 20 |. For T|urbo C, |
|00004bd0| 63 68 61 6e 67 65 0a 58 | 6c 69 62 72 61 72 79 20 |change.X|library |
|00004be0| 66 69 6c 65 6e 61 6d 65 | 73 20 22 50 43 2e 2e 2e |filename|s "PC...|
|00004bf0| 22 20 74 6f 20 22 54 43 | 2e 2e 2e 22 20 69 6e 20 |" to "TC|..." in |
|00004c00| 74 68 65 20 70 72 6f 6a | 65 63 74 20 66 69 6c 65 |the proj|ect file|
|00004c10| 73 20 66 6f 72 20 63 6a | 70 65 67 2e 74 74 70 20 |s for cj|peg.ttp |
|00004c20| 61 6e 64 0a 58 64 6a 70 | 65 67 2e 74 74 70 2e 20 |and.Xdjp|eg.ttp. |
|00004c30| 20 44 6f 6e 27 74 20 66 | 6f 72 67 65 74 20 74 6f | Don't f|orget to|
|00004c40| 20 73 65 6c 65 63 74 20 | 61 20 6a 6d 65 6d 73 79 | select |a jmemsy|
|00004c50| 73 2e 63 20 66 69 6c 65 | 2c 20 73 65 65 20 53 74 |s.c file|, see St|
|00004c60| 65 70 20 33 20 28 77 65 | 20 72 65 63 6f 6d 6d 65 |ep 3 (we| recomme|
|00004c70| 6e 64 0a 58 6a 6d 65 6d | 61 6e 73 69 2e 63 29 2e |nd.Xjmem|ansi.c).|
|00004c80| 20 20 41 6c 73 6f 20 61 | 64 6a 75 73 74 20 74 68 | Also a|djust th|
|00004c90| 65 20 44 45 46 41 55 4c | 54 5f 4d 41 58 5f 4d 45 |e DEFAUL|T_MAX_ME|
|00004ca0| 4d 20 73 65 74 74 69 6e | 67 20 2d 2d 2d 20 79 6f |M settin|g --- yo|
|00004cb0| 75 20 70 72 6f 62 61 62 | 6c 79 20 77 61 6e 74 20 |u probab|ly want |
|00004cc0| 69 74 0a 58 74 6f 20 62 | 65 20 61 20 63 6f 75 70 |it.Xto b|e a coup|
|00004cd0| 6c 65 20 68 75 6e 64 72 | 65 64 20 4b 20 6c 65 73 |le hundr|ed K les|
|00004ce0| 73 20 74 68 61 6e 20 79 | 6f 75 72 20 6e 6f 72 6d |s than y|our norm|
|00004cf0| 61 6c 20 66 72 65 65 20 | 6d 65 6d 6f 72 79 2e 20 |al free |memory. |
|00004d00| 20 4e 6f 74 65 20 74 68 | 61 74 20 79 6f 75 0a 58 | Note th|at you.X|
|00004d10| 6d 75 73 74 20 6d 61 6b | 65 20 6a 70 65 67 2e 6c |must mak|e jpeg.l|
|00004d20| 69 62 20 62 65 66 6f 72 | 65 20 6d 61 6b 69 6e 67 |ib befor|e making|
|00004d30| 20 63 6a 70 65 67 2e 74 | 74 70 20 6f 72 20 63 6a | cjpeg.t|tp or cj|
|00004d40| 70 65 67 2e 74 74 70 2e | 20 20 59 6f 75 27 6c 6c |peg.ttp.| You'll|
|00004d50| 20 68 61 76 65 20 74 6f | 0a 58 70 65 72 66 6f 72 | have to|.Xperfor|
|00004d60| 6d 20 74 68 65 20 73 65 | 6c 66 2d 74 65 73 74 20 |m the se|lf-test |
|00004d70| 28 53 74 65 70 20 35 29 | 20 62 79 20 68 61 6e 64 |(Step 5)| by hand|
|00004d80| 2e 0a 58 0a 58 54 68 65 | 72 65 20 69 73 20 61 20 |..X.XThe|re is a |
|00004d90| 62 75 67 20 69 6e 20 73 | 6f 6d 65 20 6f 6c 64 65 |bug in s|ome olde|
|00004da0| 72 20 76 65 72 73 69 6f | 6e 73 20 6f 66 20 74 68 |r versio|ns of th|
|00004db0| 65 20 54 75 72 62 6f 20 | 43 20 6c 69 62 72 61 72 |e Turbo |C librar|
|00004dc0| 79 20 77 68 69 63 68 20 | 63 61 75 73 65 73 20 74 |y which |causes t|
|00004dd0| 68 65 0a 58 73 70 61 63 | 65 20 75 73 65 64 20 62 |he.Xspac|e used b|
|00004de0| 79 20 74 65 6d 70 6f 72 | 61 72 79 20 66 69 6c 65 |y tempor|ary file|
|00004df0| 73 20 63 72 65 61 74 65 | 64 20 77 69 74 68 20 22 |s create|d with "|
|00004e00| 74 6d 70 66 69 6c 65 28 | 29 22 20 6e 6f 74 20 74 |tmpfile(|)" not t|
|00004e10| 6f 20 62 65 20 66 72 65 | 65 64 20 61 66 74 65 72 |o be fre|ed after|
|00004e20| 0a 58 61 6e 20 61 62 6e | 6f 72 6d 61 6c 20 70 72 |.Xan abn|ormal pr|
|00004e30| 6f 67 72 61 6d 20 65 78 | 69 74 2e 20 20 49 66 20 |ogram ex|it. If |
|00004e40| 79 6f 75 20 63 68 65 63 | 6b 20 79 6f 75 72 20 64 |you chec|k your d|
|00004e50| 69 73 6b 20 61 66 74 65 | 72 77 61 72 64 73 2c 20 |isk afte|rwards, |
|00004e60| 79 6f 75 20 77 69 6c 6c | 20 66 69 6e 64 0a 58 63 |you will| find.Xc|
|00004e70| 6c 75 73 74 65 72 20 63 | 68 61 69 6e 73 20 74 68 |luster c|hains th|
|00004e80| 61 74 20 61 72 65 20 61 | 6c 6c 6f 63 61 74 65 64 |at are a|llocated|
|00004e90| 20 62 75 74 20 6e 6f 74 | 20 75 73 65 64 20 62 79 | but not| used by|
|00004ea0| 20 61 20 66 69 6c 65 2e | 20 20 54 68 69 73 20 73 | a file.| This s|
|00004eb0| 68 6f 75 6c 64 20 6e 6f | 74 0a 58 68 61 70 70 65 |hould no|t.Xhappe|
|00004ec0| 6e 20 69 6e 20 63 6a 70 | 65 67 20 6f 72 20 64 6a |n in cjp|eg or dj|
|00004ed0| 70 65 67 2c 20 73 69 6e | 63 65 20 77 65 20 65 6e |peg, sin|ce we en|
|00004ee0| 61 62 6c 65 20 61 20 73 | 69 67 6e 61 6c 20 63 61 |able a s|ignal ca|
|00004ef0| 74 63 68 65 72 20 74 6f | 20 65 78 70 6c 69 63 69 |tcher to| explici|
|00004f00| 74 6c 79 20 63 6c 6f 73 | 65 0a 58 74 65 6d 70 20 |tly clos|e.Xtemp |
|00004f10| 66 69 6c 65 73 20 62 65 | 66 6f 72 65 20 65 78 69 |files be|fore exi|
|00004f20| 74 69 6e 67 2e 20 20 42 | 75 74 20 69 66 20 79 6f |ting. B|ut if yo|
|00004f30| 75 20 75 73 65 20 74 68 | 65 20 4a 50 45 47 20 6c |u use th|e JPEG l|
|00004f40| 69 62 72 61 72 79 20 77 | 69 74 68 20 79 6f 75 72 |ibrary w|ith your|
|00004f50| 20 6f 77 6e 0a 58 63 6f | 64 65 2c 20 62 65 20 73 | own.Xco|de, be s|
|00004f60| 75 72 65 20 74 6f 20 73 | 75 70 70 6c 79 20 61 20 |ure to s|upply a |
|00004f70| 73 69 67 6e 61 6c 20 63 | 61 74 63 68 65 72 2c 20 |signal c|atcher, |
|00004f80| 6f 72 20 65 6c 73 65 20 | 75 73 65 20 61 20 64 69 |or else |use a di|
|00004f90| 66 66 65 72 65 6e 74 0a | 58 73 79 73 74 65 6d 2d |fferent.|Xsystem-|
|00004fa0| 64 65 70 65 6e 64 65 6e | 74 20 6d 65 6d 6f 72 79 |dependen|t memory|
|00004fb0| 20 6d 61 6e 61 67 65 72 | 2e 0a 58 0a 58 0a 58 43 | manager|..X.X.XC|
|00004fc0| 72 61 79 3a 0a 58 0a 58 | 53 68 6f 75 6c 64 20 79 |ray:.X.X|Should y|
|00004fd0| 6f 75 20 62 65 20 73 6f | 20 66 6f 72 74 75 6e 61 |ou be so| fortuna|
|00004fe0| 74 65 20 61 73 20 74 6f | 20 62 65 20 72 75 6e 6e |te as to| be runn|
|00004ff0| 69 6e 67 20 4a 50 45 47 | 20 6f 6e 20 61 20 43 72 |ing JPEG| on a Cr|
|00005000| 61 79 20 59 4d 50 2c 20 | 74 68 65 72 65 20 69 73 |ay YMP, |there is|
|00005010| 20 61 0a 58 63 6f 6d 70 | 69 6c 65 72 20 62 75 67 | a.Xcomp|iler bug|
|00005020| 20 69 6e 20 43 72 61 79 | 27 73 20 53 74 61 6e 64 | in Cray|'s Stand|
|00005030| 61 72 64 20 43 20 76 65 | 72 73 69 6f 6e 73 20 70 |ard C ve|rsions p|
|00005040| 72 69 6f 72 20 74 6f 20 | 33 2e 31 2e 20 20 59 6f |rior to |3.1. Yo|
|00005050| 75 27 6c 6c 20 6e 65 65 | 64 20 74 6f 0a 58 69 6e |u'll nee|d to.Xin|
|00005060| 73 65 72 74 20 61 20 6c | 69 6e 65 20 72 65 61 64 |sert a l|ine read|
|00005070| 69 6e 67 20 22 23 70 72 | 61 67 6d 61 20 6e 6f 76 |ing "#pr|agma nov|
|00005080| 65 63 74 6f 72 22 20 6a | 75 73 74 20 62 65 66 6f |ector" j|ust befo|
|00005090| 72 65 20 74 68 65 20 6c | 6f 6f 70 09 0a 58 20 20 |re the l|oop..X |
|000050a0| 20 20 66 6f 72 20 28 69 | 20 3d 20 31 3b 20 69 20 | for (i| = 1; i |
|000050b0| 3c 3d 20 28 69 6e 74 29 | 20 68 74 62 6c 2d 3e 62 |<= (int)| htbl->b|
|000050c0| 69 74 73 5b 6c 5d 3b 20 | 69 2b 2b 29 0a 58 20 20 |its[l]; |i++).X |
|000050d0| 20 20 20 20 68 75 66 66 | 73 69 7a 65 5b 70 2b 2b | huff|size[p++|
|000050e0| 5d 20 3d 20 28 63 68 61 | 72 29 20 6c 3b 0a 58 69 |] = (cha|r) l;.Xi|
|000050f0| 6e 20 66 69 78 5f 68 75 | 66 66 5f 74 62 6c 20 28 |n fix_hu|ff_tbl (|
|00005100| 69 6e 20 56 33 2c 20 6c | 69 6e 65 20 34 32 20 6f |in V3, l|ine 42 o|
|00005110| 66 20 6a 63 68 75 66 66 | 2e 63 20 61 6e 64 20 6c |f jchuff|.c and l|
|00005120| 69 6e 65 20 33 38 20 6f | 66 20 6a 64 68 75 66 66 |ine 38 o|f jdhuff|
|00005130| 2e 63 29 2e 20 20 54 68 | 65 0a 58 75 73 75 61 6c |.c). Th|e.Xusual|
|00005140| 20 73 79 6d 70 74 6f 6d | 20 6f 66 20 6e 6f 74 20 | symptom| of not |
|00005150| 61 64 64 69 6e 67 20 74 | 68 69 73 20 6c 69 6e 65 |adding t|his line|
|00005160| 20 69 73 20 61 20 63 6f | 72 65 2d 64 75 6d 70 2e | is a co|re-dump.|
|00005170| 20 20 53 65 65 20 43 72 | 61 79 27 73 20 53 50 52 | See Cr|ay's SPR|
|00005180| 20 34 38 32 32 32 2e 0a | 58 0a 58 0a 58 48 50 2f | 48222..|X.X.XHP/|
|00005190| 41 70 6f 6c 6c 6f 20 44 | 4f 4d 41 49 4e 3a 0a 58 |Apollo D|OMAIN:.X|
|000051a0| 0a 58 57 69 74 68 20 73 | 79 73 74 65 6d 20 72 65 |.XWith s|ystem re|
|000051b0| 6c 65 61 73 65 20 31 30 | 2e 34 20 6f 72 20 6c 61 |lease 10|.4 or la|
|000051c0| 74 65 72 2c 20 6d 61 6b | 65 66 69 6c 65 2e 61 6e |ter, mak|efile.an|
|000051d0| 73 69 20 73 68 6f 75 6c | 64 20 77 6f 72 6b 20 4f |si shoul|d work O|
|000051e0| 4b 2e 20 20 49 66 20 79 | 6f 75 20 68 61 76 65 0a |K. If y|ou have.|
|000051f0| 58 76 65 72 73 69 6f 6e | 20 31 30 2e 33 2e 61 6e |Xversion| 10.3.an|
|00005200| 79 74 68 69 6e 67 2c 20 | 79 6f 75 20 6e 65 65 64 |ything, |you need|
|00005210| 20 74 6f 20 66 69 67 75 | 72 65 20 6f 75 74 20 77 | to figu|re out w|
|00005220| 68 65 74 68 65 72 20 79 | 6f 75 20 68 61 76 65 20 |hether y|ou have |
|00005230| 74 68 65 20 41 4e 53 49 | 20 43 0a 58 63 6f 6d 70 |the ANSI| C.Xcomp|
|00005240| 69 6c 65 72 20 28 76 65 | 72 73 69 6f 6e 20 36 2e |iler (ve|rsion 6.|
|00005250| 37 20 6f 72 20 6c 61 74 | 65 72 29 20 61 6e 64 20 |7 or lat|er) and |
|00005260| 77 68 65 74 68 65 72 20 | 79 6f 75 27 76 65 20 69 |whether |you've i|
|00005270| 6e 73 74 61 6c 6c 65 64 | 20 74 68 65 20 41 4e 53 |nstalled| the ANS|
|00005280| 49 20 43 0a 58 69 6e 63 | 6c 75 64 65 20 66 69 6c |I C.Xinc|lude fil|
|00005290| 65 73 20 28 69 66 20 73 | 6f 2c 20 74 68 65 20 66 |es (if s|o, the f|
|000052a0| 69 72 73 74 20 6c 69 6e | 65 20 6f 66 20 3c 73 74 |irst lin|e of <st|
|000052b0| 64 69 6f 2e 68 3e 20 77 | 69 6c 6c 20 6d 65 6e 74 |dio.h> w|ill ment|
|000052c0| 69 6f 6e 20 41 4e 53 49 | 20 43 29 2e 0a 58 49 66 |ion ANSI| C)..XIf|
|000052d0| 20 79 6f 75 20 68 61 76 | 65 20 74 68 65 20 41 4e | you hav|e the AN|
|000052e0| 53 49 20 43 20 63 6f 6d | 70 69 6c 65 72 20 62 75 |SI C com|piler bu|
|000052f0| 74 20 6e 6f 74 20 74 68 | 65 20 41 4e 53 49 20 43 |t not th|e ANSI C|
|00005300| 20 69 6e 63 6c 75 64 65 | 20 66 69 6c 65 73 2c 20 | include| files, |
|00005310| 75 73 65 0a 58 6d 61 6b | 65 66 69 6c 65 2e 61 6e |use.Xmak|efile.an|
|00005320| 73 69 20 61 6e 64 20 61 | 64 64 20 2d 44 4e 4f 4e |si and a|dd -DNON|
|00005330| 41 4e 53 49 5f 49 4e 43 | 4c 55 44 45 53 20 74 6f |ANSI_INC|LUDES to|
|00005340| 20 43 46 4c 41 47 53 2e | 20 20 49 66 20 79 6f 75 | CFLAGS.| If you|
|00005350| 20 68 61 76 65 20 62 6f | 74 68 2c 0a 58 74 68 65 | have bo|th,.Xthe|
|00005360| 6e 20 6d 61 6b 65 66 69 | 6c 65 2e 61 6e 73 69 20 |n makefi|le.ansi |
|00005370| 73 68 6f 75 6c 64 20 77 | 6f 72 6b 20 61 73 20 69 |should w|ork as i|
|00005380| 73 2e 20 20 49 66 20 6e | 65 69 74 68 65 72 2c 20 |s. If n|either, |
|00005390| 75 73 65 20 6d 61 6b 65 | 66 69 6c 65 2e 75 6e 69 |use make|file.uni|
|000053a0| 78 2e 0a 58 0a 58 0a 58 | 48 50 2d 55 58 3a 0a 58 |x..X.X.X|HP-UX:.X|
|000053b0| 0a 58 49 66 20 79 6f 75 | 20 68 61 76 65 20 48 50 |.XIf you| have HP|
|000053c0| 2d 55 58 20 37 2e 30 35 | 20 6f 72 20 6c 61 74 65 |-UX 7.05| or late|
|000053d0| 72 20 77 69 74 68 20 74 | 68 65 20 22 73 6f 66 74 |r with t|he "soft|
|000053e0| 77 61 72 65 20 64 65 76 | 65 6c 6f 70 6d 65 6e 74 |ware dev|elopment|
|000053f0| 22 20 43 20 63 6f 6d 70 | 69 6c 65 72 2c 0a 58 74 |" C comp|iler,.Xt|
|00005400| 68 65 6e 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |hen you |can use |
|00005410| 6d 61 6b 65 66 69 6c 65 | 2e 61 6e 73 69 2e 20 20 |makefile|.ansi. |
|00005420| 41 64 64 20 22 2d 41 61 | 22 20 74 6f 20 74 68 65 |Add "-Aa|" to the|
|00005430| 20 43 46 4c 41 47 53 20 | 6c 69 6e 65 20 69 6e 20 | CFLAGS |line in |
|00005440| 74 68 65 20 6d 61 6b 65 | 66 69 6c 65 0a 58 74 6f |the make|file.Xto|
|00005450| 20 6d 61 6b 65 20 74 68 | 65 20 63 6f 6d 70 69 6c | make th|e compil|
|00005460| 65 72 20 77 6f 72 6b 20 | 69 6e 20 41 4e 53 49 20 |er work |in ANSI |
|00005470| 6d 6f 64 65 2e 20 20 49 | 66 20 79 6f 75 20 68 61 |mode. I|f you ha|
|00005480| 76 65 20 61 20 70 72 65 | 2d 37 2e 30 35 20 73 79 |ve a pre|-7.05 sy|
|00005490| 73 74 65 6d 2c 20 6f 72 | 20 69 66 0a 58 79 6f 75 |stem, or| if.Xyou|
|000054a0| 20 61 72 65 20 75 73 69 | 6e 67 20 74 68 65 20 6e | are usi|ng the n|
|000054b0| 6f 6e 2d 41 4e 53 49 20 | 43 20 63 6f 6d 70 69 6c |on-ANSI |C compil|
|000054c0| 65 72 20 64 65 6c 69 76 | 65 72 65 64 20 77 69 74 |er deliv|ered wit|
|000054d0| 68 20 61 20 6d 69 6e 69 | 6d 75 6d 20 48 50 2d 55 |h a mini|mum HP-U|
|000054e0| 58 20 38 2e 30 0a 58 73 | 79 73 74 65 6d 2c 20 74 |X 8.0.Xs|ystem, t|
|000054f0| 68 65 6e 20 79 6f 75 20 | 6d 75 73 74 20 75 73 65 |hen you |must use|
|00005500| 20 6d 61 6b 65 66 69 6c | 65 2e 75 6e 69 78 20 28 | makefil|e.unix (|
|00005510| 61 6e 64 20 64 6f 20 4e | 4f 54 20 61 64 64 20 2d |and do N|OT add -|
|00005520| 41 61 29 2e 20 20 41 6c | 73 6f 2c 20 61 64 64 69 |Aa). Al|so, addi|
|00005530| 6e 67 0a 58 22 2d 2c 6d | 61 6c 6c 6f 63 22 20 74 |ng.X"-,m|alloc" t|
|00005540| 6f 20 4c 44 4c 49 42 53 | 20 69 73 20 72 65 63 6f |o LDLIBS| is reco|
|00005550| 6d 6d 65 6e 64 65 64 20 | 69 66 20 79 6f 75 20 68 |mmended |if you h|
|00005560| 61 76 65 20 6c 69 62 6d | 61 6c 6c 6f 63 2e 61 20 |ave libm|alloc.a |
|00005570| 28 69 74 20 73 65 65 6d | 73 20 6e 6f 74 20 74 6f |(it seem|s not to|
|00005580| 0a 58 62 65 20 70 72 65 | 73 65 6e 74 20 69 6e 20 |.Xbe pre|sent in |
|00005590| 6d 69 6e 69 6d 75 6d 20 | 38 2e 30 29 2e 0a 58 0a |minimum |8.0)..X.|
|000055a0| 58 4f 6e 20 48 50 20 39 | 30 30 30 20 73 65 72 69 |XOn HP 9|000 seri|
|000055b0| 65 73 20 38 30 30 20 6d | 61 63 68 69 6e 65 73 2c |es 800 m|achines,|
|000055c0| 20 74 68 65 20 48 50 20 | 43 20 63 6f 6d 70 69 6c | the HP |C compil|
|000055d0| 65 72 20 69 73 20 62 75 | 67 67 79 20 69 6e 20 72 |er is bu|ggy in r|
|000055e0| 65 76 69 73 69 6f 6e 73 | 20 70 72 69 6f 72 0a 58 |evisions| prior.X|
|000055f0| 74 6f 20 41 2e 30 38 2e | 30 37 2e 20 20 49 66 20 |to A.08.|07. If |
|00005600| 79 6f 75 20 67 65 74 20 | 63 6f 6d 70 6c 61 69 6e |you get |complain|
|00005610| 74 73 20 61 62 6f 75 74 | 20 22 6e 6f 74 20 61 20 |ts about| "not a |
|00005620| 74 79 70 65 64 65 66 20 | 6e 61 6d 65 22 2c 20 79 |typedef |name", y|
|00005630| 6f 75 27 6c 6c 20 68 61 | 76 65 20 74 6f 0a 58 63 |ou'll ha|ve to.Xc|
|00005640| 6f 6e 76 65 72 74 20 74 | 68 65 20 63 6f 64 65 20 |onvert t|he code |
|00005650| 74 6f 20 4b 26 52 20 73 | 74 79 6c 65 20 28 69 2e |to K&R s|tyle (i.|
|00005660| 65 2e 2c 20 75 73 65 20 | 6d 61 6b 65 66 69 6c 65 |e., use |makefile|
|00005670| 2e 75 6e 69 78 29 2e 0a | 58 0a 58 0a 58 4d 61 63 |.unix)..|X.X.XMac|
|00005680| 69 6e 74 6f 73 68 20 4d | 50 57 3a 0a 58 0a 58 57 |intosh M|PW:.X.XW|
|00005690| 65 20 64 6f 6e 27 74 20 | 64 69 72 65 63 74 6c 79 |e don't |directly|
|000056a0| 20 73 75 70 70 6f 72 74 | 20 4d 50 57 20 69 6e 20 | support| MPW in |
|000056b0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 72 65 6c 65 |the curr|ent rele|
|000056c0| 61 73 65 2c 20 62 75 74 | 20 4c 61 72 72 79 20 52 |ase, but| Larry R|
|000056d0| 6f 73 65 6e 73 74 65 69 | 6e 0a 58 72 65 70 6f 72 |osenstei|n.Xrepor|
|000056e0| 74 73 20 74 68 61 74 20 | 74 68 65 20 4a 50 45 47 |ts that |the JPEG|
|000056f0| 20 63 6f 64 65 20 63 61 | 6e 20 62 65 20 70 6f 72 | code ca|n be por|
|00005700| 74 65 64 20 77 69 74 68 | 6f 75 74 20 76 65 72 79 |ted with|out very|
|00005710| 20 6d 75 63 68 20 74 72 | 6f 75 62 6c 65 2e 20 20 | much tr|ouble. |
|00005720| 54 68 65 72 65 27 73 0a | 58 75 73 65 66 75 6c 20 |There's.|Xuseful |
|00005730| 6e 6f 74 65 73 20 61 6e | 64 20 63 6f 6e 76 65 72 |notes an|d conver|
|00005740| 73 69 6f 6e 20 73 63 72 | 69 70 74 73 20 69 6e 20 |sion scr|ipts in |
|00005750| 68 69 73 20 6b 69 74 20 | 66 6f 72 20 70 6f 72 74 |his kit |for port|
|00005760| 69 6e 67 20 50 42 4d 50 | 4c 55 53 20 74 6f 20 4d |ing PBMP|LUS to M|
|00005770| 50 57 2e 0a 58 59 6f 75 | 20 63 61 6e 20 6f 62 74 |PW..XYou| can obt|
|00005780| 61 69 6e 20 74 68 65 20 | 6b 69 74 20 62 79 20 46 |ain the |kit by F|
|00005790| 54 50 20 74 6f 20 66 74 | 70 2e 61 70 70 6c 65 2e |TP to ft|p.apple.|
|000057a0| 63 6f 6d 2c 20 66 69 6c | 65 20 2f 70 75 62 2f 6c |com, fil|e /pub/l|
|000057b0| 73 72 2f 70 62 6d 70 6c | 75 73 2d 70 6f 72 74 2a |sr/pbmpl|us-port*|
|000057c0| 2e 0a 58 0a 58 0a 58 4d | 61 63 69 6e 74 6f 73 68 |..X.X.XM|acintosh|
|000057d0| 20 54 68 69 6e 6b 20 43 | 3a 0a 58 0a 58 59 6f 75 | Think C|:.X.XYou|
|000057e0| 27 6c 6c 20 68 61 76 65 | 20 74 6f 20 70 72 65 70 |'ll have| to prep|
|000057f0| 61 72 65 20 70 72 6f 6a | 65 63 74 20 66 69 6c 65 |are proj|ect file|
|00005800| 73 20 66 6f 72 20 63 6a | 70 65 67 20 61 6e 64 20 |s for cj|peg and |
|00005810| 64 6a 70 65 67 3b 20 77 | 65 20 64 6f 6e 27 74 20 |djpeg; w|e don't |
|00005820| 69 6e 63 6c 75 64 65 0a | 58 74 68 6f 73 65 20 69 |include.|Xthose i|
|00005830| 6e 20 74 68 65 20 64 69 | 73 74 72 69 62 75 74 69 |n the di|stributi|
|00005840| 6f 6e 20 73 69 6e 63 65 | 20 74 68 65 79 20 61 72 |on since| they ar|
|00005850| 65 20 6e 6f 74 20 74 65 | 78 74 20 66 69 6c 65 73 |e not te|xt files|
|00005860| 2e 20 20 54 68 65 20 43 | 4f 42 4a 45 43 54 53 20 |. The C|OBJECTS |
|00005870| 61 6e 64 0a 58 44 4f 42 | 4a 45 43 54 53 20 6c 69 |and.XDOB|JECTS li|
|00005880| 73 74 73 20 69 6e 20 6d | 61 6b 65 66 69 6c 65 2e |sts in m|akefile.|
|00005890| 75 6e 69 78 20 73 68 6f | 77 20 77 68 69 63 68 20 |unix sho|w which |
|000058a0| 66 69 6c 65 73 20 73 68 | 6f 75 6c 64 20 62 65 20 |files sh|ould be |
|000058b0| 69 6e 63 6c 75 64 65 64 | 20 69 6e 20 65 61 63 68 |included| in each|
|000058c0| 0a 58 70 72 6f 6a 65 63 | 74 2e 20 20 41 6c 73 6f |.Xprojec|t. Also|
|000058d0| 20 61 64 64 20 74 68 65 | 20 41 4e 53 49 20 61 6e | add the| ANSI an|
|000058e0| 64 20 55 6e 69 78 20 43 | 20 6c 69 62 72 61 72 69 |d Unix C| librari|
|000058f0| 65 73 20 69 6e 20 61 20 | 73 65 70 61 72 61 74 65 |es in a |separate|
|00005900| 20 73 65 67 6d 65 6e 74 | 2e 20 20 59 6f 75 0a 58 | segment|. You.X|
|00005910| 6d 61 79 20 6e 65 65 64 | 20 74 6f 20 64 69 76 69 |may need| to divi|
|00005920| 64 65 20 74 68 65 20 4a | 50 45 47 20 66 69 6c 65 |de the J|PEG file|
|00005930| 73 20 69 6e 74 6f 20 6d | 6f 72 65 20 74 68 61 6e |s into m|ore than|
|00005940| 20 6f 6e 65 20 73 65 67 | 6d 65 6e 74 3b 20 79 6f | one seg|ment; yo|
|00005950| 75 20 63 61 6e 20 64 6f | 20 74 68 69 73 0a 58 70 |u can do| this.Xp|
|00005960| 72 65 74 74 79 20 6d 75 | 63 68 20 61 73 20 79 6f |retty mu|ch as yo|
|00005970| 75 20 70 6c 65 61 73 65 | 2e 0a 58 0a 58 49 66 20 |u please|..X.XIf |
|00005980| 79 6f 75 20 68 61 76 65 | 20 54 68 69 6e 6b 20 43 |you have| Think C|
|00005990| 20 76 65 72 73 69 6f 6e | 20 35 2e 30 20 79 6f 75 | version| 5.0 you|
|000059a0| 20 6e 65 65 64 20 6e 6f | 74 20 6d 6f 64 69 66 79 | need no|t modify|
|000059b0| 20 6a 63 6f 6e 66 69 67 | 2e 68 3b 20 69 6e 73 74 | jconfig|.h; inst|
|000059c0| 65 61 64 20 79 6f 75 0a | 58 73 68 6f 75 6c 64 20 |ead you.|Xshould |
|000059d0| 74 75 72 6e 20 6f 6e 20 | 62 6f 74 68 20 74 68 65 |turn on |both the|
|000059e0| 20 41 4e 53 49 20 53 65 | 74 74 69 6e 67 73 20 61 | ANSI Se|ttings a|
|000059f0| 6e 64 20 4c 61 6e 67 75 | 61 67 65 20 45 78 74 65 |nd Langu|age Exte|
|00005a00| 6e 73 69 6f 6e 73 20 6f | 70 74 69 6f 6e 20 62 75 |nsions o|ption bu|
|00005a10| 74 74 6f 6e 73 0a 58 28 | 73 6f 20 74 68 61 74 20 |ttons.X(|so that |
|00005a20| 62 6f 74 68 20 5f 5f 53 | 54 44 43 5f 5f 20 61 6e |both __S|TDC__ an|
|00005a30| 64 20 54 48 49 4e 4b 5f | 43 20 61 72 65 20 70 72 |d THINK_|C are pr|
|00005a40| 65 64 65 66 69 6e 65 64 | 29 2e 20 20 57 69 74 68 |edefined|). With|
|00005a50| 20 76 65 72 73 69 6f 6e | 20 34 2e 30 20 79 6f 75 | version| 4.0 you|
|00005a60| 20 6d 75 73 74 0a 58 65 | 64 69 74 20 6a 63 6f 6e | must.Xe|dit jcon|
|00005a70| 66 69 67 2e 68 2e 20 20 | 28 59 6f 75 20 63 61 6e |fig.h. |(You can|
|00005a80| 20 23 64 65 66 69 6e 65 | 20 48 41 56 45 5f 53 54 | #define| HAVE_ST|
|00005a90| 44 43 20 74 6f 20 64 6f | 20 74 68 65 20 72 69 67 |DC to do| the rig|
|00005aa0| 68 74 20 74 68 69 6e 67 | 20 66 6f 72 20 61 6c 6c |ht thing| for all|
|00005ab0| 0a 58 6f 70 74 69 6f 6e | 73 20 65 78 63 65 70 74 |.Xoption|s except|
|00005ac0| 20 63 6f 6e 73 74 3b 20 | 79 6f 75 20 6d 75 73 74 | const; |you must|
|00005ad0| 20 61 6c 73 6f 20 23 64 | 65 66 69 6e 65 20 63 6f | also #d|efine co|
|00005ae0| 6e 73 74 2e 29 0a 58 0a | 58 6a 63 6d 61 69 6e 20 |nst.).X.|Xjcmain |
|00005af0| 61 6e 64 20 6a 64 6d 61 | 69 6e 20 61 72 65 20 73 |and jdma|in are s|
|00005b00| 65 74 20 75 70 20 74 6f | 20 70 72 6f 76 69 64 65 |et up to| provide|
|00005b10| 20 74 68 65 20 75 73 75 | 61 6c 20 63 6f 6d 6d 61 | the usu|al comma|
|00005b20| 6e 64 2d 6c 69 6e 65 20 | 69 6e 74 65 72 66 61 63 |nd-line |interfac|
|00005b30| 65 0a 58 62 79 20 6d 65 | 61 6e 73 20 6f 66 20 54 |e.Xby me|ans of T|
|00005b40| 68 69 6e 6b 27 73 20 63 | 63 6f 6d 6d 61 6e 64 28 |hink's c|command(|
|00005b50| 29 20 6c 69 62 72 61 72 | 79 20 72 6f 75 74 69 6e |) librar|y routin|
|00005b60| 65 2e 20 20 41 20 6d 6f | 72 65 20 4d 61 63 2d 6c |e. A mo|re Mac-l|
|00005b70| 69 6b 65 20 69 6e 74 65 | 72 66 61 63 65 0a 58 69 |ike inte|rface.Xi|
|00005b80| 73 20 69 6e 20 74 68 65 | 20 77 6f 72 6b 73 2e 0a |s in the| works..|
|00005b90| 58 0a 58 0a 58 4d 53 2d | 44 4f 53 2c 20 67 65 6e |X.X.XMS-|DOS, gen|
|00005ba0| 65 72 69 63 20 63 6f 6d | 6d 65 6e 74 73 3a 0a 58 |eric com|ments:.X|
|00005bb0| 0a 58 54 68 65 20 4a 50 | 45 47 20 63 6f 64 65 20 |.XThe JP|EG code |
|00005bc0| 69 73 20 64 65 73 69 67 | 6e 65 64 20 74 6f 20 62 |is desig|ned to b|
|00005bd0| 65 20 63 6f 6d 70 69 6c | 65 64 20 77 69 74 68 20 |e compil|ed with |
|00005be0| 38 30 78 38 36 20 22 73 | 6d 61 6c 6c 22 20 6f 72 |80x86 "s|mall" or|
|00005bf0| 20 22 6d 65 64 69 75 6d | 22 20 6d 65 6d 6f 72 79 | "medium|" memory|
|00005c00| 0a 58 6d 6f 64 65 6c 73 | 20 28 69 2e 65 2e 2c 20 |.Xmodels| (i.e., |
|00005c10| 64 61 74 61 20 70 6f 69 | 6e 74 65 72 73 20 61 72 |data poi|nters ar|
|00005c20| 65 20 31 36 20 62 69 74 | 73 20 75 6e 6c 65 73 73 |e 16 bit|s unless|
|00005c30| 20 65 78 70 6c 69 63 69 | 74 6c 79 20 64 65 63 6c | explici|tly decl|
|00005c40| 61 72 65 64 20 22 66 61 | 72 22 3b 20 63 6f 64 65 |ared "fa|r"; code|
|00005c50| 0a 58 70 6f 69 6e 74 65 | 72 73 20 63 61 6e 20 62 |.Xpointe|rs can b|
|00005c60| 65 20 65 69 74 68 65 72 | 20 73 69 7a 65 29 2e 20 |e either| size). |
|00005c70| 20 59 6f 75 20 73 68 6f | 75 6c 64 20 62 65 20 61 | You sho|uld be a|
|00005c80| 62 6c 65 20 74 6f 20 75 | 73 65 20 73 6d 61 6c 6c |ble to u|se small|
|00005c90| 20 6d 6f 64 65 6c 20 74 | 6f 0a 58 63 6f 6d 70 69 | model t|o.Xcompi|
|00005ca0| 6c 65 20 63 6a 70 65 67 | 20 6f 72 20 64 6a 70 65 |le cjpeg| or djpe|
|00005cb0| 67 20 62 79 20 69 74 73 | 65 6c 66 2c 20 62 75 74 |g by its|elf, but|
|00005cc0| 20 79 6f 75 20 77 69 6c | 6c 20 70 72 6f 62 61 62 | you wil|l probab|
|00005cd0| 6c 79 20 68 61 76 65 20 | 74 6f 20 67 6f 20 74 6f |ly have |to go to|
|00005ce0| 20 6d 65 64 69 75 6d 0a | 58 6d 6f 64 65 6c 20 69 | medium.|Xmodel i|
|00005cf0| 66 20 79 6f 75 20 69 6e | 63 6c 75 64 65 20 74 68 |f you in|clude th|
|00005d00| 65 20 4a 50 45 47 20 63 | 6f 64 65 20 69 6e 20 61 |e JPEG c|ode in a|
|00005d10| 20 6c 61 72 67 65 72 20 | 61 70 70 6c 69 63 61 74 | larger |applicat|
|00005d20| 69 6f 6e 2e 20 20 54 68 | 69 73 20 73 68 6f 75 6c |ion. Th|is shoul|
|00005d30| 64 6e 27 74 0a 58 68 75 | 72 74 20 70 65 72 66 6f |dn't.Xhu|rt perfo|
|00005d40| 72 6d 61 6e 63 65 20 6d | 75 63 68 2e 20 20 59 6f |rmance m|uch. Yo|
|00005d50| 75 20 2a 77 69 6c 6c 2a | 20 74 61 6b 65 20 61 20 |u *will*| take a |
|00005d60| 6e 6f 74 69 63 65 61 62 | 6c 65 20 70 65 72 66 6f |noticeab|le perfo|
|00005d70| 72 6d 61 6e 63 65 20 68 | 69 74 20 69 66 20 79 6f |rmance h|it if yo|
|00005d80| 75 0a 58 63 6f 6d 70 69 | 6c 65 20 69 6e 20 61 20 |u.Xcompi|le in a |
|00005d90| 6c 61 72 67 65 2d 64 61 | 74 61 20 6d 65 6d 6f 72 |large-da|ta memor|
|00005da0| 79 20 6d 6f 64 65 6c 2c | 20 61 6e 64 20 79 6f 75 |y model,| and you|
|00005db0| 20 73 68 6f 75 6c 64 20 | 61 76 6f 69 64 20 22 68 | should |avoid "h|
|00005dc0| 75 67 65 22 20 6d 6f 64 | 65 6c 20 69 66 20 61 74 |uge" mod|el if at|
|00005dd0| 0a 58 61 6c 6c 20 70 6f | 73 73 69 62 6c 65 2e 20 |.Xall po|ssible. |
|00005de0| 20 42 65 20 73 75 72 65 | 20 74 68 61 74 20 4e 45 | Be sure| that NE|
|00005df0| 45 44 5f 46 41 52 5f 50 | 4f 49 4e 54 45 52 53 20 |ED_FAR_P|OINTERS |
|00005e00| 69 73 20 64 65 66 69 6e | 65 64 20 62 79 20 6a 63 |is defin|ed by jc|
|00005e10| 6f 6e 66 69 67 2e 68 20 | 6f 72 20 62 79 0a 58 74 |onfig.h |or by.Xt|
|00005e20| 68 65 20 4d 61 6b 65 66 | 69 6c 65 20 69 66 20 79 |he Makef|ile if y|
|00005e30| 6f 75 20 75 73 65 20 61 | 20 73 6d 61 6c 6c 2d 64 |ou use a| small-d|
|00005e40| 61 74 61 20 6d 6f 64 65 | 6c 3b 20 62 65 20 73 75 |ata mode|l; be su|
|00005e50| 72 65 20 69 74 20 69 73 | 20 4e 4f 54 20 64 65 66 |re it is| NOT def|
|00005e60| 69 6e 65 64 20 69 66 20 | 79 6f 75 0a 58 75 73 65 |ined if |you.Xuse|
|00005e70| 20 61 20 6c 61 72 67 65 | 2d 64 61 74 61 20 6d 65 | a large|-data me|
|00005e80| 6d 6f 72 79 20 6d 6f 64 | 65 6c 2e 20 20 28 41 73 |mory mod|el. (As|
|00005e90| 20 64 69 73 74 72 69 62 | 75 74 65 64 2c 20 6a 63 | distrib|uted, jc|
|00005ea0| 6f 6e 66 69 67 2e 68 20 | 64 65 66 69 6e 65 73 0a |onfig.h |defines.|
|00005eb0| 58 4e 45 45 44 5f 46 41 | 52 5f 50 4f 49 4e 54 45 |XNEED_FA|R_POINTE|
|00005ec0| 52 53 20 69 66 20 4d 53 | 44 4f 53 20 69 73 20 64 |RS if MS|DOS is d|
|00005ed0| 65 66 69 6e 65 64 2e 29 | 0a 58 0a 58 54 68 65 20 |efined.)|.X.XThe |
|00005ee0| 44 4f 53 2d 73 70 65 63 | 69 66 69 63 20 6d 65 6d |DOS-spec|ific mem|
|00005ef0| 6f 72 79 20 6d 61 6e 61 | 67 65 72 2c 20 6a 6d 65 |ory mana|ger, jme|
|00005f00| 6d 64 6f 73 2e 63 2c 20 | 73 68 6f 75 6c 64 20 62 |mdos.c, |should b|
|00005f10| 65 20 75 73 65 64 20 69 | 66 20 70 6f 73 73 69 62 |e used i|f possib|
|00005f20| 6c 65 2e 0a 58 28 42 65 | 20 73 75 72 65 20 74 6f |le..X(Be| sure to|
|00005f30| 20 69 6e 73 74 61 6c 6c | 20 6a 6d 65 6d 64 6f 73 | install| jmemdos|
|00005f40| 2e 68 20 61 6e 64 20 6a | 6d 65 6d 64 6f 73 61 2e |.h and j|memdosa.|
|00005f50| 61 73 6d 20 61 6c 6f 6e | 67 20 77 69 74 68 20 69 |asm alon|g with i|
|00005f60| 74 2e 29 20 20 49 66 20 | 79 6f 75 0a 58 63 61 6e |t.) If |you.Xcan|
|00005f70| 27 74 20 75 73 65 20 6a | 6d 65 6d 64 6f 73 2e 63 |'t use j|memdos.c|
|00005f80| 20 66 6f 72 20 73 6f 6d | 65 20 72 65 61 73 6f 6e | for som|e reason|
|00005f90| 20 2d 2d 2d 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 | --- for| example|
|00005fa0| 2c 20 62 65 63 61 75 73 | 65 20 79 6f 75 20 64 6f |, becaus|e you do|
|00005fb0| 6e 27 74 20 68 61 76 65 | 0a 58 61 20 4d 69 63 72 |n't have|.Xa Micr|
|00005fc0| 6f 73 6f 66 74 2d 63 6f | 6d 70 61 74 69 62 6c 65 |osoft-co|mpatible|
|00005fd0| 20 61 73 73 65 6d 62 6c | 65 72 20 74 6f 20 61 73 | assembl|er to as|
|00005fe0| 73 65 6d 62 6c 65 20 6a | 6d 65 6d 64 6f 73 61 2e |semble j|memdosa.|
|00005ff0| 61 73 6d 20 2d 2d 2d 20 | 79 6f 75 27 6c 6c 20 68 |asm --- |you'll h|
|00006000| 61 76 65 0a 58 74 6f 20 | 66 61 6c 6c 20 62 61 63 |ave.Xto |fall bac|
|00006010| 6b 20 74 6f 20 6a 6d 65 | 6d 61 6e 73 69 2e 63 20 |k to jme|mansi.c |
|00006020| 6f 72 20 6a 6d 65 6d 6e | 61 6d 65 2e 63 2e 20 20 |or jmemn|ame.c. |
|00006030| 49 4d 50 4f 52 54 41 4e | 54 3a 20 69 66 20 79 6f |IMPORTAN|T: if yo|
|00006040| 75 20 75 73 65 20 65 69 | 74 68 65 72 20 6f 66 0a |u use ei|ther of.|
|00006050| 58 74 68 65 20 6c 61 74 | 74 65 72 20 74 77 6f 20 |Xthe lat|ter two |
|00006060| 66 69 6c 65 73 2c 20 79 | 6f 75 20 77 69 6c 6c 20 |files, y|ou will |
|00006070| 68 61 76 65 20 74 6f 20 | 63 6f 6d 70 69 6c 65 20 |have to |compile |
|00006080| 69 6e 20 61 20 6c 61 72 | 67 65 2d 64 61 74 61 20 |in a lar|ge-data |
|00006090| 6d 65 6d 6f 72 79 20 6d | 6f 64 65 6c 0a 58 69 6e |memory m|odel.Xin|
|000060a0| 20 6f 72 64 65 72 20 74 | 6f 20 67 65 74 20 74 68 | order t|o get th|
|000060b0| 65 20 72 69 67 68 74 20 | 73 74 64 69 6f 20 6c 69 |e right |stdio li|
|000060c0| 62 72 61 72 79 2e 20 20 | 54 6f 6f 20 62 61 64 2e |brary. |Too bad.|
|000060d0| 0a 58 0a 58 4e 6f 6e 65 | 20 6f 66 20 74 68 65 20 |.X.XNone| of the |
|000060e0| 61 62 6f 76 65 20 61 64 | 76 69 63 65 20 61 70 70 |above ad|vice app|
|000060f0| 6c 69 65 73 20 69 66 20 | 79 6f 75 20 61 72 65 20 |lies if |you are |
|00006100| 75 73 69 6e 67 20 61 20 | 33 38 36 20 66 6c 61 74 |using a |386 flat|
|00006110| 2d 6d 65 6d 6f 72 79 2d | 73 70 61 63 65 0a 58 65 |-memory-|space.Xe|
|00006120| 6e 76 69 72 6f 6e 6d 65 | 6e 74 2c 20 73 75 63 68 |nvironme|nt, such|
|00006130| 20 61 73 20 44 4a 47 50 | 50 20 6f 72 20 57 61 74 | as DJGP|P or Wat|
|00006140| 63 6f 6d 20 43 2e 20 20 | 28 41 6e 64 20 79 6f 75 |com C. |(And you|
|00006150| 20 73 68 6f 75 6c 64 20 | 75 73 65 20 6f 6e 65 20 | should |use one |
|00006160| 69 66 20 79 6f 75 20 68 | 61 76 65 0a 58 69 74 2c |if you h|ave.Xit,|
|00006170| 20 61 73 20 70 65 72 66 | 6f 72 6d 61 6e 63 65 20 | as perf|ormance |
|00006180| 77 69 6c 6c 20 62 65 20 | 6d 75 63 68 20 62 65 74 |will be |much bet|
|00006190| 74 65 72 20 74 68 61 6e | 20 38 30 38 36 2d 63 6f |ter than| 8086-co|
|000061a0| 6d 70 61 74 69 62 6c 65 | 20 63 6f 64 65 21 29 20 |mpatible| code!) |
|000061b0| 20 46 6f 72 0a 58 66 6c | 61 74 2d 6d 65 6d 6f 72 | For.Xfl|at-memor|
|000061c0| 79 2d 73 70 61 63 65 20 | 63 6f 6d 70 69 6c 65 72 |y-space |compiler|
|000061d0| 73 2c 20 64 6f 20 4e 4f | 54 20 64 65 66 69 6e 65 |s, do NO|T define|
|000061e0| 20 4e 45 45 44 5f 46 41 | 52 5f 50 4f 49 4e 54 45 | NEED_FA|R_POINTE|
|000061f0| 52 53 2c 20 61 6e 64 20 | 64 6f 20 4e 4f 54 20 75 |RS, and |do NOT u|
|00006200| 73 65 0a 58 6a 6d 65 6d | 64 6f 73 2e 63 2e 20 20 |se.Xjmem|dos.c. |
|00006210| 55 73 65 20 6a 6d 65 6d | 6e 6f 62 73 2e 63 20 69 |Use jmem|nobs.c i|
|00006220| 66 20 74 68 65 20 65 6e | 76 69 72 6f 6e 6d 65 6e |f the en|vironmen|
|00006230| 74 20 73 75 70 70 6c 69 | 65 73 20 61 64 65 71 75 |t suppli|es adequ|
|00006240| 61 74 65 20 76 69 72 74 | 75 61 6c 0a 58 6d 65 6d |ate virt|ual.Xmem|
|00006250| 6f 72 79 2c 20 6f 74 68 | 65 72 77 69 73 65 20 75 |ory, oth|erwise u|
|00006260| 73 65 20 6a 6d 65 6d 61 | 6e 73 69 2e 63 20 6f 72 |se jmema|nsi.c or|
|00006270| 20 6a 6d 65 6d 6e 61 6d | 65 2e 63 2e 0a 58 0a 58 | jmemnam|e.c..X.X|
|00006280| 4d 6f 73 74 20 4d 53 2d | 44 4f 53 20 63 6f 6d 70 |Most MS-|DOS comp|
|00006290| 69 6c 65 72 73 20 74 72 | 65 61 74 20 73 74 64 69 |ilers tr|eat stdi|
|000062a0| 6e 2f 73 74 64 6f 75 74 | 20 61 73 20 74 65 78 74 |n/stdout| as text|
|000062b0| 20 66 69 6c 65 73 2c 20 | 73 6f 20 79 6f 75 20 6d | files, |so you m|
|000062c0| 75 73 74 20 75 73 65 0a | 58 74 77 6f 2d 66 69 6c |ust use.|Xtwo-fil|
|000062d0| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 73 |e comman|d line s|
|000062e0| 74 79 6c 65 2e 20 20 42 | 75 74 20 69 66 20 79 6f |tyle. B|ut if yo|
|000062f0| 75 72 20 63 6f 6d 70 69 | 6c 65 72 20 68 61 73 20 |ur compi|ler has |
|00006300| 74 68 65 20 73 65 74 6d | 6f 64 65 28 29 20 6c 69 |the setm|ode() li|
|00006310| 62 72 61 72 79 0a 58 72 | 6f 75 74 69 6e 65 2c 20 |brary.Xr|outine, |
|00006320| 79 6f 75 20 63 61 6e 20 | 64 65 66 69 6e 65 20 55 |you can |define U|
|00006330| 53 45 5f 53 45 54 4d 4f | 44 45 20 74 6f 20 67 65 |SE_SETMO|DE to ge|
|00006340| 74 20 6f 6e 65 2d 66 69 | 6c 65 20 73 74 79 6c 65 |t one-fi|le style|
|00006350| 2e 20 20 28 44 6f 6e 27 | 74 20 66 6f 72 67 65 74 |. (Don'|t forget|
|00006360| 20 74 6f 0a 58 63 68 61 | 6e 67 65 20 74 68 65 20 | to.Xcha|nge the |
|00006370| 22 6d 61 6b 65 20 74 65 | 73 74 22 20 73 63 72 69 |"make te|st" scri|
|00006380| 70 74 20 69 6e 20 74 68 | 65 20 4d 61 6b 65 66 69 |pt in th|e Makefi|
|00006390| 6c 65 20 69 66 20 79 6f | 75 20 64 6f 20 73 6f 2e |le if yo|u do so.|
|000063a0| 29 0a 58 0a 58 49 66 20 | 79 6f 75 20 61 64 64 20 |).X.XIf |you add |
|000063b0| 6d 6f 72 65 20 73 77 69 | 74 63 68 65 73 20 74 6f |more swi|tches to|
|000063c0| 20 43 46 4c 41 47 53 20 | 69 6e 20 74 68 65 20 44 | CFLAGS |in the D|
|000063d0| 4f 53 2d 73 70 65 63 69 | 66 69 63 20 6d 61 6b 65 |OS-speci|fic make|
|000063e0| 66 69 6c 65 73 2c 20 79 | 6f 75 20 61 72 65 0a 58 |files, y|ou are.X|
|000063f0| 6c 69 6b 65 6c 79 20 74 | 6f 20 72 75 6e 20 75 70 |likely t|o run up|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.