home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
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 50 61 |.sources|.misc.Pa|
|00000020| 74 68 3a 20 73 70 61 72 | 6b 79 21 6b 65 6e 74 0a |th: spar|ky!kent.|
|00000030| 46 72 6f 6d 3a 20 6a 70 | 65 67 2d 69 6e 66 6f 40 |From: jp|eg-info@|
|00000040| 75 75 6e 65 74 2e 75 75 | 2e 6e 65 74 20 28 49 6e |uunet.uu|.net (In|
|00000050| 64 65 70 65 6e 64 65 6e | 74 20 4a 50 45 47 20 47 |dependen|t JPEG G|
|00000060| 72 6f 75 70 29 0a 53 75 | 62 6a 65 63 74 3a 20 20 |roup).Su|bject: |
|00000070| 76 33 34 69 30 36 33 3a | 20 20 6a 70 65 67 20 2d |v34i063:| jpeg -|
|00000080| 20 4a 50 45 47 20 69 6d | 61 67 65 20 63 6f 6d 70 | JPEG im|age comp|
|00000090| 72 65 73 73 69 6f 6e 2c | 20 50 61 72 74 30 39 2f |ression,| Part09/|
|000000a0| 31 38 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |18.Messa|ge-ID: <|
|000000b0| 31 39 39 32 44 65 63 31 | 37 2e 30 34 31 38 34 39 |1992Dec1|7.041849|
|000000c0| 2e 32 33 36 39 39 40 73 | 70 61 72 6b 79 2e 69 6d |.23699@s|parky.im|
|000000d0| 64 2e 73 74 65 72 6c 69 | 6e 67 2e 63 6f 6d 3e 0a |d.sterli|ng.com>.|
|000000e0| 46 6f 6c 6c 6f 77 75 70 | 2d 54 6f 3a 20 63 6f 6d |Followup|-To: com|
|000000f0| 70 2e 73 6f 75 72 63 65 | 73 2e 64 0a 58 2d 4d 64 |p.source|s.d.X-Md|
|00000100| 34 2d 53 69 67 6e 61 74 | 75 72 65 3a 20 33 31 37 |4-Signat|ure: 317|
|00000110| 31 35 31 38 39 63 61 65 | 36 61 37 65 33 61 39 61 |15189cae|6a7e3a9a|
|00000120| 32 36 65 38 64 36 33 65 | 35 61 64 31 36 0a 53 65 |26e8d63e|5ad16.Se|
|00000130| 6e 64 65 72 3a 20 6b 65 | 6e 74 40 73 70 61 72 6b |nder: ke|nt@spark|
|00000140| 79 2e 69 6d 64 2e 73 74 | 65 72 6c 69 6e 67 2e 63 |y.imd.st|erling.c|
|00000150| 6f 6d 20 28 4b 65 6e 74 | 20 4c 61 6e 64 66 69 65 |om (Kent| Landfie|
|00000160| 6c 64 29 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |ld).Orga|nization|
|00000170| 3a 20 53 74 65 72 6c 69 | 6e 67 20 53 6f 66 74 77 |: Sterli|ng Softw|
|00000180| 61 72 65 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |are.Refe|rences: |
|00000190| 3c 63 73 6d 2d 76 33 34 | 69 30 35 35 3d 6a 70 65 |<csm-v34|i055=jpe|
|000001a0| 67 2e 32 32 30 34 32 34 | 40 73 70 61 72 6b 79 2e |g.220424|@sparky.|
|000001b0| 49 4d 44 2e 53 74 65 72 | 6c 69 6e 67 2e 43 4f 4d |IMD.Ster|ling.COM|
|000001c0| 3e 0a 44 61 74 65 3a 20 | 54 68 75 2c 20 31 37 20 |>.Date: |Thu, 17 |
|000001d0| 44 65 63 20 31 39 39 32 | 20 30 34 3a 31 38 3a 34 |Dec 1992| 04:18:4|
|000001e0| 39 20 47 4d 54 0a 41 70 | 70 72 6f 76 65 64 3a 20 |9 GMT.Ap|proved: |
|000001f0| 6b 65 6e 74 40 73 70 61 | 72 6b 79 2e 69 6d 64 2e |kent@spa|rky.imd.|
|00000200| 73 74 65 72 6c 69 6e 67 | 2e 63 6f 6d 0a 4c 69 6e |sterling|.com.Lin|
|00000210| 65 73 3a 20 31 32 30 31 | 0a 0a 53 75 62 6d 69 74 |es: 1201|..Submit|
|00000220| 74 65 64 2d 62 79 3a 20 | 6a 70 65 67 2d 69 6e 66 |ted-by: |jpeg-inf|
|00000230| 6f 40 75 75 6e 65 74 2e | 75 75 2e 6e 65 74 20 28 |o@uunet.|uu.net (|
|00000240| 49 6e 64 65 70 65 6e 64 | 65 6e 74 20 4a 50 45 47 |Independ|ent JPEG|
|00000250| 20 47 72 6f 75 70 29 0a | 50 6f 73 74 69 6e 67 2d | Group).|Posting-|
|00000260| 6e 75 6d 62 65 72 3a 20 | 56 6f 6c 75 6d 65 20 33 |number: |Volume 3|
|00000270| 34 2c 20 49 73 73 75 65 | 20 36 33 0a 41 72 63 68 |4, Issue| 63.Arch|
|00000280| 69 76 65 2d 6e 61 6d 65 | 3a 20 6a 70 65 67 2f 70 |ive-name|: jpeg/p|
|00000290| 61 72 74 30 39 0a 45 6e | 76 69 72 6f 6e 6d 65 6e |art09.En|vironmen|
|000002a0| 74 3a 20 55 4e 49 58 2c | 20 56 4d 53 2c 20 4d 53 |t: UNIX,| VMS, MS|
|000002b0| 2d 44 4f 53 2c 20 4d 61 | 63 2c 20 41 6d 69 67 61 |-DOS, Ma|c, Amiga|
|000002c0| 2c 20 41 74 61 72 69 2c | 20 43 72 61 79 0a 53 75 |, Atari,| Cray.Su|
|000002d0| 70 65 72 73 65 64 65 73 | 3a 20 6a 70 65 67 3a 20 |persedes|: jpeg: |
|000002e0| 56 6f 6c 75 6d 65 20 32 | 39 2c 20 49 73 73 75 65 |Volume 2|9, Issue|
|000002f0| 20 31 2d 31 38 0a 0a 23 | 21 20 2f 62 69 6e 2f 73 | 1-18..#|! /bin/s|
|00000300| 68 0a 23 20 54 68 69 73 | 20 69 73 20 61 20 73 68 |h.# This| is a sh|
|00000310| 65 6c 6c 20 61 72 63 68 | 69 76 65 2e 20 20 52 65 |ell arch|ive. Re|
|00000320| 6d 6f 76 65 20 61 6e 79 | 74 68 69 6e 67 20 62 65 |move any|thing be|
|00000330| 66 6f 72 65 20 74 68 69 | 73 20 6c 69 6e 65 2c 20 |fore thi|s line, |
|00000340| 74 68 65 6e 20 66 65 65 | 64 20 69 74 0a 23 20 69 |then fee|d it.# i|
|00000350| 6e 74 6f 20 61 20 73 68 | 65 6c 6c 20 76 69 61 20 |nto a sh|ell via |
|00000360| 22 73 68 20 66 69 6c 65 | 22 20 6f 72 20 73 69 6d |"sh file|" or sim|
|00000370| 69 6c 61 72 2e 20 20 54 | 6f 20 6f 76 65 72 77 72 |ilar. T|o overwr|
|00000380| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00000390| 65 73 2c 0a 23 20 74 79 | 70 65 20 22 73 68 20 66 |es,.# ty|pe "sh f|
|000003a0| 69 6c 65 20 2d 63 22 2e | 0a 23 20 43 6f 6e 74 65 |ile -c".|.# Conte|
|000003b0| 6e 74 73 3a 20 20 53 45 | 54 55 50 20 61 72 63 68 |nts: SE|TUP arch|
|000003c0| 69 74 65 63 74 75 72 65 | 2e 41 20 6a 69 6e 63 6c |itecture|.A jincl|
|000003d0| 75 64 65 2e 68 0a 23 20 | 57 72 61 70 70 65 64 20 |ude.h.# |Wrapped |
|000003e0| 62 79 20 6b 65 6e 74 40 | 73 70 61 72 6b 79 20 6f |by kent@|sparky o|
|000003f0| 6e 20 57 65 64 20 44 65 | 63 20 31 36 20 32 30 3a |n Wed De|c 16 20:|
|00000400| 35 32 3a 32 38 20 31 39 | 39 32 0a 50 41 54 48 3d |52:28 19|92.PATH=|
|00000410| 2f 62 69 6e 3a 2f 75 73 | 72 2f 62 69 6e 3a 2f 75 |/bin:/us|r/bin:/u|
|00000420| 73 72 2f 75 63 62 3a 2f | 75 73 72 2f 6c 6f 63 61 |sr/ucb:/|usr/loca|
|00000430| 6c 2f 62 69 6e 3a 2f 75 | 73 72 2f 6c 62 69 6e 20 |l/bin:/u|sr/lbin |
|00000440| 3b 20 65 78 70 6f 72 74 | 20 50 41 54 48 0a 65 63 |; export| PATH.ec|
|00000450| 68 6f 20 49 66 20 74 68 | 69 73 20 61 72 63 68 69 |ho If th|is archi|
|00000460| 76 65 20 69 73 20 63 6f | 6d 70 6c 65 74 65 2c 20 |ve is co|mplete, |
|00000470| 79 6f 75 20 77 69 6c 6c | 20 73 65 65 20 74 68 65 |you will| see the|
|00000480| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 65 73 73 61 | followi|ng messa|
|00000490| 67 65 3a 0a 65 63 68 6f | 20 27 20 20 20 20 20 20 |ge:.echo| ' |
|000004a0| 20 20 20 20 22 73 68 61 | 72 3a 20 45 6e 64 20 6f | "sha|r: End o|
|000004b0| 66 20 61 72 63 68 69 76 | 65 20 39 20 28 6f 66 20 |f archiv|e 9 (of |
|000004c0| 31 38 29 2e 22 27 0a 69 | 66 20 74 65 73 74 20 2d |18)."'.i|f test -|
|000004d0| 66 20 27 53 45 54 55 50 | 27 20 2d 61 20 22 24 7b |f 'SETUP|' -a "${|
|000004e0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|000004f0| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00000500| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00000510| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00000520| 5c 22 27 53 45 54 55 50 | 27 5c 22 0a 65 6c 73 65 |\"'SETUP|'\".else|
|00000530| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |. echo |shar: Ex|
|00000540| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 53 45 54 55 |tracting| \"'SETU|
|00000550| 50 27 5c 22 20 5c 28 32 | 36 32 34 32 20 63 68 61 |P'\" \(2|6242 cha|
|00000560| 72 61 63 74 65 72 73 5c | 29 0a 20 20 73 65 64 20 |racters\|). sed |
|00000570| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 53 45 54 55 50 |"s/^X//"| >'SETUP|
|00000580| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00000590| 27 0a 58 53 45 54 55 50 | 20 69 6e 73 74 72 75 63 |'.XSETUP| instruc|
|000005a0| 74 69 6f 6e 73 20 66 6f | 72 20 74 68 65 20 49 6e |tions fo|r the In|
|000005b0| 64 65 70 65 6e 64 65 6e | 74 20 4a 50 45 47 20 47 |dependen|t JPEG G|
|000005c0| 72 6f 75 70 27 73 20 4a | 50 45 47 20 73 6f 66 74 |roup's J|PEG soft|
|000005d0| 77 61 72 65 0a 58 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ware.X==|========|
|000005e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000005f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000600| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000610| 3d 3d 3d 3d 3d 3d 3d 0a | 58 0a 58 54 68 69 73 20 |=======.|X.XThis |
|00000620| 66 69 6c 65 20 65 78 70 | 6c 61 69 6e 73 20 68 6f |file exp|lains ho|
|00000630| 77 20 74 6f 20 63 6f 6e | 66 69 67 75 72 65 20 61 |w to con|figure a|
|00000640| 6e 64 20 63 6f 6d 70 69 | 6c 65 20 74 68 65 20 4a |nd compi|le the J|
|00000650| 50 45 47 20 73 6f 66 74 | 77 61 72 65 2e 20 20 57 |PEG soft|ware. W|
|00000660| 65 20 68 61 76 65 0a 58 | 74 72 69 65 64 20 74 6f |e have.X|tried to|
|00000670| 20 6d 61 6b 65 20 74 68 | 69 73 20 73 6f 66 74 77 | make th|is softw|
|00000680| 61 72 65 20 65 78 74 72 | 65 6d 65 6c 79 20 70 6f |are extr|emely po|
|00000690| 72 74 61 62 6c 65 20 61 | 6e 64 20 66 6c 65 78 69 |rtable a|nd flexi|
|000006a0| 62 6c 65 2c 20 73 6f 20 | 74 68 61 74 20 69 74 20 |ble, so |that it |
|000006b0| 63 61 6e 20 62 65 0a 58 | 61 64 61 70 74 65 64 20 |can be.X|adapted |
|000006c0| 74 6f 20 61 6c 6d 6f 73 | 74 20 61 6e 79 20 65 6e |to almos|t any en|
|000006d0| 76 69 72 6f 6e 6d 65 6e | 74 2e 20 20 54 68 65 20 |vironmen|t. The |
|000006e0| 64 6f 77 6e 73 69 64 65 | 20 6f 66 20 74 68 69 73 |downside| of this|
|000006f0| 20 64 65 63 69 73 69 6f | 6e 20 69 73 20 74 68 61 | decisio|n is tha|
|00000700| 74 20 74 68 65 0a 58 69 | 6e 73 74 61 6c 6c 61 74 |t the.Xi|nstallat|
|00000710| 69 6f 6e 20 70 72 6f 63 | 65 73 73 20 69 73 20 6e |ion proc|ess is n|
|00000720| 6f 74 20 76 65 72 79 20 | 61 75 74 6f 6d 61 74 69 |ot very |automati|
|00000730| 63 3b 20 79 6f 75 20 77 | 69 6c 6c 20 6e 65 65 64 |c; you w|ill need|
|00000740| 20 61 74 20 6c 65 61 73 | 74 20 61 20 6c 69 74 74 | at leas|t a litt|
|00000750| 6c 65 0a 58 66 61 6d 69 | 6c 69 61 72 69 74 79 20 |le.Xfami|liarity |
|00000760| 77 69 74 68 20 43 20 70 | 72 6f 67 72 61 6d 6d 69 |with C p|rogrammi|
|00000770| 6e 67 20 61 6e 64 20 70 | 72 6f 67 72 61 6d 20 62 |ng and p|rogram b|
|00000780| 75 69 6c 64 20 70 72 6f | 63 65 64 75 72 65 73 20 |uild pro|cedures |
|00000790| 66 6f 72 20 79 6f 75 72 | 20 73 79 73 74 65 6d 2e |for your| system.|
|000007a0| 0a 58 0a 58 54 68 69 73 | 20 66 69 6c 65 20 63 6f |.X.XThis| file co|
|000007b0| 6e 74 61 69 6e 73 20 67 | 65 6e 65 72 61 6c 20 69 |ntains g|eneral i|
|000007c0| 6e 73 74 72 75 63 74 69 | 6f 6e 73 2c 20 74 68 65 |nstructi|ons, the|
|000007d0| 6e 20 73 65 63 74 69 6f | 6e 73 20 6f 66 20 73 70 |n sectio|ns of sp|
|000007e0| 65 63 69 66 69 63 20 68 | 69 6e 74 73 20 66 6f 72 |ecific h|ints for|
|000007f0| 0a 58 63 65 72 74 61 69 | 6e 20 73 79 73 74 65 6d |.Xcertai|n system|
|00000800| 73 2e 20 20 59 6f 75 20 | 6d 61 79 20 73 61 76 65 |s. You |may save|
|00000810| 20 79 6f 75 72 73 65 6c | 66 20 63 6f 6e 73 69 64 | yoursel|f consid|
|00000820| 65 72 61 62 6c 65 20 74 | 69 6d 65 20 69 66 20 79 |erable t|ime if y|
|00000830| 6f 75 20 73 63 61 6e 20 | 74 68 65 0a 58 77 68 6f |ou scan |the.Xwho|
|00000840| 6c 65 20 66 69 6c 65 20 | 62 65 66 6f 72 65 20 73 |le file |before s|
|00000850| 74 61 72 74 69 6e 67 20 | 74 6f 20 64 6f 20 61 6e |tarting |to do an|
|00000860| 79 74 68 69 6e 67 2e 0a | 58 0a 58 42 65 66 6f 72 |ything..|X.XBefor|
|00000870| 65 20 69 6e 73 74 61 6c | 6c 69 6e 67 20 74 68 65 |e instal|ling the|
|00000880| 20 73 6f 66 74 77 61 72 | 65 20 79 6f 75 20 6d 75 | softwar|e you mu|
|00000890| 73 74 20 75 6e 70 61 63 | 6b 20 74 68 65 20 64 69 |st unpac|k the di|
|000008a0| 73 74 72 69 62 75 74 65 | 64 20 73 6f 75 72 63 65 |stribute|d source|
|000008b0| 20 63 6f 64 65 2e 0a 58 | 53 69 6e 63 65 20 79 6f | code..X|Since yo|
|000008c0| 75 20 61 72 65 20 72 65 | 61 64 69 6e 67 20 74 68 |u are re|ading th|
|000008d0| 69 73 20 66 69 6c 65 2c | 20 79 6f 75 20 68 61 76 |is file,| you hav|
|000008e0| 65 20 70 72 6f 62 61 62 | 6c 79 20 61 6c 72 65 61 |e probab|ly alrea|
|000008f0| 64 79 20 73 75 63 63 65 | 65 64 65 64 20 69 6e 20 |dy succe|eded in |
|00000900| 74 68 69 73 0a 58 74 61 | 73 6b 2e 20 20 48 6f 77 |this.Xta|sk. How|
|00000910| 65 76 65 72 2c 20 74 68 | 65 72 65 20 69 73 20 6f |ever, th|ere is o|
|00000920| 6e 65 20 70 6f 74 65 6e | 74 69 61 6c 20 74 72 61 |ne poten|tial tra|
|00000930| 70 20 69 66 20 79 6f 75 | 20 61 72 65 20 6f 6e 20 |p if you| are on |
|00000940| 61 20 6e 6f 6e 2d 55 6e | 69 78 20 73 79 73 74 65 |a non-Un|ix syste|
|00000950| 6d 3a 0a 58 79 6f 75 20 | 6d 61 79 20 6e 65 65 64 |m:.Xyou |may need|
|00000960| 20 74 6f 20 63 6f 6e 76 | 65 72 74 20 74 68 65 73 | to conv|ert thes|
|00000970| 65 20 66 69 6c 65 73 20 | 74 6f 20 74 68 65 20 6c |e files |to the l|
|00000980| 6f 63 61 6c 20 73 74 61 | 6e 64 61 72 64 20 74 65 |ocal sta|ndard te|
|00000990| 78 74 20 66 69 6c 65 20 | 66 6f 72 6d 61 74 0a 58 |xt file |format.X|
|000009a0| 28 66 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 69 66 |(for exa|mple, if|
|000009b0| 20 79 6f 75 20 61 72 65 | 20 6f 6e 20 4d 53 2d 44 | you are| on MS-D|
|000009c0| 4f 53 20 79 6f 75 20 70 | 72 6f 62 61 62 6c 79 20 |OS you p|robably |
|000009d0| 68 61 76 65 20 74 6f 20 | 63 6f 6e 76 65 72 74 20 |have to |convert |
|000009e0| 4c 46 20 65 6e 64 2d 6f | 66 2d 6c 69 6e 65 0a 58 |LF end-o|f-line.X|
|000009f0| 74 6f 20 43 52 2f 4c 46 | 29 2e 20 20 49 66 20 73 |to CR/LF|). If s|
|00000a00| 6f 2c 20 61 70 70 6c 79 | 20 74 68 65 20 63 6f 6e |o, apply| the con|
|00000a10| 76 65 72 73 69 6f 6e 20 | 74 6f 20 61 6c 6c 20 74 |version |to all t|
|00000a20| 68 65 20 66 69 6c 65 73 | 20 45 58 43 45 50 54 20 |he files| EXCEPT |
|00000a30| 74 68 6f 73 65 20 77 68 | 6f 73 65 0a 58 6e 61 6d |those wh|ose.Xnam|
|00000a40| 65 73 20 62 65 67 69 6e | 20 77 69 74 68 20 22 74 |es begin| with "t|
|00000a50| 65 73 74 22 2e 20 20 54 | 68 65 20 74 65 73 74 20 |est". T|he test |
|00000a60| 66 69 6c 65 73 20 63 6f | 6e 74 61 69 6e 20 62 69 |files co|ntain bi|
|00000a70| 6e 61 72 79 20 64 61 74 | 61 3b 20 69 66 20 79 6f |nary dat|a; if yo|
|00000a80| 75 20 63 68 61 6e 67 65 | 0a 58 74 68 65 6d 20 69 |u change|.Xthem i|
|00000a90| 6e 20 61 6e 79 20 77 61 | 79 20 74 68 65 6e 20 74 |n any wa|y then t|
|00000aa0| 68 65 20 73 65 6c 66 2d | 74 65 73 74 20 77 69 6c |he self-|test wil|
|00000ab0| 6c 20 67 69 76 65 20 62 | 61 64 20 72 65 73 75 6c |l give b|ad resul|
|00000ac0| 74 73 2e 0a 58 0a 58 0a | 58 53 54 45 50 20 31 3a |ts..X.X.|XSTEP 1:|
|00000ad0| 20 50 52 45 50 41 52 45 | 20 41 20 4d 41 4b 45 46 | PREPARE| A MAKEF|
|00000ae0| 49 4c 45 0a 58 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ILE.X===|========|
|00000af0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0a |========|=======.|
|00000b00| 58 0a 58 46 69 72 73 74 | 2c 20 73 65 6c 65 63 74 |X.XFirst|, select|
|00000b10| 20 61 20 6d 61 6b 65 66 | 69 6c 65 20 61 6e 64 20 | a makef|ile and |
|00000b20| 63 6f 70 79 20 69 74 20 | 74 6f 20 22 4d 61 6b 65 |copy it |to "Make|
|00000b30| 66 69 6c 65 22 20 28 6f | 72 20 77 68 61 74 65 76 |file" (o|r whatev|
|00000b40| 65 72 20 79 6f 75 72 20 | 76 65 72 73 69 6f 6e 0a |er your |version.|
|00000b50| 58 6f 66 20 6d 61 6b 65 | 20 75 73 65 73 20 61 73 |Xof make| uses as|
|00000b60| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 6d 61 6b | the def|ault mak|
|00000b70| 65 66 69 6c 65 20 6e 61 | 6d 65 3b 20 66 6f 72 20 |efile na|me; for |
|00000b80| 65 78 61 6d 70 6c 65 2c | 20 22 6d 61 6b 65 66 69 |example,| "makefi|
|00000b90| 6c 65 2e 6d 61 6b 22 20 | 66 6f 72 0a 58 6f 6c 64 |le.mak" |for.Xold|
|00000ba0| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 42 6f 72 | version|s of Bor|
|00000bb0| 6c 61 6e 64 20 43 29 2e | 20 20 57 65 20 69 6e 63 |land C).| We inc|
|00000bc0| 6c 75 64 65 20 73 65 76 | 65 72 61 6c 20 73 74 61 |lude sev|eral sta|
|00000bd0| 6e 64 61 72 64 20 6d 61 | 6b 65 66 69 6c 65 73 20 |ndard ma|kefiles |
|00000be0| 69 6e 20 74 68 65 0a 58 | 64 69 73 74 72 69 62 75 |in the.X|distribu|
|00000bf0| 74 69 6f 6e 3a 0a 58 0a | 58 09 6d 61 6b 65 66 69 |tion:.X.|X.makefi|
|00000c00| 6c 65 2e 61 6e 73 69 3a | 09 66 6f 72 20 55 6e 69 |le.ansi:|.for Uni|
|00000c10| 78 20 73 79 73 74 65 6d | 73 20 77 69 74 68 20 41 |x system|s with A|
|00000c20| 4e 53 49 2d 63 6f 6d 70 | 61 74 69 62 6c 65 20 43 |NSI-comp|atible C|
|00000c30| 20 63 6f 6d 70 69 6c 65 | 72 73 2e 0a 58 09 6d 61 | compile|rs..X.ma|
|00000c40| 6b 65 66 69 6c 65 2e 75 | 6e 69 78 3a 09 66 6f 72 |kefile.u|nix:.for|
|00000c50| 20 55 6e 69 78 20 73 79 | 73 74 65 6d 73 20 77 69 | Unix sy|stems wi|
|00000c60| 74 68 20 6e 6f 6e 2d 41 | 4e 53 49 20 43 20 63 6f |th non-A|NSI C co|
|00000c70| 6d 70 69 6c 65 72 73 2e | 0a 58 09 6d 61 6b 65 66 |mpilers.|.X.makef|
|00000c80| 69 6c 65 2e 6d 63 35 3a | 09 66 6f 72 20 4d 69 63 |ile.mc5:|.for Mic|
|00000c90| 72 6f 73 6f 66 74 20 43 | 20 35 2e 78 20 75 6e 64 |rosoft C| 5.x und|
|00000ca0| 65 72 20 4d 53 2d 44 4f | 53 2e 0a 58 09 6d 61 6b |er MS-DO|S..X.mak|
|00000cb0| 65 66 69 6c 65 2e 6d 63 | 36 3a 09 66 6f 72 20 4d |efile.mc|6:.for M|
|00000cc0| 69 63 72 6f 73 6f 66 74 | 20 43 20 36 2e 78 20 61 |icrosoft| C 6.x a|
|00000cd0| 6e 64 20 75 70 20 75 6e | 64 65 72 20 4d 53 2d 44 |nd up un|der MS-D|
|00000ce0| 4f 53 2e 0a 58 09 6d 61 | 6b 65 66 69 6c 65 2e 62 |OS..X.ma|kefile.b|
|00000cf0| 63 63 3a 09 66 6f 72 20 | 42 6f 72 6c 61 6e 64 20 |cc:.for |Borland |
|00000d00| 43 20 28 54 75 72 62 6f | 20 43 29 20 75 6e 64 65 |C (Turbo| C) unde|
|00000d10| 72 20 4d 53 2d 44 4f 53 | 2e 0a 58 09 6d 61 6b 65 |r MS-DOS|..X.make|
|00000d20| 66 69 6c 65 2e 6d 61 6e | 78 3a 09 66 6f 72 20 4d |file.man|x:.for M|
|00000d30| 61 6e 78 20 41 7a 74 65 | 63 20 43 20 6f 6e 20 41 |anx Azte|c C on A|
|00000d40| 6d 69 67 61 73 2e 0a 58 | 09 6d 61 6b 65 66 69 6c |migas..X|.makefil|
|00000d50| 65 2e 73 61 73 3a 09 66 | 6f 72 20 53 41 53 20 43 |e.sas:.f|or SAS C|
|00000d60| 20 6f 6e 20 41 6d 69 67 | 61 73 2e 0a 58 09 6d 61 | on Amig|as..X.ma|
|00000d70| 6b 63 6a 70 65 67 2e 73 | 74 3a 09 70 72 6f 6a 65 |kcjpeg.s|t:.proje|
|00000d80| 63 74 20 66 69 6c 65 20 | 66 6f 72 20 41 74 61 72 |ct file |for Atar|
|00000d90| 69 20 53 54 2f 53 54 45 | 2f 54 54 20 50 75 72 65 |i ST/STE|/TT Pure|
|00000da0| 20 43 20 6f 72 20 54 75 | 72 62 6f 20 43 2e 0a 58 | C or Tu|rbo C..X|
|00000db0| 09 6d 61 6b 64 6a 70 65 | 67 2e 73 74 3a 09 70 72 |.makdjpe|g.st:.pr|
|00000dc0| 6f 6a 65 63 74 20 66 69 | 6c 65 20 66 6f 72 20 41 |oject fi|le for A|
|00000dd0| 74 61 72 69 20 53 54 2f | 53 54 45 2f 54 54 20 50 |tari ST/|STE/TT P|
|00000de0| 75 72 65 20 43 20 6f 72 | 20 54 75 72 62 6f 20 43 |ure C or| Turbo C|
|00000df0| 2e 0a 58 09 6d 61 6b 6c | 6a 70 65 67 2e 73 74 3a |..X.makl|jpeg.st:|
|00000e00| 09 70 72 6f 6a 65 63 74 | 20 66 69 6c 65 20 66 6f |.project| file fo|
|00000e10| 72 20 41 74 61 72 69 20 | 53 54 2f 53 54 45 2f 54 |r Atari |ST/STE/T|
|00000e20| 54 20 50 75 72 65 20 43 | 20 6f 72 20 54 75 72 62 |T Pure C| or Turb|
|00000e30| 6f 20 43 2e 0a 58 09 6d | 61 6b 65 66 69 6c 65 2e |o C..X.m|akefile.|
|00000e40| 6d 6d 73 3a 09 66 6f 72 | 20 56 41 58 2f 56 4d 53 |mms:.for| VAX/VMS|
|00000e50| 20 73 79 73 74 65 6d 73 | 20 77 69 74 68 20 4d 4d | systems| with MM|
|00000e60| 53 2e 0a 58 09 6d 61 6b | 65 66 69 6c 65 2e 76 6d |S..X.mak|efile.vm|
|00000e70| 73 3a 09 66 6f 72 20 56 | 41 58 2f 56 4d 53 20 73 |s:.for V|AX/VMS s|
|00000e80| 79 73 74 65 6d 73 20 77 | 69 74 68 6f 75 74 20 4d |ystems w|ithout M|
|00000e90| 4d 53 2e 0a 58 0a 58 49 | 66 20 79 6f 75 20 64 6f |MS..X.XI|f you do|
|00000ea0| 6e 27 74 20 73 65 65 20 | 61 20 6d 61 6b 65 66 69 |n't see |a makefi|
|00000eb0| 6c 65 20 66 6f 72 20 79 | 6f 75 72 20 73 79 73 74 |le for y|our syst|
|00000ec0| 65 6d 2c 20 77 65 20 72 | 65 63 6f 6d 6d 65 6e 64 |em, we r|ecommend|
|00000ed0| 20 73 74 61 72 74 69 6e | 67 20 66 72 6f 6d 20 65 | startin|g from e|
|00000ee0| 69 74 68 65 72 0a 58 6d | 61 6b 65 66 69 6c 65 2e |ither.Xm|akefile.|
|00000ef0| 61 6e 73 69 20 6f 72 20 | 6d 61 6b 65 66 69 6c 65 |ansi or |makefile|
|00000f00| 2e 75 6e 69 78 2c 20 64 | 65 70 65 6e 64 69 6e 67 |.unix, d|epending|
|00000f10| 20 6f 6e 20 77 68 65 74 | 68 65 72 20 79 6f 75 72 | on whet|her your|
|00000f20| 20 63 6f 6d 70 69 6c 65 | 72 20 61 63 63 65 70 74 | compile|r accept|
|00000f30| 73 0a 58 41 4e 53 49 20 | 43 20 6f 72 20 6e 6f 74 |s.XANSI |C or not|
|00000f40| 2e 20 20 41 63 74 75 61 | 6c 6c 79 20 79 6f 75 20 |. Actua|lly you |
|00000f50| 73 68 6f 75 6c 64 20 73 | 74 61 72 74 20 77 69 74 |should s|tart wit|
|00000f60| 68 20 6d 61 6b 65 66 69 | 6c 65 2e 61 6e 73 69 20 |h makefi|le.ansi |
|00000f70| 77 68 65 6e 65 76 65 72 | 20 79 6f 75 72 0a 58 63 |whenever| your.Xc|
|00000f80| 6f 6d 70 69 6c 65 72 20 | 73 75 70 70 6f 72 74 73 |ompiler |supports|
|00000f90| 20 41 4e 53 49 2d 73 74 | 79 6c 65 20 66 75 6e 63 | ANSI-st|yle func|
|00000fa0| 74 69 6f 6e 20 64 65 66 | 69 6e 69 74 69 6f 6e 73 |tion def|initions|
|00000fb0| 3b 20 79 6f 75 20 64 6f | 6e 27 74 20 6e 65 65 64 |; you do|n't need|
|00000fc0| 20 66 75 6c 6c 20 41 4e | 53 49 0a 58 63 6f 6d 70 | full AN|SI.Xcomp|
|00000fd0| 61 74 69 62 69 6c 69 74 | 79 2e 20 20 54 68 65 20 |atibilit|y. The |
|00000fe0| 64 69 66 66 65 72 65 6e | 63 65 20 62 65 74 77 65 |differen|ce betwe|
|00000ff0| 65 6e 20 74 68 65 20 74 | 77 6f 20 6d 61 6b 65 66 |en the t|wo makef|
|00001000| 69 6c 65 73 20 69 73 20 | 74 68 61 74 20 6d 61 6b |iles is |that mak|
|00001010| 65 66 69 6c 65 2e 75 6e | 69 78 0a 58 70 72 65 70 |efile.un|ix.Xprep|
|00001020| 72 6f 63 65 73 73 65 73 | 20 74 68 65 20 73 6f 75 |rocesses| the sou|
|00001030| 72 63 65 20 63 6f 64 65 | 20 74 6f 20 63 6f 6e 76 |rce code| to conv|
|00001040| 65 72 74 20 66 75 6e 63 | 74 69 6f 6e 20 64 65 66 |ert func|tion def|
|00001050| 69 6e 69 74 69 6f 6e 73 | 20 74 6f 20 6f 6c 64 2d |initions| to old-|
|00001060| 73 74 79 6c 65 20 43 2e | 0a 58 28 4f 75 72 20 74 |style C.|.X(Our t|
|00001070| 68 61 6e 6b 73 20 74 6f | 20 50 65 74 65 72 20 44 |hanks to| Peter D|
|00001080| 65 75 74 73 63 68 20 6f | 66 20 41 6c 61 64 64 69 |eutsch o|f Aladdi|
|00001090| 6e 20 45 6e 74 65 72 70 | 72 69 73 65 73 20 66 6f |n Enterp|rises fo|
|000010a0| 72 20 74 68 65 20 61 6e | 73 69 32 6b 6e 72 20 70 |r the an|si2knr p|
|000010b0| 72 6f 67 72 61 6d 2e 29 | 0a 58 0a 58 49 66 20 79 |rogram.)|.X.XIf y|
|000010c0| 6f 75 20 64 6f 6e 27 74 | 20 6b 6e 6f 77 20 77 68 |ou don't| know wh|
|000010d0| 65 74 68 65 72 20 79 6f | 75 72 20 63 6f 6d 70 69 |ether yo|ur compi|
|000010e0| 6c 65 72 20 73 75 70 70 | 6f 72 74 73 20 41 4e 53 |ler supp|orts ANS|
|000010f0| 49 2d 73 74 79 6c 65 20 | 66 75 6e 63 74 69 6f 6e |I-style |function|
|00001100| 0a 58 64 65 66 69 6e 69 | 74 69 6f 6e 73 2c 20 74 |.Xdefini|tions, t|
|00001110| 68 65 6e 20 74 61 6b 65 | 20 61 20 6c 6f 6f 6b 20 |hen take| a look |
|00001120| 61 74 20 63 6b 63 6f 6e | 66 69 67 2e 63 2e 20 20 |at ckcon|fig.c. |
|00001130| 49 74 20 69 73 20 61 20 | 74 65 73 74 20 70 72 6f |It is a |test pro|
|00001140| 67 72 61 6d 20 74 68 61 | 74 20 77 69 6c 6c 0a 58 |gram tha|t will.X|
|00001150| 68 65 6c 70 20 79 6f 75 | 20 66 69 67 75 72 65 20 |help you| figure |
|00001160| 6f 75 74 20 74 68 69 73 | 20 66 61 63 74 2c 20 61 |out this| fact, a|
|00001170| 73 20 77 65 6c 6c 20 61 | 73 20 73 6f 6d 65 20 6f |s well a|s some o|
|00001180| 74 68 65 72 20 66 61 63 | 74 73 20 79 6f 75 27 6c |ther fac|ts you'l|
|00001190| 6c 20 6e 65 65 64 20 69 | 6e 0a 58 6c 61 74 65 72 |l need i|n.Xlater|
|000011a0| 20 73 74 65 70 73 2e 20 | 20 59 6f 75 20 6d 75 73 | steps. | You mus|
|000011b0| 74 20 63 6f 6d 70 69 6c | 65 20 61 6e 64 20 65 78 |t compil|e and ex|
|000011c0| 65 63 75 74 65 20 63 6b | 63 6f 6e 66 69 67 2e 63 |ecute ck|config.c|
|000011d0| 20 62 79 20 68 61 6e 64 | 3b 20 74 68 65 20 6d 61 | by hand|; the ma|
|000011e0| 6b 65 66 69 6c 65 73 0a | 58 64 6f 6e 27 74 20 70 |kefiles.|Xdon't p|
|000011f0| 72 6f 76 69 64 65 20 61 | 6e 79 20 73 75 70 70 6f |rovide a|ny suppo|
|00001200| 72 74 20 66 6f 72 20 74 | 68 69 73 2e 20 20 63 6b |rt for t|his. ck|
|00001210| 63 6f 6e 66 69 67 2e 63 | 20 6d 61 79 20 6e 6f 74 |config.c| may not|
|00001220| 20 63 6f 6d 70 69 6c 65 | 20 74 68 65 20 66 69 72 | compile| the fir|
|00001230| 73 74 20 74 72 79 0a 58 | 28 69 6e 20 66 61 63 74 |st try.X|(in fact|
|00001240| 2c 20 74 68 65 20 77 68 | 6f 6c 65 20 69 64 65 61 |, the wh|ole idea|
|00001250| 20 69 73 20 66 6f 72 20 | 69 74 20 74 6f 20 66 61 | is for |it to fa|
|00001260| 69 6c 20 69 66 20 61 6e | 79 74 68 69 6e 67 20 69 |il if an|ything i|
|00001270| 73 20 67 6f 69 6e 67 20 | 74 6f 29 2e 20 20 49 66 |s going |to). If|
|00001280| 20 79 6f 75 0a 58 67 65 | 74 20 63 6f 6d 70 69 6c | you.Xge|t compil|
|00001290| 65 20 65 72 72 6f 72 73 | 2c 20 66 69 78 20 74 68 |e errors|, fix th|
|000012a0| 65 6d 20 62 79 20 65 64 | 69 74 69 6e 67 20 63 6b |em by ed|iting ck|
|000012b0| 63 6f 6e 66 69 67 2e 63 | 20 61 63 63 6f 72 64 69 |config.c| accordi|
|000012c0| 6e 67 20 74 6f 20 74 68 | 65 20 64 69 72 65 63 74 |ng to th|e direct|
|000012d0| 69 6f 6e 73 0a 58 67 69 | 76 65 6e 20 69 6e 20 63 |ions.Xgi|ven in c|
|000012e0| 6b 63 6f 6e 66 69 67 2e | 63 2e 20 20 4f 6e 63 65 |kconfig.|c. Once|
|000012f0| 20 79 6f 75 20 67 65 74 | 20 69 74 20 74 6f 20 72 | you get| it to r|
|00001300| 75 6e 2c 20 73 65 6c 65 | 63 74 20 61 20 6d 61 6b |un, sele|ct a mak|
|00001310| 65 66 69 6c 65 20 61 63 | 63 6f 72 64 69 6e 67 20 |efile ac|cording |
|00001320| 74 6f 0a 58 74 68 65 20 | 61 64 76 69 63 65 20 69 |to.Xthe |advice i|
|00001330| 74 20 70 72 69 6e 74 73 | 20 6f 75 74 2c 20 61 6e |t prints| out, an|
|00001340| 64 20 6d 61 6b 65 20 61 | 6e 79 20 6f 74 68 65 72 |d make a|ny other|
|00001350| 20 63 68 61 6e 67 65 73 | 20 69 74 20 72 65 63 6f | changes| it reco|
|00001360| 6d 6d 65 6e 64 73 2e 0a | 58 0a 58 4c 6f 6f 6b 20 |mmends..|X.XLook |
|00001370| 6f 76 65 72 20 74 68 65 | 20 73 65 6c 65 63 74 65 |over the| selecte|
|00001380| 64 20 4d 61 6b 65 66 69 | 6c 65 20 61 6e 64 20 61 |d Makefi|le and a|
|00001390| 64 6a 75 73 74 20 6f 70 | 74 69 6f 6e 73 20 61 73 |djust op|tions as|
|000013a0| 20 6e 65 65 64 65 64 2e | 20 20 49 6e 20 70 61 72 | needed.| In par|
|000013b0| 74 69 63 75 6c 61 72 0a | 58 79 6f 75 20 6d 61 79 |ticular.|Xyou may|
|000013c0| 20 77 61 6e 74 20 74 6f | 20 63 68 61 6e 67 65 20 | want to| change |
|000013d0| 74 68 65 20 43 43 20 61 | 6e 64 20 43 46 4c 41 47 |the CC a|nd CFLAG|
|000013e0| 53 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 2e 20 20 |S defini|tions. |
|000013f0| 46 6f 72 20 69 6e 73 74 | 61 6e 63 65 2c 20 69 66 |For inst|ance, if|
|00001400| 20 79 6f 75 0a 58 61 72 | 65 20 75 73 69 6e 67 20 | you.Xar|e using |
|00001410| 47 43 43 2c 20 73 65 74 | 20 43 43 3d 67 63 63 2e |GCC, set| CC=gcc.|
|00001420| 20 20 49 66 20 79 6f 75 | 20 68 61 64 20 74 6f 20 | If you| had to |
|00001430| 75 73 65 20 61 6e 79 20 | 63 6f 6d 70 69 6c 65 72 |use any |compiler|
|00001440| 20 73 77 69 74 63 68 65 | 73 20 74 6f 20 67 65 74 | switche|s to get|
|00001450| 0a 58 63 6b 63 6f 6e 66 | 69 67 2e 63 20 74 6f 20 |.Xckconf|ig.c to |
|00001460| 77 6f 72 6b 2c 20 6d 61 | 6b 65 20 73 75 72 65 20 |work, ma|ke sure |
|00001470| 74 68 65 20 73 61 6d 65 | 20 73 77 69 74 63 68 65 |the same| switche|
|00001480| 73 20 61 72 65 20 69 6e | 20 43 46 4c 41 47 53 2e |s are in| CFLAGS.|
|00001490| 0a 58 0a 58 49 66 20 79 | 6f 75 20 61 72 65 20 6f |.X.XIf y|ou are o|
|000014a0| 6e 20 61 20 73 79 73 74 | 65 6d 20 74 68 61 74 20 |n a syst|em that |
|000014b0| 64 6f 65 73 6e 27 74 20 | 75 73 65 20 6d 61 6b 65 |doesn't |use make|
|000014c0| 66 69 6c 65 73 2c 20 79 | 6f 75 27 6c 6c 20 6e 65 |files, y|ou'll ne|
|000014d0| 65 64 20 74 6f 20 73 65 | 74 20 75 70 0a 58 70 72 |ed to se|t up.Xpr|
|000014e0| 6f 6a 65 63 74 20 66 69 | 6c 65 73 20 28 6f 72 20 |oject fi|les (or |
|000014f0| 77 68 61 74 65 76 65 72 | 20 79 6f 75 20 64 6f 20 |whatever| you do |
|00001500| 75 73 65 29 20 74 6f 20 | 63 6f 6d 70 69 6c 65 20 |use) to |compile |
|00001510| 61 6c 6c 20 74 68 65 20 | 73 6f 75 72 63 65 20 66 |all the |source f|
|00001520| 69 6c 65 73 20 61 6e 64 | 0a 58 6c 69 6e 6b 20 74 |iles and|.Xlink t|
|00001530| 68 65 6d 20 69 6e 74 6f | 20 65 78 65 63 75 74 61 |hem into| executa|
|00001540| 62 6c 65 20 66 69 6c 65 | 73 20 63 6a 70 65 67 20 |ble file|s cjpeg |
|00001550| 61 6e 64 20 64 6a 70 65 | 67 2e 20 20 53 65 65 20 |and djpe|g. See |
|00001560| 74 68 65 20 66 69 6c 65 | 20 6c 69 73 74 73 20 69 |the file| lists i|
|00001570| 6e 20 61 6e 79 20 6f 66 | 0a 58 74 68 65 20 6d 61 |n any of|.Xthe ma|
|00001580| 6b 65 66 69 6c 65 73 20 | 74 6f 20 66 69 6e 64 20 |kefiles |to find |
|00001590| 6f 75 74 20 77 68 69 63 | 68 20 66 69 6c 65 73 20 |out whic|h files |
|000015a0| 67 6f 20 69 6e 74 6f 20 | 65 61 63 68 20 70 72 6f |go into |each pro|
|000015b0| 67 72 61 6d 2e 20 20 41 | 73 20 61 20 6c 61 73 74 |gram. A|s a last|
|000015c0| 20 72 65 73 6f 72 74 2c | 0a 58 79 6f 75 20 63 61 | resort,|.Xyou ca|
|000015d0| 6e 20 6d 61 6b 65 20 61 | 20 62 61 74 63 68 20 73 |n make a| batch s|
|000015e0| 63 72 69 70 74 20 74 68 | 61 74 20 6a 75 73 74 20 |cript th|at just |
|000015f0| 63 6f 6d 70 69 6c 65 73 | 20 65 76 65 72 79 74 68 |compiles| everyth|
|00001600| 69 6e 67 20 61 6e 64 20 | 6c 69 6e 6b 73 20 69 74 |ing and |links it|
|00001610| 20 61 6c 6c 0a 58 74 6f | 67 65 74 68 65 72 3b 20 | all.Xto|gether; |
|00001620| 6d 61 6b 65 66 69 6c 65 | 2e 76 6d 73 20 69 73 20 |makefile|.vms is |
|00001630| 61 6e 20 65 78 61 6d 70 | 6c 65 20 6f 66 20 74 68 |an examp|le of th|
|00001640| 69 73 20 28 69 74 27 73 | 20 66 6f 72 20 56 4d 53 |is (it's| for VMS|
|00001650| 20 73 79 73 74 65 6d 73 | 20 74 68 61 74 20 68 61 | systems| that ha|
|00001660| 76 65 0a 58 6e 6f 20 6d | 61 6b 65 2d 6c 69 6b 65 |ve.Xno m|ake-like|
|00001670| 20 75 74 69 6c 69 74 79 | 29 2e 0a 58 0a 58 0a 58 | utility|)..X.X.X|
|00001680| 53 54 45 50 20 32 3a 20 | 45 44 49 54 20 4a 43 4f |STEP 2: |EDIT JCO|
|00001690| 4e 46 49 47 2e 48 0a 58 | 3d 3d 3d 3d 3d 3d 3d 3d |NFIG.H.X|========|
|000016a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0a 58 |========|======.X|
|000016b0| 0a 58 4c 6f 6f 6b 20 6f | 76 65 72 20 6a 63 6f 6e |.XLook o|ver jcon|
|000016c0| 66 69 67 2e 68 20 61 6e | 64 20 61 64 6a 75 73 74 |fig.h an|d adjust|
|000016d0| 20 23 64 65 66 69 6e 65 | 73 20 74 6f 20 72 65 66 | #define|s to ref|
|000016e0| 6c 65 63 74 20 74 68 65 | 20 70 72 6f 70 65 72 74 |lect the| propert|
|000016f0| 69 65 73 20 6f 66 20 79 | 6f 75 72 0a 58 73 79 73 |ies of y|our.Xsys|
|00001700| 74 65 6d 20 61 6e 64 20 | 43 20 63 6f 6d 70 69 6c |tem and |C compil|
|00001710| 65 72 2e 20 20 49 66 20 | 79 6f 75 20 70 72 65 66 |er. If |you pref|
|00001720| 65 72 2c 20 79 6f 75 20 | 63 61 6e 20 75 73 75 61 |er, you |can usua|
|00001730| 6c 6c 79 20 6c 65 61 76 | 65 20 6a 63 6f 6e 66 69 |lly leav|e jconfi|
|00001740| 67 2e 68 0a 58 75 6e 6d | 6f 64 69 66 69 65 64 20 |g.h.Xunm|odified |
|00001750| 61 6e 64 20 61 64 64 20 | 2d 44 73 79 6d 62 6f 6c |and add |-Dsymbol|
|00001760| 20 73 77 69 74 63 68 65 | 73 20 74 6f 20 74 68 65 | switche|s to the|
|00001770| 20 4d 61 6b 65 66 69 6c | 65 27 73 20 43 46 4c 41 | Makefil|e's CFLA|
|00001780| 47 53 20 64 65 66 69 6e | 69 74 69 6f 6e 2e 0a 58 |GS defin|ition..X|
|00001790| 28 54 68 69 73 20 69 73 | 20 61 6c 72 65 61 64 79 |(This is| already|
|000017a0| 20 64 6f 6e 65 20 69 66 | 20 79 6f 75 20 75 73 65 | done if| you use|
|000017b0| 64 20 61 20 63 6f 6d 70 | 69 6c 65 72 2d 73 70 65 |d a comp|iler-spe|
|000017c0| 63 69 66 69 63 20 6d 61 | 6b 65 66 69 6c 65 20 69 |cific ma|kefile i|
|000017d0| 6e 20 73 74 65 70 20 31 | 2e 29 0a 58 48 6f 77 65 |n step 1|.).XHowe|
|000017e0| 76 65 72 2c 20 70 75 74 | 74 69 6e 67 20 74 68 65 |ver, put|ting the|
|000017f0| 20 73 77 69 74 63 68 65 | 73 20 69 6e 20 74 68 65 | switche|s in the|
|00001800| 20 4d 61 6b 65 66 69 6c | 65 20 69 73 20 61 20 62 | Makefil|e is a b|
|00001810| 61 64 20 69 64 65 61 20 | 69 66 20 79 6f 75 20 61 |ad idea |if you a|
|00001820| 72 65 20 67 6f 69 6e 67 | 0a 58 74 6f 20 69 6e 63 |re going|.Xto inc|
|00001830| 6f 72 70 6f 72 61 74 65 | 20 74 68 65 20 4a 50 45 |orporate| the JPE|
|00001840| 47 20 73 6f 66 74 77 61 | 72 65 20 69 6e 74 6f 20 |G softwa|re into |
|00001850| 6f 74 68 65 72 20 70 72 | 6f 67 72 61 6d 73 20 2d |other pr|ograms -|
|00001860| 2d 2d 20 79 6f 75 27 64 | 20 6e 65 65 64 20 74 6f |-- you'd| need to|
|00001870| 20 69 6e 63 6c 75 64 65 | 0a 58 74 68 65 20 73 61 | include|.Xthe sa|
|00001880| 6d 65 20 2d 44 20 73 77 | 69 74 63 68 65 73 20 69 |me -D sw|itches i|
|00001890| 6e 20 74 68 65 20 6f 74 | 68 65 72 20 70 72 6f 67 |n the ot|her prog|
|000018a0| 72 61 6d 73 27 20 4d 61 | 6b 65 66 69 6c 65 73 2e |rams' Ma|kefiles.|
|000018b0| 20 20 42 65 74 74 65 72 | 20 74 6f 20 63 68 61 6e | Better| to chan|
|000018c0| 67 65 0a 58 6a 63 6f 6e | 66 69 67 2e 68 2e 0a 58 |ge.Xjcon|fig.h..X|
|000018d0| 0a 58 49 66 20 79 6f 75 | 20 68 61 76 65 20 61 6e |.XIf you| have an|
|000018e0| 20 41 4e 53 49 2d 63 6f | 6d 70 6c 69 61 6e 74 20 | ANSI-co|mpliant |
|000018f0| 43 20 63 6f 6d 70 69 6c | 65 72 2c 20 6e 6f 20 63 |C compil|er, no c|
|00001900| 68 61 6e 67 65 73 20 73 | 68 6f 75 6c 64 20 62 65 |hanges s|hould be|
|00001910| 20 6e 65 63 65 73 73 61 | 72 79 0a 58 65 78 63 65 | necessa|ry.Xexce|
|00001920| 70 74 20 70 65 72 68 61 | 70 73 20 66 6f 72 20 52 |pt perha|ps for R|
|00001930| 49 47 48 54 5f 53 48 49 | 46 54 5f 49 53 5f 55 4e |IGHT_SHI|FT_IS_UN|
|00001940| 53 49 47 4e 45 44 20 61 | 6e 64 20 54 57 4f 5f 46 |SIGNED a|nd TWO_F|
|00001950| 49 4c 45 5f 43 4f 4d 4d | 41 4e 44 4c 49 4e 45 2e |ILE_COMM|ANDLINE.|
|00001960| 20 20 46 6f 72 0a 58 6f | 6c 64 65 72 20 63 6f 6d | For.Xo|lder com|
|00001970| 70 69 6c 65 72 73 20 6f | 74 68 65 72 20 63 68 61 |pilers o|ther cha|
|00001980| 6e 67 65 73 20 6d 61 79 | 20 62 65 20 6e 65 65 64 |nges may| be need|
|00001990| 65 64 2c 20 64 65 70 65 | 6e 64 69 6e 67 20 6f 6e |ed, depe|nding on|
|000019a0| 20 77 68 61 74 20 41 4e | 53 49 20 66 65 61 74 75 | what AN|SI featu|
|000019b0| 72 65 73 0a 58 61 72 65 | 20 73 75 70 70 6f 72 74 |res.Xare| support|
|000019c0| 65 64 2e 0a 58 0a 58 49 | 66 20 79 6f 75 20 64 6f |ed..X.XI|f you do|
|000019d0| 6e 27 74 20 6b 6e 6f 77 | 20 65 6e 6f 75 67 68 20 |n't know| enough |
|000019e0| 61 62 6f 75 74 20 43 20 | 70 72 6f 67 72 61 6d 6d |about C |programm|
|000019f0| 69 6e 67 20 74 6f 20 75 | 6e 64 65 72 73 74 61 6e |ing to u|nderstan|
|00001a00| 64 20 74 68 65 20 71 75 | 65 73 74 69 6f 6e 73 20 |d the qu|estions |
|00001a10| 69 6e 0a 58 6a 63 6f 6e | 66 69 67 2e 68 2c 20 74 |in.Xjcon|fig.h, t|
|00001a20| 68 65 6e 20 75 73 65 20 | 63 6b 63 6f 6e 66 69 67 |hen use |ckconfig|
|00001a30| 2e 63 20 74 6f 20 66 69 | 67 75 72 65 20 6f 75 74 |.c to fi|gure out|
|00001a40| 20 77 68 61 74 20 74 6f | 20 63 68 61 6e 67 65 2e | what to| change.|
|00001a50| 20 20 28 53 65 65 20 64 | 65 73 63 72 69 70 74 69 | (See d|escripti|
|00001a60| 6f 6e 0a 58 6f 66 20 63 | 6b 63 6f 6e 66 69 67 2e |on.Xof c|kconfig.|
|00001a70| 63 20 69 6e 20 73 74 65 | 70 20 31 2e 29 0a 58 0a |c in ste|p 1.).X.|
|00001a80| 58 41 20 6e 6f 74 65 20 | 61 62 6f 75 74 20 54 57 |XA note |about TW|
|00001a90| 4f 5f 46 49 4c 45 5f 43 | 4f 4d 4d 41 4e 44 4c 49 |O_FILE_C|OMMANDLI|
|00001aa0| 4e 45 3a 20 64 65 66 69 | 6e 69 6e 67 20 74 68 69 |NE: defi|ning thi|
|00001ab0| 73 20 73 65 6c 65 63 74 | 73 20 74 68 65 20 63 6f |s select|s the co|
|00001ac0| 6d 6d 61 6e 64 20 6c 69 | 6e 65 0a 58 73 79 6e 74 |mmand li|ne.Xsynt|
|00001ad0| 61 78 20 69 6e 20 77 68 | 69 63 68 20 74 68 65 20 |ax in wh|ich the |
|00001ae0| 69 6e 70 75 74 20 61 6e | 64 20 6f 75 74 70 75 74 |input an|d output|
|00001af0| 20 66 69 6c 65 73 20 61 | 72 65 20 62 6f 74 68 20 | files a|re both |
|00001b00| 6e 61 6d 65 64 20 6f 6e | 20 74 68 65 20 63 6f 6d |named on| the com|
|00001b10| 6d 61 6e 64 20 6c 69 6e | 65 2e 0a 58 49 66 20 69 |mand lin|e..XIf i|
|00001b20| 74 27 73 20 6e 6f 74 20 | 64 65 66 69 6e 65 64 2c |t's not |defined,|
|00001b30| 20 74 68 65 20 6f 75 74 | 70 75 74 20 69 6d 61 67 | the out|put imag|
|00001b40| 65 20 67 6f 65 73 20 74 | 6f 20 73 74 61 6e 64 61 |e goes t|o standa|
|00001b50| 72 64 20 6f 75 74 70 75 | 74 2c 20 61 6e 64 20 74 |rd outpu|t, and t|
|00001b60| 68 65 20 69 6e 70 75 74 | 0a 58 63 61 6e 20 6f 70 |he input|.Xcan op|
|00001b70| 74 69 6f 6e 61 6c 6c 79 | 20 63 6f 6d 65 20 66 72 |tionally| come fr|
|00001b80| 6f 6d 20 73 74 61 6e 64 | 61 72 64 20 69 6e 70 75 |om stand|ard inpu|
|00001b90| 74 2e 20 20 59 6f 75 20 | 4d 55 53 54 20 75 73 65 |t. You |MUST use|
|00001ba0| 20 74 77 6f 2d 66 69 6c | 65 20 73 74 79 6c 65 20 | two-fil|e style |
|00001bb0| 6f 6e 20 61 6e 79 0a 58 | 73 79 73 74 65 6d 20 74 |on any.X|system t|
|00001bc0| 68 61 74 20 64 6f 65 73 | 6e 27 74 20 63 6f 70 65 |hat does|n't cope|
|00001bd0| 20 77 65 6c 6c 20 77 69 | 74 68 20 62 69 6e 61 72 | well wi|th binar|
|00001be0| 79 20 64 61 74 61 20 66 | 65 64 20 74 68 72 6f 75 |y data f|ed throu|
|00001bf0| 67 68 20 73 74 64 69 6e | 2f 73 74 64 6f 75 74 3b |gh stdin|/stdout;|
|00001c00| 20 74 68 69 73 0a 58 69 | 73 20 74 72 75 65 20 66 | this.Xi|s true f|
|00001c10| 6f 72 20 6d 6f 73 74 20 | 4d 53 2d 44 4f 53 20 63 |or most |MS-DOS c|
|00001c20| 6f 6d 70 69 6c 65 72 73 | 2c 20 66 6f 72 20 65 78 |ompilers|, for ex|
|00001c30| 61 6d 70 6c 65 2e 20 20 | 49 66 20 79 6f 75 27 72 |ample. |If you'r|
|00001c40| 65 20 6e 6f 74 20 6f 6e | 20 61 20 55 6e 69 78 0a |e not on| a Unix.|
|00001c50| 58 73 79 73 74 65 6d 2c | 20 69 74 27 73 20 70 72 |Xsystem,| it's pr|
|00001c60| 6f 62 61 62 6c 79 20 73 | 61 66 65 73 74 20 74 6f |obably s|afest to|
|00001c70| 20 61 73 73 75 6d 65 20 | 79 6f 75 20 6e 65 65 64 | assume |you need|
|00001c80| 20 74 77 6f 2d 66 69 6c | 65 20 73 74 79 6c 65 2e | two-fil|e style.|
|00001c90| 0a 58 0a 58 0a 58 53 54 | 45 50 20 33 3a 20 53 45 |.X.X.XST|EP 3: SE|
|00001ca0| 4c 45 43 54 20 53 59 53 | 54 45 4d 2d 44 45 50 45 |LECT SYS|TEM-DEPE|
|00001cb0| 4e 44 45 4e 54 20 46 49 | 4c 45 53 0a 58 3d 3d 3d |NDENT FI|LES.X===|
|00001cc0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001cd0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001ce0| 3d 3d 0a 58 0a 58 41 20 | 66 65 77 20 70 6c 61 63 |==.X.XA |few plac|
|00001cf0| 65 73 20 69 6e 20 74 68 | 65 20 4a 50 45 47 20 73 |es in th|e JPEG s|
|00001d00| 6f 66 74 77 61 72 65 20 | 61 72 65 20 73 6f 20 73 |oftware |are so s|
|00001d10| 79 73 74 65 6d 2d 64 65 | 70 65 6e 64 65 6e 74 20 |ystem-de|pendent |
|00001d20| 74 68 61 74 20 77 65 20 | 68 61 76 65 20 74 6f 0a |that we |have to.|
|00001d30| 58 70 72 6f 76 69 64 65 | 20 73 65 76 65 72 61 6c |Xprovide| several|
|00001d40| 20 64 69 66 66 65 72 65 | 6e 74 20 69 6d 70 6c 65 | differe|nt imple|
|00001d50| 6d 65 6e 74 61 74 69 6f | 6e 73 20 61 6e 64 20 6c |mentatio|ns and l|
|00001d60| 65 74 20 79 6f 75 20 73 | 65 6c 65 63 74 20 74 68 |et you s|elect th|
|00001d70| 65 20 6f 6e 65 20 79 6f | 75 20 6e 65 65 64 2e 0a |e one yo|u need..|
|00001d80| 58 0a 58 54 68 65 20 6f | 6e 6c 79 20 73 79 73 74 |X.XThe o|nly syst|
|00001d90| 65 6d 2d 64 65 70 65 6e | 64 65 6e 74 20 66 69 6c |em-depen|dent fil|
|00001da0| 65 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |e in the| current|
|00001db0| 20 76 65 72 73 69 6f 6e | 20 69 73 20 6a 6d 65 6d | version| is jmem|
|00001dc0| 73 79 73 2e 63 2e 20 20 | 54 68 69 73 20 66 69 6c |sys.c. |This fil|
|00001dd0| 65 0a 58 63 6f 6e 74 72 | 6f 6c 73 20 75 73 65 20 |e.Xcontr|ols use |
|00001de0| 6f 66 20 74 65 6d 70 6f | 72 61 72 79 20 66 69 6c |of tempo|rary fil|
|00001df0| 65 73 20 66 6f 72 20 62 | 69 67 20 69 6d 61 67 65 |es for b|ig image|
|00001e00| 73 20 74 68 61 74 20 77 | 6f 6e 27 74 20 66 69 74 |s that w|on't fit|
|00001e10| 20 69 6e 20 6d 61 69 6e | 20 6d 65 6d 6f 72 79 2e | in main| memory.|
|00001e20| 0a 58 59 6f 75 27 6c 6c | 20 6e 6f 74 69 63 65 20 |.XYou'll| notice |
|00001e30| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 66 69 6c 65 |there is| no file|
|00001e40| 20 6e 61 6d 65 64 20 6a | 6d 65 6d 73 79 73 2e 63 | named j|memsys.c|
|00001e50| 20 69 6e 20 74 68 65 20 | 64 69 73 74 72 69 62 75 | in the |distribu|
|00001e60| 74 69 6f 6e 3b 20 79 6f | 75 20 6d 75 73 74 0a 58 |tion; yo|u must.X|
|00001e70| 73 65 6c 65 63 74 20 6f | 6e 65 20 6f 66 20 74 68 |select o|ne of th|
|00001e80| 65 20 70 72 6f 76 69 64 | 65 64 20 76 65 72 73 69 |e provid|ed versi|
|00001e90| 6f 6e 73 20 61 6e 64 20 | 63 6f 70 79 2c 20 72 65 |ons and |copy, re|
|00001ea0| 6e 61 6d 65 2c 20 6f 72 | 20 6c 69 6e 6b 20 69 74 |name, or| link it|
|00001eb0| 20 74 6f 20 6a 6d 65 6d | 73 79 73 2e 63 2e 0a 58 | to jmem|sys.c..X|
|00001ec0| 48 65 72 65 20 61 72 65 | 20 74 68 65 20 70 72 6f |Here are| the pro|
|00001ed0| 76 69 64 65 64 20 76 65 | 72 73 69 6f 6e 73 3a 0a |vided ve|rsions:.|
|00001ee0| 58 0a 58 09 6a 6d 65 6d | 61 6e 73 69 2e 63 09 54 |X.X.jmem|ansi.c.T|
|00001ef0| 68 69 73 20 69 73 20 61 | 20 72 65 61 73 6f 6e 61 |his is a| reasona|
|00001f00| 62 6c 79 20 70 6f 72 74 | 61 62 6c 65 20 76 65 72 |bly port|able ver|
|00001f10| 73 69 6f 6e 20 74 68 61 | 74 20 73 68 6f 75 6c 64 |sion tha|t should|
|00001f20| 0a 58 09 09 09 77 6f 72 | 6b 20 6f 6e 20 6d 6f 73 |.X...wor|k on mos|
|00001f30| 74 20 41 4e 53 49 20 61 | 6e 64 20 6e 65 61 72 2d |t ANSI a|nd near-|
|00001f40| 41 4e 53 49 20 43 20 63 | 6f 6d 70 69 6c 65 72 73 |ANSI C c|ompilers|
|00001f50| 2e 20 20 49 74 20 75 73 | 65 73 0a 58 09 09 09 74 |. It us|es.X...t|
|00001f60| 68 65 20 41 4e 53 49 2d | 73 74 61 6e 64 61 72 64 |he ANSI-|standard|
|00001f70| 20 6c 69 62 72 61 72 79 | 20 72 6f 75 74 69 6e 65 | library| routine|
|00001f80| 20 74 6d 70 66 69 6c 65 | 28 29 2c 20 77 68 69 63 | tmpfile|(), whic|
|00001f90| 68 20 6e 6f 74 0a 58 09 | 09 09 61 6c 6c 20 6e 6f |h not.X.|..all no|
|00001fa0| 6e 2d 41 4e 53 49 20 73 | 79 73 74 65 6d 73 20 68 |n-ANSI s|ystems h|
|00001fb0| 61 76 65 2e 20 20 4f 6e | 20 73 6f 6d 65 20 73 79 |ave. On| some sy|
|00001fc0| 73 74 65 6d 73 20 74 6d | 70 66 69 6c 65 28 29 0a |stems tm|pfile().|
|00001fd0| 58 09 09 09 6d 61 79 20 | 70 75 74 20 74 68 65 20 |X...may |put the |
|00001fe0| 74 65 6d 70 6f 72 61 72 | 79 20 66 69 6c 65 20 69 |temporar|y file i|
|00001ff0| 6e 20 61 20 6e 6f 6e 2d | 6f 70 74 69 6d 61 6c 20 |n a non-|optimal |
|00002000| 6c 6f 63 61 74 69 6f 6e | 3b 0a 58 09 09 09 69 66 |location|;.X...if|
|00002010| 20 79 6f 75 20 64 6f 6e | 27 74 20 6c 69 6b 65 20 | you don|'t like |
|00002020| 77 68 61 74 20 69 74 20 | 64 6f 65 73 2c 20 75 73 |what it |does, us|
|00002030| 65 20 6a 6d 65 6d 6e 61 | 6d 65 2e 63 2e 0a 58 0a |e jmemna|me.c..X.|
|00002040| 58 09 6a 6d 65 6d 6e 61 | 6d 65 2e 63 09 54 68 69 |X.jmemna|me.c.Thi|
|00002050| 73 20 76 65 72 73 69 6f | 6e 20 63 6f 6e 73 74 72 |s versio|n constr|
|00002060| 75 63 74 73 20 74 68 65 | 20 74 65 6d 70 20 66 69 |ucts the| temp fi|
|00002070| 6c 65 20 6e 61 6d 65 20 | 62 79 20 69 74 73 65 6c |le name |by itsel|
|00002080| 66 2e 0a 58 09 09 09 46 | 6f 72 20 61 6e 79 74 68 |f..X...F|or anyth|
|00002090| 69 6e 67 20 65 78 63 65 | 70 74 20 61 20 55 6e 69 |ing exce|pt a Uni|
|000020a0| 78 20 6d 61 63 68 69 6e | 65 2c 20 79 6f 75 27 6c |x machin|e, you'l|
|000020b0| 6c 20 6e 65 65 64 20 74 | 6f 0a 58 09 09 09 63 6f |l need t|o.X...co|
|000020c0| 6e 66 69 67 75 72 65 20 | 74 68 65 20 73 65 6c 65 |nfigure |the sele|
|000020d0| 63 74 5f 66 69 6c 65 5f | 6e 61 6d 65 28 29 20 72 |ct_file_|name() r|
|000020e0| 6f 75 74 69 6e 65 20 61 | 70 70 72 6f 70 72 69 61 |outine a|ppropria|
|000020f0| 74 65 6c 79 3b 0a 58 09 | 09 09 73 65 65 20 74 68 |tely;.X.|..see th|
|00002100| 65 20 63 6f 6d 6d 65 6e | 74 73 20 6e 65 61 72 20 |e commen|ts near |
|00002110| 74 68 65 20 68 65 61 64 | 20 6f 66 20 6a 6d 65 6d |the head| of jmem|
|00002120| 6e 61 6d 65 2e 63 2e 0a | 58 09 09 09 49 66 20 79 |name.c..|X...If y|
|00002130| 6f 75 20 75 73 65 20 74 | 68 69 73 20 76 65 72 73 |ou use t|his vers|
|00002140| 69 6f 6e 2c 20 64 65 66 | 69 6e 65 20 4e 45 45 44 |ion, def|ine NEED|
|00002150| 5f 53 49 47 4e 41 4c 5f | 43 41 54 43 48 45 52 0a |_SIGNAL_|CATCHER.|
|00002160| 58 09 09 09 69 6e 20 6a | 63 6f 6e 66 69 67 2e 68 |X...in j|config.h|
|00002170| 20 6f 72 20 69 6e 20 74 | 68 65 20 4d 61 6b 65 66 | or in t|he Makef|
|00002180| 69 6c 65 20 74 6f 20 6d | 61 6b 65 20 73 75 72 65 |ile to m|ake sure|
|00002190| 20 74 68 65 20 74 65 6d | 70 0a 58 09 09 09 66 69 | the tem|p.X...fi|
|000021a0| 6c 65 73 20 61 72 65 20 | 72 65 6d 6f 76 65 64 20 |les are |removed |
|000021b0| 69 66 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 69 |if the p|rogram i|
|000021c0| 73 20 61 62 6f 72 74 65 | 64 2e 0a 58 0a 58 09 6a |s aborte|d..X.X.j|
|000021d0| 6d 65 6d 6e 6f 62 73 2e | 63 09 28 54 68 61 74 20 |memnobs.|c.(That |
|000021e0| 73 74 61 6e 64 73 20 66 | 6f 72 20 4e 6f 20 42 61 |stands f|or No Ba|
|000021f0| 63 6b 69 6e 67 20 53 74 | 6f 72 65 20 3a 2d 29 2e |cking St|ore :-).|
|00002200| 20 20 54 68 69 73 20 77 | 69 6c 6c 0a 58 09 09 09 | This w|ill.X...|
|00002210| 63 6f 6d 70 69 6c 65 20 | 6f 6e 20 61 6c 6d 6f 73 |compile |on almos|
|00002220| 74 20 61 6e 79 20 73 79 | 73 74 65 6d 2c 20 62 75 |t any sy|stem, bu|
|00002230| 74 20 69 74 20 61 73 73 | 75 6d 65 73 20 79 6f 75 |t it ass|umes you|
|00002240| 0a 58 09 09 09 68 61 76 | 65 20 65 6e 6f 75 67 68 |.X...hav|e enough|
|00002250| 20 6d 61 69 6e 20 6d 65 | 6d 6f 72 79 20 6f 72 20 | main me|mory or |
|00002260| 76 69 72 74 75 61 6c 20 | 6d 65 6d 6f 72 79 20 74 |virtual |memory t|
|00002270| 6f 20 68 6f 6c 64 0a 58 | 09 09 09 74 68 65 20 62 |o hold.X|...the b|
|00002280| 69 67 67 65 73 74 20 69 | 6d 61 67 65 73 20 79 6f |iggest i|mages yo|
|00002290| 75 20 6e 65 65 64 20 74 | 6f 20 77 6f 72 6b 20 77 |u need t|o work w|
|000022a0| 69 74 68 2e 0a 58 0a 58 | 09 6a 6d 65 6d 64 6f 73 |ith..X.X|.jmemdos|
|000022b0| 2e 63 09 54 68 69 73 20 | 73 68 6f 75 6c 64 20 62 |.c.This |should b|
|000022c0| 65 20 75 73 65 64 20 69 | 6e 20 6d 6f 73 74 20 4d |e used i|n most M|
|000022d0| 53 2d 44 4f 53 20 69 6e | 73 74 61 6c 6c 61 74 69 |S-DOS in|stallati|
|000022e0| 6f 6e 73 3b 20 73 65 65 | 0a 58 09 09 09 74 68 65 |ons; see|.X...the|
|000022f0| 20 73 79 73 74 65 6d 2d | 73 70 65 63 69 66 69 63 | system-|specific|
|00002300| 20 6e 6f 74 65 73 20 61 | 62 6f 75 74 20 4d 53 2d | notes a|bout MS-|
|00002310| 44 4f 53 20 66 6f 72 20 | 6d 6f 72 65 20 69 6e 66 |DOS for |more inf|
|00002320| 6f 2e 0a 58 09 09 09 49 | 4d 50 4f 52 54 41 4e 54 |o..X...I|MPORTANT|
|00002330| 3a 20 69 66 20 79 6f 75 | 20 75 73 65 20 74 68 69 |: if you| use thi|
|00002340| 73 2c 20 61 6c 73 6f 20 | 63 6f 70 79 20 6a 6d 65 |s, also |copy jme|
|00002350| 6d 64 6f 73 2e 68 20 74 | 6f 0a 58 09 09 09 6a 6d |mdos.h t|o.X...jm|
|00002360| 65 6d 73 79 73 2e 68 2c | 20 72 65 70 6c 61 63 69 |emsys.h,| replaci|
|00002370| 6e 67 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |ng the s|tandard |
|00002380| 76 65 72 73 69 6f 6e 2e | 20 20 41 4c 53 4f 2c 0a |version.| ALSO,.|
|00002390| 58 09 09 09 69 6e 63 6c | 75 64 65 20 74 68 65 20 |X...incl|ude the |
|000023a0| 61 73 73 65 6d 62 6c 79 | 20 66 69 6c 65 20 6a 6d |assembly| file jm|
|000023b0| 65 6d 64 6f 73 61 2e 61 | 73 6d 20 69 6e 20 74 68 |emdosa.a|sm in th|
|000023c0| 65 20 70 72 6f 67 72 61 | 6d 73 2e 0a 58 09 09 09 |e progra|ms..X...|
|000023d0| 28 54 68 69 73 20 6c 61 | 73 74 20 69 73 20 61 6c |(This la|st is al|
|000023e0| 72 65 61 64 79 20 64 6f | 6e 65 20 69 66 20 79 6f |ready do|ne if yo|
|000023f0| 75 20 75 73 65 64 20 6f | 6e 65 20 6f 66 20 74 68 |u used o|ne of th|
|00002400| 65 0a 58 09 09 09 73 75 | 70 70 6c 69 65 64 20 4d |e.X...su|pplied M|
|00002410| 53 2d 44 4f 53 2d 73 70 | 65 63 69 66 69 63 20 6d |S-DOS-sp|ecific m|
|00002420| 61 6b 65 66 69 6c 65 73 | 2e 29 0a 58 0a 58 49 66 |akefiles|.).X.XIf|
|00002430| 20 79 6f 75 20 68 61 76 | 65 20 70 6c 65 6e 74 79 | you hav|e plenty|
|00002440| 20 6f 66 20 28 72 65 61 | 6c 20 6f 72 20 76 69 72 | of (rea|l or vir|
|00002450| 74 75 61 6c 29 20 6d 61 | 69 6e 20 6d 65 6d 6f 72 |tual) ma|in memor|
|00002460| 79 2c 20 6a 75 73 74 20 | 75 73 65 20 6a 6d 65 6d |y, just |use jmem|
|00002470| 6e 6f 62 73 2e 63 2e 0a | 58 22 50 6c 65 6e 74 79 |nobs.c..|X"Plenty|
|00002480| 22 20 6d 65 61 6e 73 20 | 61 74 20 6c 65 61 73 74 |" means |at least|
|00002490| 20 74 65 6e 20 62 79 74 | 65 73 20 66 6f 72 20 65 | ten byt|es for e|
|000024a0| 76 65 72 79 20 70 69 78 | 65 6c 20 69 6e 20 74 68 |very pix|el in th|
|000024b0| 65 20 6c 61 72 67 65 73 | 74 20 69 6d 61 67 65 73 |e larges|t images|
|000024c0| 0a 58 79 6f 75 20 70 6c | 61 6e 20 74 6f 20 70 72 |.Xyou pl|an to pr|
|000024d0| 6f 63 65 73 73 2c 20 73 | 6f 20 61 20 6c 6f 74 20 |ocess, s|o a lot |
|000024e0| 6f 66 20 73 79 73 74 65 | 6d 73 20 64 6f 6e 27 74 |of syste|ms don't|
|000024f0| 20 6d 65 65 74 20 74 68 | 69 73 20 63 72 69 74 65 | meet th|is crite|
|00002500| 72 69 6f 6e 2e 0a 58 49 | 66 20 79 6f 75 72 73 20 |rion..XI|f yours |
|00002510| 64 6f 65 73 6e 27 74 2c | 20 74 72 79 20 6a 6d 65 |doesn't,| try jme|
|00002520| 6d 61 6e 73 69 2e 63 20 | 66 69 72 73 74 2e 20 20 |mansi.c |first. |
|00002530| 49 66 20 74 68 61 74 20 | 64 6f 65 73 6e 27 74 20 |If that |doesn't |
|00002540| 63 6f 6d 70 69 6c 65 2c | 20 79 6f 75 27 6c 6c 20 |compile,| you'll |
|00002550| 68 61 76 65 0a 58 74 6f | 20 75 73 65 20 6a 6d 65 |have.Xto| use jme|
|00002560| 6d 6e 61 6d 65 2e 63 3b | 20 62 65 20 73 75 72 65 |mname.c;| be sure|
|00002570| 20 74 6f 20 61 64 6a 75 | 73 74 20 73 65 6c 65 63 | to adju|st selec|
|00002580| 74 5f 66 69 6c 65 5f 6e | 61 6d 65 28 29 20 66 6f |t_file_n|ame() fo|
|00002590| 72 20 6c 6f 63 61 6c 20 | 63 6f 6e 64 69 74 69 6f |r local |conditio|
|000025a0| 6e 73 2e 0a 58 59 6f 75 | 20 6d 61 79 20 61 6c 73 |ns..XYou| may als|
|000025b0| 6f 20 6e 65 65 64 20 74 | 6f 20 63 68 61 6e 67 65 |o need t|o change|
|000025c0| 20 75 6e 6c 69 6e 6b 28 | 29 20 74 6f 20 72 65 6d | unlink(|) to rem|
|000025d0| 6f 76 65 28 29 20 69 6e | 20 63 6c 6f 73 65 5f 62 |ove() in| close_b|
|000025e0| 61 63 6b 69 6e 67 5f 73 | 74 6f 72 65 28 29 2e 0a |acking_s|tore()..|
|000025f0| 58 0a 58 45 78 63 65 70 | 74 20 77 69 74 68 20 6a |X.XExcep|t with j|
|00002600| 6d 65 6d 6e 6f 62 73 2e | 63 2c 20 79 6f 75 20 6e |memnobs.|c, you n|
|00002610| 65 65 64 20 74 6f 20 61 | 64 6a 75 73 74 20 74 68 |eed to a|djust th|
|00002620| 65 20 23 64 65 66 69 6e | 65 20 44 45 46 41 55 4c |e #defin|e DEFAUL|
|00002630| 54 5f 4d 41 58 5f 4d 45 | 4d 20 74 6f 20 61 0a 58 |T_MAX_ME|M to a.X|
|00002640| 72 65 61 73 6f 6e 61 62 | 6c 65 20 76 61 6c 75 65 |reasonab|le value|
|00002650| 20 66 6f 72 20 79 6f 75 | 72 20 73 79 73 74 65 6d | for you|r system|
|00002660| 20 28 65 69 74 68 65 72 | 20 62 79 20 65 64 69 74 | (either| by edit|
|00002670| 69 6e 67 20 6a 6d 65 6d | 73 79 73 2e 63 2c 20 6f |ing jmem|sys.c, o|
|00002680| 72 20 62 79 20 61 64 64 | 69 6e 67 0a 58 61 20 2d |r by add|ing.Xa -|
|00002690| 44 20 73 77 69 74 63 68 | 20 74 6f 20 74 68 65 20 |D switch| to the |
|000026a0| 4d 61 6b 65 66 69 6c 65 | 29 2e 20 20 54 68 69 73 |Makefile|). This|
|000026b0| 20 76 61 6c 75 65 20 6c | 69 6d 69 74 73 20 74 68 | value l|imits th|
|000026c0| 65 20 61 6d 6f 75 6e 74 | 20 6f 66 20 64 61 74 61 |e amount| of data|
|000026d0| 20 73 70 61 63 65 20 74 | 68 65 0a 58 70 72 6f 67 | space t|he.Xprog|
|000026e0| 72 61 6d 20 77 69 6c 6c | 20 61 74 74 65 6d 70 74 |ram will| attempt|
|000026f0| 20 74 6f 20 61 6c 6c 6f | 63 61 74 65 2e 20 20 43 | to allo|cate. C|
|00002700| 6f 64 65 20 61 6e 64 20 | 73 74 61 74 69 63 20 64 |ode and |static d|
|00002710| 61 74 61 20 73 70 61 63 | 65 20 69 73 6e 27 74 20 |ata spac|e isn't |
|00002720| 63 6f 75 6e 74 65 64 2c | 0a 58 73 6f 20 74 68 65 |counted,|.Xso the|
|00002730| 20 61 63 74 75 61 6c 20 | 6d 65 6d 6f 72 79 20 6e | actual |memory n|
|00002740| 65 65 64 73 20 66 6f 72 | 20 63 6a 70 65 67 20 6f |eeds for| cjpeg o|
|00002750| 72 20 64 6a 70 65 67 20 | 61 72 65 20 74 79 70 69 |r djpeg |are typi|
|00002760| 63 61 6c 6c 79 20 31 30 | 30 20 74 6f 20 31 35 30 |cally 10|0 to 150|
|00002770| 4b 62 20 6d 6f 72 65 0a | 58 74 68 61 6e 20 74 68 |Kb more.|Xthan th|
|00002780| 65 20 6d 61 78 2d 6d 65 | 6d 6f 72 79 20 73 65 74 |e max-me|mory set|
|00002790| 74 69 6e 67 2e 20 20 4c | 61 72 67 65 72 20 6d 61 |ting. L|arger ma|
|000027a0| 78 2d 6d 65 6d 6f 72 79 | 20 73 65 74 74 69 6e 67 |x-memory| setting|
|000027b0| 73 20 72 65 64 75 63 65 | 20 74 68 65 20 61 6d 6f |s reduce| the amo|
|000027c0| 75 6e 74 20 6f 66 0a 58 | 49 2f 4f 20 6e 65 65 64 |unt of.X|I/O need|
|000027d0| 65 64 20 74 6f 20 70 72 | 6f 63 65 73 73 20 61 20 |ed to pr|ocess a |
|000027e0| 6c 61 72 67 65 20 69 6d | 61 67 65 2c 20 62 75 74 |large im|age, but|
|000027f0| 20 74 6f 6f 20 6c 61 72 | 67 65 20 61 20 76 61 6c | too lar|ge a val|
|00002800| 75 65 20 63 61 6e 20 72 | 65 73 75 6c 74 20 69 6e |ue can r|esult in|
|00002810| 0a 58 22 69 6e 73 75 66 | 66 69 63 69 65 6e 74 20 |.X"insuf|ficient |
|00002820| 6d 65 6d 6f 72 79 22 20 | 66 61 69 6c 75 72 65 73 |memory" |failures|
|00002830| 2e 20 20 4f 6e 20 6d 6f | 73 74 20 55 6e 69 78 20 |. On mo|st Unix |
|00002840| 6d 61 63 68 69 6e 65 73 | 20 28 61 6e 64 20 6f 74 |machines| (and ot|
|00002850| 68 65 72 20 73 79 73 74 | 65 6d 73 20 77 69 74 68 |her syst|ems with|
|00002860| 0a 58 76 69 72 74 75 61 | 6c 20 6d 65 6d 6f 72 79 |.Xvirtua|l memory|
|00002870| 29 2c 20 6a 75 73 74 20 | 73 65 74 20 44 45 46 41 |), just |set DEFA|
|00002880| 55 4c 54 5f 4d 41 58 5f | 4d 45 4d 20 74 6f 20 73 |ULT_MAX_|MEM to s|
|00002890| 65 76 65 72 61 6c 20 6d | 69 6c 6c 69 6f 6e 20 61 |everal m|illion a|
|000028a0| 6e 64 20 66 6f 72 67 65 | 74 20 69 74 2e 0a 58 41 |nd forge|t it..XA|
|000028b0| 74 20 74 68 65 20 6f 74 | 68 65 72 20 65 6e 64 20 |t the ot|her end |
|000028c0| 6f 66 20 74 68 65 20 73 | 70 65 63 74 72 75 6d 2c |of the s|pectrum,|
|000028d0| 20 66 6f 72 20 4d 53 2d | 44 4f 53 20 6d 61 63 68 | for MS-|DOS mach|
|000028e0| 69 6e 65 73 20 79 6f 75 | 20 70 72 6f 62 61 62 6c |ines you| probabl|
|000028f0| 79 20 63 61 6e 27 74 20 | 67 6f 0a 58 6d 75 63 68 |y can't |go.Xmuch|
|00002900| 20 61 62 6f 76 65 20 33 | 30 30 4b 20 74 6f 20 34 | above 3|00K to 4|
|00002910| 30 30 4b 2e 20 20 28 4f | 6e 20 4d 53 2d 44 4f 53 |00K. (O|n MS-DOS|
|00002920| 20 74 68 65 20 76 61 6c | 75 65 20 72 65 66 65 72 | the val|ue refer|
|00002930| 73 20 74 6f 20 63 6f 6e | 76 65 6e 74 69 6f 6e 61 |s to con|ventiona|
|00002940| 6c 20 6d 65 6d 6f 72 79 | 3b 0a 58 65 78 74 65 6e |l memory|;.Xexten|
|00002950| 64 65 64 2f 65 78 70 61 | 6e 64 65 64 20 6d 65 6d |ded/expa|nded mem|
|00002960| 6f 72 79 20 69 73 20 68 | 61 6e 64 6c 65 64 20 73 |ory is h|andled s|
|00002970| 65 70 61 72 61 74 65 6c | 79 20 62 79 20 6a 6d 65 |eparatel|y by jme|
|00002980| 6d 64 6f 73 2e 63 2e 29 | 0a 58 0a 58 0a 58 53 54 |mdos.c.)|.X.X.XST|
|00002990| 45 50 20 34 3a 20 4d 41 | 4b 45 0a 58 3d 3d 3d 3d |EP 4: MA|KE.X====|
|000029a0| 3d 3d 3d 3d 3d 3d 3d 3d | 0a 58 0a 58 4e 6f 77 20 |========|.X.XNow |
|000029b0| 79 6f 75 20 73 68 6f 75 | 6c 64 20 62 65 20 61 62 |you shou|ld be ab|
|000029c0| 6c 65 20 74 6f 20 22 6d | 61 6b 65 22 20 74 68 65 |le to "m|ake" the|
|000029d0| 20 73 6f 66 74 77 61 72 | 65 2e 0a 58 0a 58 49 66 | softwar|e..X.XIf|
|000029e0| 20 79 6f 75 20 68 61 76 | 65 20 74 72 6f 75 62 6c | you hav|e troubl|
|000029f0| 65 20 77 69 74 68 20 6d | 69 73 73 69 6e 67 20 73 |e with m|issing s|
|00002a00| 79 73 74 65 6d 20 69 6e | 63 6c 75 64 65 20 66 69 |ystem in|clude fi|
|00002a10| 6c 65 73 20 6f 72 20 69 | 6e 63 6c 75 73 69 6f 6e |les or i|nclusion|
|00002a20| 20 6f 66 20 74 68 65 0a | 58 77 72 6f 6e 67 20 6f | of the.|Xwrong o|
|00002a30| 6e 65 73 2c 20 6c 6f 6f | 6b 20 61 74 20 6a 69 6e |nes, loo|k at jin|
|00002a40| 63 6c 75 64 65 2e 68 20 | 28 6f 72 20 75 73 65 20 |clude.h |(or use |
|00002a50| 63 6b 63 6f 6e 66 69 67 | 2e 63 2c 20 69 66 20 79 |ckconfig|.c, if y|
|00002a60| 6f 75 20 61 72 65 20 6e | 6f 74 20 61 20 43 20 65 |ou are n|ot a C e|
|00002a70| 78 70 65 72 74 29 2e 0a | 58 0a 58 49 66 20 79 6f |xpert)..|X.XIf yo|
|00002a80| 75 72 20 63 6f 6d 70 69 | 6c 65 72 20 63 6f 6d 70 |ur compi|ler comp|
|00002a90| 6c 61 69 6e 73 20 61 62 | 6f 75 74 20 62 69 67 5f |lains ab|out big_|
|00002aa0| 73 61 72 72 61 79 5f 63 | 6f 6e 74 72 6f 6c 20 61 |sarray_c|ontrol a|
|00002ab0| 6e 64 20 62 69 67 5f 62 | 61 72 72 61 79 5f 63 6f |nd big_b|array_co|
|00002ac0| 6e 74 72 6f 6c 0a 58 62 | 65 69 6e 67 20 75 6e 64 |ntrol.Xb|eing und|
|00002ad0| 65 66 69 6e 65 64 20 73 | 74 72 75 63 74 75 72 65 |efined s|tructure|
|00002ae0| 73 2c 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 62 65 |s, you s|hould be|
|00002af0| 20 61 62 6c 65 20 74 6f | 20 73 68 75 74 20 69 74 | able to| shut it|
|00002b00| 20 75 70 20 62 79 20 61 | 64 64 69 6e 67 0a 58 2d | up by a|dding.X-|
|00002b10| 44 49 4e 43 4f 4d 50 4c | 45 54 45 5f 54 59 50 45 |DINCOMPL|ETE_TYPE|
|00002b20| 53 5f 42 52 4f 4b 45 4e | 20 74 6f 20 43 46 4c 41 |S_BROKEN| to CFLA|
|00002b30| 47 53 20 28 6f 72 20 61 | 64 64 20 23 64 65 66 69 |GS (or a|dd #defi|
|00002b40| 6e 65 20 49 4e 43 4f 4d | 50 4c 45 54 45 5f 54 59 |ne INCOM|PLETE_TY|
|00002b50| 50 45 53 5f 42 52 4f 4b | 45 4e 0a 58 74 6f 20 6a |PES_BROK|EN.Xto j|
|00002b60| 63 6f 6e 66 69 67 2e 68 | 29 2e 20 20 49 66 20 79 |config.h|). If y|
|00002b70| 6f 75 20 64 6f 6e 27 74 | 20 68 61 76 65 20 61 20 |ou don't| have a |
|00002b80| 67 65 74 65 6e 76 28 29 | 20 6c 69 62 72 61 72 79 |getenv()| library|
|00002b90| 20 72 6f 75 74 69 6e 65 | 2c 20 64 65 66 69 6e 65 | routine|, define|
|00002ba0| 20 4e 4f 5f 47 45 54 45 | 4e 56 2e 0a 58 0a 58 54 | NO_GETE|NV..X.XT|
|00002bb0| 68 65 72 65 20 61 72 65 | 20 61 20 66 61 69 72 20 |here are| a fair |
|00002bc0| 6e 75 6d 62 65 72 20 6f | 66 20 72 6f 75 74 69 6e |number o|f routin|
|00002bd0| 65 73 20 74 68 61 74 20 | 64 6f 20 6e 6f 74 20 75 |es that |do not u|
|00002be0| 73 65 20 61 6c 6c 20 6f | 66 20 74 68 65 69 72 20 |se all o|f their |
|00002bf0| 70 61 72 61 6d 65 74 65 | 72 73 3b 0a 58 73 6f 6d |paramete|rs;.Xsom|
|00002c00| 65 20 63 6f 6d 70 69 6c | 65 72 73 20 77 69 6c 6c |e compil|ers will|
|00002c10| 20 69 73 73 75 65 20 77 | 61 72 6e 69 6e 67 73 20 | issue w|arnings |
|00002c20| 61 62 6f 75 74 20 74 68 | 69 73 2c 20 77 68 69 63 |about th|is, whic|
|00002c30| 68 20 79 6f 75 20 63 61 | 6e 20 69 67 6e 6f 72 65 |h you ca|n ignore|
|00002c40| 2e 20 20 41 6e 79 0a 58 | 6f 74 68 65 72 20 77 61 |. Any.X|other wa|
|00002c50| 72 6e 69 6e 67 20 64 65 | 73 65 72 76 65 73 20 69 |rning de|serves i|
|00002c60| 6e 76 65 73 74 69 67 61 | 74 69 6f 6e 2e 0a 58 0a |nvestiga|tion..X.|
|00002c70| 58 0a 58 53 54 45 50 20 | 35 3a 20 54 45 53 54 0a |X.XSTEP |5: TEST.|
|00002c80| 58 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0a 58 0a |X=======|=====.X.|
|00002c90| 58 41 73 20 61 20 71 75 | 69 63 6b 20 74 65 73 74 |XAs a qu|ick test|
|00002ca0| 20 6f 66 20 66 75 6e 63 | 74 69 6f 6e 61 6c 69 74 | of func|tionalit|
|00002cb0| 79 20 77 65 27 76 65 20 | 69 6e 63 6c 75 64 65 64 |y we've |included|
|00002cc0| 20 61 20 73 6d 61 6c 6c | 20 73 61 6d 70 6c 65 20 | a small| sample |
|00002cd0| 69 6d 61 67 65 20 69 6e | 0a 58 73 65 76 65 72 61 |image in|.Xsevera|
|00002ce0| 6c 20 66 6f 72 6d 73 3a | 0a 58 09 74 65 73 74 6f |l forms:|.X.testo|
|00002cf0| 72 69 67 2e 6a 70 67 09 | 41 20 72 65 64 75 63 65 |rig.jpg.|A reduce|
|00002d00| 64 20 73 65 63 74 69 6f | 6e 20 6f 66 20 74 68 65 |d sectio|n of the|
|00002d10| 20 77 65 6c 6c 2d 6b 6e | 6f 77 6e 20 4c 65 6e 6e | well-kn|own Lenn|
|00002d20| 61 20 70 69 63 74 75 72 | 65 2e 0a 58 09 74 65 73 |a pictur|e..X.tes|
|00002d30| 74 69 6d 67 2e 70 70 6d | 09 54 68 65 20 6f 75 74 |timg.ppm|.The out|
|00002d40| 70 75 74 20 6f 66 20 64 | 6a 70 65 67 20 74 65 73 |put of d|jpeg tes|
|00002d50| 74 6f 72 69 67 2e 6a 70 | 67 0a 58 09 74 65 73 74 |torig.jp|g.X.test|
|00002d60| 69 6d 67 2e 67 69 66 09 | 54 68 65 20 6f 75 74 70 |img.gif.|The outp|
|00002d70| 75 74 20 6f 66 20 64 6a | 70 65 67 20 2d 67 69 66 |ut of dj|peg -gif|
|00002d80| 20 74 65 73 74 6f 72 69 | 67 2e 6a 70 67 0a 58 09 | testori|g.jpg.X.|
|00002d90| 74 65 73 74 69 6d 67 2e | 6a 70 67 09 54 68 65 20 |testimg.|jpg.The |
|00002da0| 6f 75 74 70 75 74 20 6f | 66 20 63 6a 70 65 67 20 |output o|f cjpeg |
|00002db0| 74 65 73 74 69 6d 67 2e | 70 70 6d 0a 58 28 54 68 |testimg.|ppm.X(Th|
|00002dc0| 65 20 74 77 6f 20 2e 6a | 70 67 20 66 69 6c 65 73 |e two .j|pg files|
|00002dd0| 20 61 72 65 6e 27 74 20 | 69 64 65 6e 74 69 63 61 | aren't |identica|
|00002de0| 6c 20 73 69 6e 63 65 20 | 4a 50 45 47 20 69 73 20 |l since |JPEG is |
|00002df0| 6c 6f 73 73 79 2e 29 20 | 20 49 66 20 79 6f 75 20 |lossy.) | If you |
|00002e00| 63 61 6e 0a 58 67 65 6e | 65 72 61 74 65 20 64 75 |can.Xgen|erate du|
|00002e10| 70 6c 69 63 61 74 65 73 | 20 6f 66 20 74 68 65 20 |plicates| of the |
|00002e20| 74 65 73 74 69 6d 67 2e | 2a 20 66 69 6c 65 73 20 |testimg.|* files |
|00002e30| 74 68 65 6e 20 79 6f 75 | 20 70 72 6f 62 61 62 6c |then you| probabl|
|00002e40| 79 20 68 61 76 65 20 77 | 6f 72 6b 69 6e 67 0a 58 |y have w|orking.X|
|00002e50| 70 72 6f 67 72 61 6d 73 | 2e 0a 58 0a 58 57 69 74 |programs|..X.XWit|
|00002e60| 68 20 6d 6f 73 74 20 6f | 66 20 74 68 65 20 6d 61 |h most o|f the ma|
|00002e70| 6b 65 66 69 6c 65 73 2c | 20 22 6d 61 6b 65 20 74 |kefiles,| "make t|
|00002e80| 65 73 74 22 20 77 69 6c | 6c 20 70 65 72 66 6f 72 |est" wil|l perfor|
|00002e90| 6d 20 74 68 65 20 6e 65 | 63 65 73 73 61 72 79 0a |m the ne|cessary.|
|00002ea0| 58 63 6f 6d 70 61 72 69 | 73 6f 6e 73 2e 20 20 49 |Xcompari|sons. I|
|00002eb0| 66 20 79 6f 75 27 72 65 | 20 75 73 69 6e 67 20 61 |f you're| using a|
|00002ec0| 20 6d 61 6b 65 66 69 6c | 65 20 74 68 61 74 20 64 | makefil|e that d|
|00002ed0| 6f 65 73 6e 27 74 20 70 | 72 6f 76 69 64 65 20 74 |oesn't p|rovide t|
|00002ee0| 68 69 73 20 6f 70 74 69 | 6f 6e 2c 20 72 75 6e 0a |his opti|on, run.|
|00002ef0| 58 64 6a 70 65 67 20 61 | 6e 64 20 63 6a 70 65 67 |Xdjpeg a|nd cjpeg|
|00002f00| 20 74 6f 20 67 65 6e 65 | 72 61 74 65 20 74 65 73 | to gene|rate tes|
|00002f10| 74 6f 75 74 2e 70 70 6d | 2c 20 74 65 73 74 6f 75 |tout.ppm|, testou|
|00002f20| 74 2e 67 69 66 2c 20 61 | 6e 64 20 74 65 73 74 6f |t.gif, a|nd testo|
|00002f30| 75 74 2e 6a 70 67 2c 20 | 74 68 65 6e 0a 58 63 6f |ut.jpg, |then.Xco|
|00002f40| 6d 70 61 72 65 20 74 68 | 65 73 65 20 74 6f 20 74 |mpare th|ese to t|
|00002f50| 65 73 74 69 6d 67 2e 2a | 20 77 69 74 68 20 77 68 |estimg.*| with wh|
|00002f60| 61 74 65 76 65 72 20 62 | 69 6e 61 72 79 20 66 69 |atever b|inary fi|
|00002f70| 6c 65 20 63 6f 6d 70 61 | 72 69 73 6f 6e 20 74 6f |le compa|rison to|
|00002f80| 6f 6c 20 79 6f 75 20 68 | 61 76 65 2e 0a 58 54 68 |ol you h|ave..XTh|
|00002f90| 65 20 66 69 6c 65 73 20 | 73 68 6f 75 6c 64 20 62 |e files |should b|
|00002fa0| 65 20 62 69 74 2d 66 6f | 72 2d 62 69 74 20 69 64 |e bit-fo|r-bit id|
|00002fb0| 65 6e 74 69 63 61 6c 2e | 0a 58 0a 58 49 66 20 74 |entical.|.X.XIf t|
|00002fc0| 68 65 20 63 6a 70 65 67 | 20 74 65 73 74 20 72 75 |he cjpeg| test ru|
|00002fd0| 6e 20 66 61 69 6c 73 20 | 77 69 74 68 20 22 4d 69 |n fails |with "Mi|
|00002fe0| 73 73 69 6e 67 20 48 75 | 66 66 6d 61 6e 20 63 6f |ssing Hu|ffman co|
|00002ff0| 64 65 20 74 61 62 6c 65 | 20 65 6e 74 72 79 22 2c |de table| entry",|
|00003000| 20 69 74 27 73 20 61 0a | 58 67 6f 6f 64 20 62 65 | it's a.|Xgood be|
|00003010| 74 20 74 68 61 74 20 79 | 6f 75 20 6e 65 65 64 65 |t that y|ou neede|
|00003020| 64 20 74 6f 20 64 65 66 | 69 6e 65 20 52 49 47 48 |d to def|ine RIGH|
|00003030| 54 5f 53 48 49 46 54 5f | 49 53 5f 55 4e 53 49 47 |T_SHIFT_|IS_UNSIG|
|00003040| 4e 45 44 2e 20 20 47 6f | 20 62 61 63 6b 20 74 6f |NED. Go| back to|
|00003050| 20 73 74 65 70 20 32 0a | 58 61 6e 64 20 72 75 6e | step 2.|Xand run|
|00003060| 20 63 6b 63 6f 6e 66 69 | 67 2e 63 2e 20 20 28 54 | ckconfi|g.c. (T|
|00003070| 68 69 73 20 69 73 20 61 | 20 67 6f 6f 64 20 70 6c |his is a| good pl|
|00003080| 61 6e 20 66 6f 72 20 61 | 6e 79 20 6f 74 68 65 72 |an for a|ny other|
|00003090| 20 74 65 73 74 20 66 61 | 69 6c 75 72 65 2c 20 74 | test fa|ilure, t|
|000030a0| 6f 6f 2e 29 0a 58 0a 58 | 49 66 20 79 6f 75 72 20 |oo.).X.X|If your |
|000030b0| 63 68 6f 69 63 65 20 6f | 66 20 6a 6d 65 6d 73 79 |choice o|f jmemsy|
|000030c0| 73 2e 63 20 77 61 73 20 | 61 6e 79 74 68 69 6e 67 |s.c was |anything|
|000030d0| 20 6f 74 68 65 72 20 74 | 68 61 6e 20 6a 6d 65 6d | other t|han jmem|
|000030e0| 6e 6f 62 73 2e 63 2c 20 | 79 6f 75 20 73 68 6f 75 |nobs.c, |you shou|
|000030f0| 6c 64 0a 58 74 65 73 74 | 20 74 68 61 74 20 74 65 |ld.Xtest| that te|
|00003100| 6d 70 6f 72 61 72 79 2d | 66 69 6c 65 20 75 73 61 |mporary-|file usa|
|00003110| 67 65 20 77 6f 72 6b 73 | 2e 20 20 54 72 79 20 22 |ge works|. Try "|
|00003120| 64 6a 70 65 67 20 2d 67 | 69 66 20 2d 6d 61 78 20 |djpeg -g|if -max |
|00003130| 30 20 74 65 73 74 6f 72 | 69 67 2e 6a 70 67 22 0a |0 testor|ig.jpg".|
|00003140| 58 61 6e 64 20 6d 61 6b | 65 20 73 75 72 65 20 69 |Xand mak|e sure i|
|00003150| 74 73 20 6f 75 74 70 75 | 74 20 6d 61 74 63 68 65 |ts outpu|t matche|
|00003160| 73 20 74 65 73 74 69 6d | 67 2e 67 69 66 2e 20 20 |s testim|g.gif. |
|00003170| 49 66 20 79 6f 75 20 68 | 61 76 65 20 61 6e 79 20 |If you h|ave any |
|00003180| 72 65 61 6c 6c 79 20 6c | 61 72 67 65 0a 58 69 6d |really l|arge.Xim|
|00003190| 61 67 65 73 20 68 61 6e | 64 79 2c 20 74 72 79 20 |ages han|dy, try |
|000031a0| 63 6f 6d 70 72 65 73 73 | 69 6e 67 20 74 68 65 6d |compress|ing them|
|000031b0| 20 77 69 74 68 20 2d 6f | 70 74 69 6d 69 7a 65 20 | with -o|ptimize |
|000031c0| 61 6e 64 2f 6f 72 20 64 | 65 63 6f 6d 70 72 65 73 |and/or d|ecompres|
|000031d0| 73 69 6e 67 20 77 69 74 | 68 0a 58 2d 67 69 66 20 |sing wit|h.X-gif |
|000031e0| 74 6f 20 6d 61 6b 65 20 | 73 75 72 65 20 79 6f 75 |to make |sure you|
|000031f0| 72 20 44 45 46 41 55 4c | 54 5f 4d 41 58 5f 4d 45 |r DEFAUL|T_MAX_ME|
|00003200| 4d 20 73 65 74 74 69 6e | 67 20 69 73 20 6e 6f 74 |M settin|g is not|
|00003210| 20 74 6f 6f 20 6c 61 72 | 67 65 2e 0a 58 0a 58 4e | too lar|ge..X.XN|
|00003220| 4f 54 45 3a 20 74 68 69 | 73 20 69 73 20 66 61 72 |OTE: thi|s is far|
|00003230| 20 66 72 6f 6d 20 61 6e | 20 65 78 68 61 75 73 74 | from an| exhaust|
|00003240| 69 76 65 20 74 65 73 74 | 20 6f 66 20 74 68 65 20 |ive test| of the |
|00003250| 4a 50 45 47 20 73 6f 66 | 74 77 61 72 65 3b 20 73 |JPEG sof|tware; s|
|00003260| 6f 6d 65 20 6d 6f 64 75 | 6c 65 73 2c 0a 58 73 75 |ome modu|les,.Xsu|
|00003270| 63 68 20 61 73 20 31 2d | 70 61 73 73 20 63 6f 6c |ch as 1-|pass col|
|00003280| 6f 72 20 71 75 61 6e 74 | 69 7a 61 74 69 6f 6e 2c |or quant|ization,|
|00003290| 20 61 72 65 20 6e 6f 74 | 20 65 78 65 72 63 69 73 | are not| exercis|
|000032a0| 65 64 20 61 74 20 61 6c | 6c 2e 20 20 49 74 27 73 |ed at al|l. It's|
|000032b0| 20 6a 75 73 74 20 61 20 | 71 75 69 63 6b 0a 58 74 | just a |quick.Xt|
|000032c0| 65 73 74 20 74 6f 20 67 | 69 76 65 20 79 6f 75 20 |est to g|ive you |
|000032d0| 73 6f 6d 65 20 63 6f 6e | 66 69 64 65 6e 63 65 20 |some con|fidence |
|000032e0| 74 68 61 74 20 79 6f 75 | 20 68 61 76 65 6e 27 74 |that you| haven't|
|000032f0| 20 6d 69 73 73 65 64 20 | 73 6f 6d 65 74 68 69 6e | missed |somethin|
|00003300| 67 20 6d 61 6a 6f 72 2e | 0a 58 0a 58 0a 58 53 54 |g major.|.X.X.XST|
|00003310| 45 50 20 36 3a 20 49 4e | 53 54 41 4c 4c 41 54 49 |EP 6: IN|STALLATI|
|00003320| 4f 4e 0a 58 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ON.X====|========|
|00003330| 3d 3d 3d 3d 3d 3d 3d 3d | 0a 58 0a 58 4f 6e 63 65 |========|.X.XOnce|
|00003340| 20 79 6f 75 27 72 65 20 | 64 6f 6e 65 20 77 69 74 | you're |done wit|
|00003350| 68 20 74 68 65 20 61 62 | 6f 76 65 20 73 74 65 70 |h the ab|ove step|
|00003360| 73 2c 20 79 6f 75 20 63 | 61 6e 20 69 6e 73 74 61 |s, you c|an insta|
|00003370| 6c 6c 20 74 68 65 20 73 | 6f 66 74 77 61 72 65 20 |ll the s|oftware |
|00003380| 62 79 20 63 6f 70 79 69 | 6e 67 0a 58 74 68 65 20 |by copyi|ng.Xthe |
|00003390| 65 78 65 63 75 74 61 62 | 6c 65 20 66 69 6c 65 73 |executab|le files|
|000033a0| 20 28 63 6a 70 65 67 20 | 61 6e 64 20 64 6a 70 65 | (cjpeg |and djpe|
|000033b0| 67 29 20 74 6f 20 77 68 | 65 72 65 76 65 72 20 79 |g) to wh|erever y|
|000033c0| 6f 75 20 6e 6f 72 6d 61 | 6c 6c 79 20 69 6e 73 74 |ou norma|lly inst|
|000033d0| 61 6c 6c 0a 58 70 72 6f | 67 72 61 6d 73 2e 20 20 |all.Xpro|grams. |
|000033e0| 4f 6e 20 55 6e 69 78 20 | 73 79 73 74 65 6d 73 2c |On Unix |systems,|
|000033f0| 20 79 6f 75 27 6c 6c 20 | 61 6c 73 6f 20 77 61 6e | you'll |also wan|
|00003400| 74 20 74 6f 20 70 75 74 | 20 63 6a 70 65 67 2e 31 |t to put| cjpeg.1|
|00003410| 20 61 6e 64 20 64 6a 70 | 65 67 2e 31 20 69 6e 20 | and djp|eg.1 in |
|00003420| 74 68 65 0a 58 63 6f 72 | 72 65 73 70 6f 6e 64 69 |the.Xcor|respondi|
|00003430| 6e 67 20 6d 61 6e 75 61 | 6c 20 64 69 72 65 63 74 |ng manua|l direct|
|00003440| 6f 72 79 2e 20 20 28 54 | 68 65 20 6d 61 6b 65 66 |ory. (T|he makef|
|00003450| 69 6c 65 73 20 64 6f 6e | 27 74 20 73 75 70 70 6f |iles don|'t suppo|
|00003460| 72 74 20 74 68 69 73 20 | 73 74 65 70 20 73 69 6e |rt this |step sin|
|00003470| 63 65 0a 58 74 68 65 72 | 65 27 73 20 73 75 63 68 |ce.Xther|e's such|
|00003480| 20 61 20 77 69 64 65 20 | 76 61 72 69 65 74 79 20 | a wide |variety |
|00003490| 6f 66 20 69 6e 73 74 61 | 6c 6c 61 74 69 6f 6e 20 |of insta|llation |
|000034a0| 70 72 6f 63 65 64 75 72 | 65 73 20 6f 6e 20 64 69 |procedur|es on di|
|000034b0| 66 66 65 72 65 6e 74 20 | 73 79 73 74 65 6d 73 2e |fferent |systems.|
|000034c0| 29 0a 58 0a 58 54 6f 20 | 6c 65 61 72 6e 20 74 6f |).X.XTo |learn to|
|000034d0| 20 75 73 65 20 74 68 65 | 20 70 72 6f 67 72 61 6d | use the| program|
|000034e0| 73 2c 20 72 65 61 64 20 | 74 68 65 20 66 69 6c 65 |s, read |the file|
|000034f0| 20 55 53 41 47 45 20 28 | 6f 72 20 6d 61 6e 75 61 | USAGE (|or manua|
|00003500| 6c 20 70 61 67 65 73 20 | 63 6a 70 65 67 28 31 29 |l pages |cjpeg(1)|
|00003510| 0a 58 61 6e 64 20 64 6a | 70 65 67 28 31 29 20 6f |.Xand dj|peg(1) o|
|00003520| 6e 20 55 6e 69 78 29 2e | 0a 58 0a 58 0a 58 4f 50 |n Unix).|.X.X.XOP|
|00003530| 54 49 4d 49 5a 41 54 49 | 4f 4e 0a 58 3d 3d 3d 3d |TIMIZATI|ON.X====|
|00003540| 3d 3d 3d 3d 3d 3d 3d 3d | 0a 58 0a 58 55 6e 6c 65 |========|.X.XUnle|
|00003550| 73 73 20 79 6f 75 20 6f | 77 6e 20 61 20 43 72 61 |ss you o|wn a Cra|
|00003560| 79 2c 20 79 6f 75 27 6c | 6c 20 70 72 6f 62 61 62 |y, you'l|l probab|
|00003570| 6c 79 20 62 65 20 69 6e | 74 65 72 65 73 74 65 64 |ly be in|terested|
|00003580| 20 69 6e 20 6d 61 6b 69 | 6e 67 20 74 68 65 20 4a | in maki|ng the J|
|00003590| 50 45 47 0a 58 73 6f 66 | 74 77 61 72 65 20 67 6f |PEG.Xsof|tware go|
|000035a0| 20 61 73 20 66 61 73 74 | 20 61 73 20 70 6f 73 73 | as fast| as poss|
|000035b0| 69 62 6c 65 2e 20 20 54 | 68 69 73 20 73 65 63 74 |ible. T|his sect|
|000035c0| 69 6f 6e 20 63 6f 76 65 | 72 73 20 73 6f 6d 65 20 |ion cove|rs some |
|000035d0| 6d 61 63 68 69 6e 65 2d | 64 65 70 65 6e 64 65 6e |machine-|dependen|
|000035e0| 74 0a 58 6f 70 74 69 6d | 69 7a 61 74 69 6f 6e 73 |t.Xoptim|izations|
|000035f0| 20 79 6f 75 20 6d 61 79 | 20 77 61 6e 74 20 74 6f | you may| want to|
|00003600| 20 74 72 79 2e 20 20 57 | 65 20 73 75 67 67 65 73 | try. W|e sugges|
|00003610| 74 20 74 68 61 74 20 62 | 65 66 6f 72 65 20 74 72 |t that b|efore tr|
|00003620| 79 69 6e 67 20 61 6e 79 | 20 6f 66 20 74 68 69 73 |ying any| of this|
|00003630| 2c 0a 58 79 6f 75 20 66 | 69 72 73 74 20 67 65 74 |,.Xyou f|irst get|
|00003640| 20 74 68 65 20 62 61 73 | 69 63 20 69 6e 73 74 61 | the bas|ic insta|
|00003650| 6c 6c 61 74 69 6f 6e 20 | 74 6f 20 70 61 73 73 20 |llation |to pass |
|00003660| 74 68 65 20 73 65 6c 66 | 2d 74 65 73 74 20 28 73 |the self|-test (s|
|00003670| 74 65 70 20 35 20 61 62 | 6f 76 65 29 2e 0a 58 52 |tep 5 ab|ove)..XR|
|00003680| 65 70 65 61 74 20 74 68 | 65 20 73 65 6c 66 2d 74 |epeat th|e self-t|
|00003690| 65 73 74 20 61 66 74 65 | 72 20 61 6e 79 20 6f 70 |est afte|r any op|
|000036a0| 74 69 6d 69 7a 61 74 69 | 6f 6e 20 74 6f 20 6d 61 |timizati|on to ma|
|000036b0| 6b 65 20 73 75 72 65 20 | 74 68 61 74 20 79 6f 75 |ke sure |that you|
|000036c0| 20 68 61 76 65 6e 27 74 | 0a 58 62 72 6f 6b 65 6e | haven't|.Xbroken|
|000036d0| 20 61 6e 79 74 68 69 6e | 67 2e 0a 58 0a 58 54 68 | anythin|g..X.XTh|
|000036e0| 65 20 4a 50 45 47 20 44 | 43 54 20 72 6f 75 74 69 |e JPEG D|CT routi|
|000036f0| 6e 65 73 20 70 65 72 66 | 6f 72 6d 20 61 20 6c 6f |nes perf|orm a lo|
|00003700| 74 20 6f 66 20 6d 75 6c | 74 69 70 6c 69 63 61 74 |t of mul|tiplicat|
|00003710| 69 6f 6e 73 2e 20 20 54 | 68 65 73 65 20 6d 75 6c |ions. T|hese mul|
|00003720| 74 69 70 6c 69 63 61 74 | 69 6f 6e 73 0a 58 6d 75 |tiplicat|ions.Xmu|
|00003730| 73 74 20 79 69 65 6c 64 | 20 33 32 2d 62 69 74 20 |st yield| 32-bit |
|00003740| 72 65 73 75 6c 74 73 2c | 20 62 75 74 20 6e 6f 6e |results,| but non|
|00003750| 65 20 6f 66 20 74 68 65 | 69 72 20 69 6e 70 75 74 |e of the|ir input|
|00003760| 20 76 61 6c 75 65 73 20 | 61 72 65 20 6d 6f 72 65 | values |are more|
|00003770| 20 74 68 61 6e 20 31 36 | 0a 58 62 69 74 73 20 77 | than 16|.Xbits w|
|00003780| 69 64 65 2e 20 20 4f 6e | 20 6d 61 6e 79 20 6d 61 |ide. On| many ma|
|00003790| 63 68 69 6e 65 73 2c 20 | 6e 6f 74 61 62 6c 79 20 |chines, |notably |
|000037a0| 74 68 65 20 36 38 30 78 | 30 20 61 6e 64 20 38 30 |the 680x|0 and 80|
|000037b0| 78 38 36 20 43 50 55 73 | 2c 20 61 20 31 36 78 31 |x86 CPUs|, a 16x1|
|000037c0| 36 3d 3e 33 32 0a 58 62 | 69 74 20 6d 75 6c 74 69 |6=>32.Xb|it multi|
|000037d0| 70 6c 79 20 69 6e 73 74 | 72 75 63 74 69 6f 6e 20 |ply inst|ruction |
|000037e0| 69 73 20 66 61 73 74 65 | 72 20 74 68 61 6e 20 61 |is faste|r than a|
|000037f0| 20 66 75 6c 6c 20 33 32 | 78 33 32 3d 3e 33 32 20 | full 32|x32=>32 |
|00003800| 62 69 74 20 6d 75 6c 74 | 69 70 6c 79 2e 0a 58 55 |bit mult|iply..XU|
|00003810| 6e 66 6f 72 74 75 6e 61 | 74 65 6c 79 20 74 68 65 |nfortuna|tely the|
|00003820| 72 65 20 69 73 20 6e 6f | 20 70 6f 72 74 61 62 6c |re is no| portabl|
|00003830| 65 20 77 61 79 20 74 6f | 20 73 70 65 63 69 66 79 |e way to| specify|
|00003840| 20 73 75 63 68 20 61 20 | 6d 75 6c 74 69 70 6c 69 | such a |multipli|
|00003850| 63 61 74 69 6f 6e 20 69 | 6e 20 43 2c 0a 58 62 75 |cation i|n C,.Xbu|
|00003860| 74 20 73 6f 6d 65 20 63 | 6f 6d 70 69 6c 65 72 73 |t some c|ompilers|
|00003870| 20 63 61 6e 20 67 65 6e | 65 72 61 74 65 20 6f 6e | can gen|erate on|
|00003880| 65 20 77 68 65 6e 20 79 | 6f 75 20 75 73 65 20 74 |e when y|ou use t|
|00003890| 68 65 20 72 69 67 68 74 | 20 63 6f 6d 62 69 6e 61 |he right| combina|
|000038a0| 74 69 6f 6e 20 6f 66 0a | 58 63 61 73 74 73 2e 20 |tion of.|Xcasts. |
|000038b0| 20 53 65 65 20 74 68 65 | 20 4d 55 4c 54 49 50 4c | See the| MULTIPL|
|000038c0| 59 20 6d 61 63 72 6f 20 | 64 65 66 69 6e 69 74 69 |Y macro |definiti|
|000038d0| 6f 6e 73 20 69 6e 20 6a | 66 77 64 64 63 74 2e 63 |ons in j|fwddct.c|
|000038e0| 20 61 6e 64 20 6a 72 65 | 76 64 63 74 2e 63 2e 0a | and jre|vdct.c..|
|000038f0| 58 49 66 20 79 6f 75 72 | 20 63 6f 6d 70 69 6c 65 |XIf your| compile|
|00003900| 72 20 6d 61 6b 65 73 20 | 22 69 6e 74 22 20 62 65 |r makes |"int" be|
|00003910| 20 33 32 20 62 69 74 73 | 20 61 6e 64 20 22 73 68 | 32 bits| and "sh|
|00003920| 6f 72 74 22 20 62 65 20 | 31 36 20 62 69 74 73 2c |ort" be |16 bits,|
|00003930| 20 64 65 66 69 6e 69 6e | 67 0a 58 53 48 4f 52 54 | definin|g.XSHORT|
|00003940| 78 53 48 4f 52 54 5f 33 | 32 20 69 73 20 66 61 69 |xSHORT_3|2 is fai|
|00003950| 72 6c 79 20 6c 69 6b 65 | 6c 79 20 74 6f 20 77 6f |rly like|ly to wo|
|00003960| 72 6b 2e 20 20 57 68 65 | 6e 20 65 78 70 65 72 69 |rk. Whe|n experi|
|00003970| 6d 65 6e 74 69 6e 67 20 | 77 69 74 68 20 61 6c 74 |menting |with alt|
|00003980| 65 72 6e 61 74 65 0a 58 | 64 65 66 69 6e 69 74 69 |ernate.X|definiti|
|00003990| 6f 6e 73 2c 20 62 65 20 | 73 75 72 65 20 74 6f 20 |ons, be |sure to |
|000039a0| 74 65 73 74 20 6e 6f 74 | 20 6f 6e 6c 79 20 77 68 |test not| only wh|
|000039b0| 65 74 68 65 72 20 74 68 | 65 20 63 6f 64 65 20 73 |ether th|e code s|
|000039c0| 74 69 6c 6c 20 77 6f 72 | 6b 73 20 28 75 73 65 20 |till wor|ks (use |
|000039d0| 74 68 65 0a 58 73 65 6c | 66 2d 74 65 73 74 20 73 |the.Xsel|f-test s|
|000039e0| 74 65 70 29 2c 20 62 75 | 74 20 61 6c 73 6f 20 77 |tep), bu|t also w|
|000039f0| 68 65 74 68 65 72 20 69 | 74 20 69 73 20 61 63 74 |hether i|t is act|
|00003a00| 75 61 6c 6c 79 20 66 61 | 73 74 65 72 20 2d 2d 2d |ually fa|ster ---|
|00003a10| 20 6f 6e 20 73 6f 6d 65 | 20 63 6f 6d 70 69 6c 65 | on some| compile|
|00003a20| 72 73 2c 0a 58 61 6c 74 | 65 72 6e 61 74 65 20 64 |rs,.Xalt|ernate d|
|00003a30| 65 66 69 6e 69 74 69 6f | 6e 73 20 6d 61 79 20 63 |efinitio|ns may c|
|00003a40| 6f 6d 70 75 74 65 20 74 | 68 65 20 72 69 67 68 74 |ompute t|he right|
|00003a50| 20 61 6e 73 77 65 72 2c | 20 79 65 74 20 62 65 20 | answer,| yet be |
|00003a60| 73 6c 6f 77 65 72 20 74 | 68 61 6e 20 74 68 65 0a |slower t|han the.|
|00003a70| 58 64 65 66 61 75 6c 74 | 2e 20 20 54 69 6d 69 6e |Xdefault|. Timin|
|00003a80| 67 20 63 6a 70 65 67 20 | 6f 6e 20 61 20 6c 61 72 |g cjpeg |on a lar|
|00003a90| 67 65 20 50 50 4d 20 69 | 6e 70 75 74 20 66 69 6c |ge PPM i|nput fil|
|00003aa0| 65 20 69 73 20 74 68 65 | 20 62 65 73 74 20 77 61 |e is the| best wa|
|00003ab0| 79 20 74 6f 20 63 68 65 | 63 6b 0a 58 74 68 69 73 |y to che|ck.Xthis|
|00003ac0| 2c 20 61 73 20 74 68 65 | 20 44 43 54 20 77 69 6c |, as the| DCT wil|
|00003ad0| 6c 20 62 65 20 74 68 65 | 20 6c 61 72 67 65 73 74 |l be the| largest|
|00003ae0| 20 66 72 61 63 74 69 6f | 6e 20 6f 66 20 74 68 65 | fractio|n of the|
|00003af0| 20 72 75 6e 74 69 6d 65 | 20 69 6e 20 74 68 61 74 | runtime| in that|
|00003b00| 20 6d 6f 64 65 2e 0a 58 | 28 4e 6f 74 65 3a 20 73 | mode..X|(Note: s|
|00003b10| 6f 6d 65 20 6f 66 20 74 | 68 65 20 64 69 73 74 72 |ome of t|he distr|
|00003b20| 69 62 75 74 65 64 20 63 | 6f 6d 70 69 6c 65 72 2d |ibuted c|ompiler-|
|00003b30| 73 70 65 63 69 66 69 63 | 20 6d 61 6b 65 66 69 6c |specific| makefil|
|00003b40| 65 73 20 61 6c 72 65 61 | 64 79 20 63 6f 6e 74 61 |es alrea|dy conta|
|00003b50| 69 6e 0a 58 2d 44 20 73 | 77 69 74 63 68 65 73 20 |in.X-D s|witches |
|00003b60| 74 6f 20 73 65 6c 65 63 | 74 20 61 6e 20 61 70 70 |to selec|t an app|
|00003b70| 72 6f 70 72 69 61 74 65 | 20 4d 55 4c 54 49 50 4c |ropriate| MULTIPL|
|00003b80| 59 20 64 65 66 69 6e 69 | 74 69 6f 6e 2e 29 0a 58 |Y defini|tion.).X|
|00003b90| 0a 58 49 66 20 61 63 63 | 65 73 73 20 74 6f 20 22 |.XIf acc|ess to "|
|00003ba0| 73 68 6f 72 74 22 20 61 | 72 72 61 79 73 20 69 73 |short" a|rrays is|
|00003bb0| 20 73 6c 6f 77 20 6f 6e | 20 79 6f 75 72 20 6d 61 | slow on| your ma|
|00003bc0| 63 68 69 6e 65 2c 20 69 | 74 20 6d 61 79 20 62 65 |chine, i|t may be|
|00003bd0| 20 61 20 77 69 6e 20 74 | 6f 20 64 65 66 69 6e 65 | a win t|o define|
|00003be0| 0a 58 74 79 70 65 20 44 | 43 54 45 4c 45 4d 20 61 |.Xtype D|CTELEM a|
|00003bf0| 73 20 69 6e 74 20 72 61 | 74 68 65 72 20 74 68 61 |s int ra|ther tha|
|00003c00| 6e 20 61 73 20 4a 43 4f | 45 46 20 28 77 68 69 63 |n as JCO|EF (whic|
|00003c10| 68 20 69 73 20 6e 6f 72 | 6d 61 6c 6c 79 20 64 65 |h is nor|mally de|
|00003c20| 66 69 6e 65 64 20 61 73 | 20 73 68 6f 72 74 29 2e |fined as| short).|
|00003c30| 0a 58 54 68 69 73 20 77 | 69 6c 6c 20 63 61 75 73 |.XThis w|ill caus|
|00003c40| 65 20 74 68 65 20 44 43 | 54 20 72 6f 75 74 69 6e |e the DC|T routin|
|00003c50| 65 73 20 74 6f 20 6f 70 | 65 72 61 74 65 20 6f 6e |es to op|erate on|
|00003c60| 20 69 6e 74 20 61 72 72 | 61 79 73 20 69 6e 73 74 | int arr|ays inst|
|00003c70| 65 61 64 20 6f 66 20 73 | 68 6f 72 74 0a 58 61 72 |ead of s|hort.Xar|
|00003c80| 72 61 79 73 2e 20 20 49 | 66 20 73 68 6f 72 74 73 |rays. I|f shorts|
|00003c90| 20 61 72 65 20 73 6c 6f | 77 20 61 6e 64 20 79 6f | are slo|w and yo|
|00003ca0| 75 20 68 61 76 65 20 6c | 6f 74 73 20 6f 66 20 6d |u have l|ots of m|
|00003cb0| 65 6d 6f 72 79 20 74 6f | 20 62 75 72 6e 2c 20 79 |emory to| burn, y|
|00003cc0| 6f 75 20 6d 69 67 68 74 | 0a 58 65 76 65 6e 20 6d |ou might|.Xeven m|
|00003cd0| 61 6b 65 20 4a 43 4f 45 | 46 20 69 74 73 65 6c 66 |ake JCOE|F itself|
|00003ce0| 20 62 65 20 69 6e 74 2e | 0a 58 0a 58 49 66 20 79 | be int.|.X.XIf y|
|00003cf0| 6f 75 72 20 63 6f 6d 70 | 69 6c 65 72 20 63 61 6e |our comp|iler can|
|00003d00| 20 63 6f 6d 70 69 6c 65 | 20 66 75 6e 63 74 69 6f | compile| functio|
|00003d10| 6e 20 63 61 6c 6c 73 20 | 69 6e 2d 6c 69 6e 65 2c |n calls |in-line,|
|00003d20| 20 6d 61 6b 65 20 73 75 | 72 65 20 74 68 65 20 49 | make su|re the I|
|00003d30| 4e 4c 49 4e 45 0a 58 6d | 61 63 72 6f 20 69 6e 20 |NLINE.Xm|acro in |
|00003d40| 6a 63 6f 6e 66 69 67 2e | 68 20 69 73 20 64 65 66 |jconfig.|h is def|
|00003d50| 69 6e 65 64 20 61 73 20 | 74 68 65 20 6b 65 79 77 |ined as |the keyw|
|00003d60| 6f 72 64 20 74 68 61 74 | 20 6d 61 72 6b 73 20 61 |ord that| marks a|
|00003d70| 20 66 75 6e 63 74 69 6f | 6e 0a 58 69 6e 6c 69 6e | functio|n.Xinlin|
|00003d80| 65 2d 61 62 6c 65 2e 20 | 20 53 6f 6d 65 20 63 6f |e-able. | Some co|
|00003d90| 6d 70 69 6c 65 72 73 20 | 68 61 76 65 20 61 20 73 |mpilers |have a s|
|00003da0| 77 69 74 63 68 20 74 68 | 61 74 20 74 65 6c 6c 73 |witch th|at tells|
|00003db0| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 20 74 6f | the com|piler to|
|00003dc0| 20 69 6e 6c 69 6e 65 0a | 58 61 6e 79 20 66 75 6e | inline.|Xany fun|
|00003dd0| 63 74 69 6f 6e 20 69 74 | 20 74 68 69 6e 6b 73 20 |ction it| thinks |
|00003de0| 69 73 20 70 72 6f 66 69 | 74 61 62 6c 65 20 28 65 |is profi|table (e|
|00003df0| 2e 67 2e 2c 20 2d 66 69 | 6e 6c 69 6e 65 2d 66 75 |.g., -fi|nline-fu|
|00003e00| 6e 63 74 69 6f 6e 73 20 | 66 6f 72 20 67 63 63 29 |nctions |for gcc)|
|00003e10| 2e 0a 58 45 6e 61 62 6c | 69 6e 67 20 73 75 63 68 |..XEnabl|ing such|
|00003e20| 20 61 20 73 77 69 74 63 | 68 20 69 73 20 6c 69 6b | a switc|h is lik|
|00003e30| 65 6c 79 20 74 6f 20 6d | 61 6b 65 20 74 68 65 20 |ely to m|ake the |
|00003e40| 63 6f 6d 70 69 6c 65 64 | 20 63 6f 64 65 20 62 69 |compiled| code bi|
|00003e50| 67 67 65 72 20 62 75 74 | 20 66 61 73 74 65 72 2e |gger but| faster.|
|00003e60| 0a 58 0a 58 49 6e 20 67 | 65 6e 65 72 61 6c 2c 20 |.X.XIn g|eneral, |
|00003e70| 69 74 27 73 20 77 6f 72 | 74 68 20 74 72 79 69 6e |it's wor|th tryin|
|00003e80| 67 20 74 68 65 20 6d 61 | 78 69 6d 75 6d 20 6f 70 |g the ma|ximum op|
|00003e90| 74 69 6d 69 7a 61 74 69 | 6f 6e 20 6c 65 76 65 6c |timizati|on level|
|00003ea0| 20 6f 66 20 79 6f 75 72 | 20 63 6f 6d 70 69 6c 65 | of your| compile|
|00003eb0| 72 2c 0a 58 61 6e 64 20 | 65 78 70 65 72 69 6d 65 |r,.Xand |experime|
|00003ec0| 6e 74 69 6e 67 20 77 69 | 74 68 20 61 6e 79 20 6f |nting wi|th any o|
|00003ed0| 70 74 69 6f 6e 61 6c 20 | 6f 70 74 69 6d 69 7a 61 |ptional |optimiza|
|00003ee0| 74 69 6f 6e 73 20 73 75 | 63 68 20 61 73 20 6c 6f |tions su|ch as lo|
|00003ef0| 6f 70 20 75 6e 72 6f 6c | 6c 69 6e 67 2e 0a 58 28 |op unrol|ling..X(|
|00003f00| 55 6e 66 6f 72 74 75 6e | 61 74 65 6c 79 2c 20 66 |Unfortun|ately, f|
|00003f10| 61 72 20 74 6f 6f 20 6d | 61 6e 79 20 63 6f 6d 70 |ar too m|any comp|
|00003f20| 69 6c 65 72 73 20 68 61 | 76 65 20 6f 70 74 69 6d |ilers ha|ve optim|
|00003f30| 69 7a 65 72 20 62 75 67 | 73 20 2e 2e 2e 20 62 65 |izer bug|s ... be|
|00003f40| 20 70 72 65 70 61 72 65 | 64 20 74 6f 0a 58 62 61 | prepare|d to.Xba|
|00003f50| 63 6b 20 6f 66 66 20 69 | 66 20 74 68 65 20 63 6f |ck off i|f the co|
|00003f60| 64 65 20 66 61 69 6c 73 | 20 73 65 6c 66 2d 74 65 |de fails| self-te|
|00003f70| 73 74 2e 29 20 20 49 66 | 20 79 6f 75 20 64 6f 20 |st.) If| you do |
|00003f80| 61 6e 79 20 65 78 70 65 | 72 69 6d 65 6e 74 61 74 |any expe|rimentat|
|00003f90| 69 6f 6e 20 61 6c 6f 6e | 67 0a 58 74 68 65 73 65 |ion alon|g.Xthese|
|00003fa0| 20 6c 69 6e 65 73 2c 20 | 70 6c 65 61 73 65 20 72 | lines, |please r|
|00003fb0| 65 70 6f 72 74 20 74 68 | 65 20 6f 70 74 69 6d 61 |eport th|e optima|
|00003fc0| 6c 20 73 65 74 74 69 6e | 67 73 20 74 6f 20 6a 70 |l settin|gs to jp|
|00003fd0| 65 67 2d 69 6e 66 6f 40 | 75 75 6e 65 74 2e 75 75 |eg-info@|uunet.uu|
|00003fe0| 2e 6e 65 74 20 73 6f 0a | 58 77 65 20 63 61 6e 20 |.net so.|Xwe can |
|00003ff0| 6d 65 6e 74 69 6f 6e 20 | 74 68 65 6d 20 69 6e 20 |mention |them in |
|00004000| 66 75 74 75 72 65 20 72 | 65 6c 65 61 73 65 73 2e |future r|eleases.|
|00004010| 20 20 42 65 20 73 75 72 | 65 20 74 6f 20 73 70 65 | Be sur|e to spe|
|00004020| 63 69 66 79 20 79 6f 75 | 72 20 6d 61 63 68 69 6e |cify you|r machin|
|00004030| 65 20 61 6e 64 0a 58 63 | 6f 6d 70 69 6c 65 72 20 |e and.Xc|ompiler |
|00004040| 76 65 72 73 69 6f 6e 2e | 0a 58 0a 58 0a 58 4f 50 |version.|.X.X.XOP|
|00004050| 54 49 4f 4e 41 4c 20 53 | 54 55 46 46 0a 58 3d 3d |TIONAL S|TUFF.X==|
|00004060| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0a 58 0a 58 |========|====.X.X|
|00004070| 50 72 6f 67 72 65 73 73 | 20 6d 6f 6e 69 74 6f 72 |Progress| monitor|
|00004080| 3a 0a 58 0a 58 49 66 20 | 79 6f 75 20 6c 69 6b 65 |:.X.XIf |you like|
|00004090| 2c 20 79 6f 75 20 63 61 | 6e 20 23 64 65 66 69 6e |, you ca|n #defin|
|000040a0| 65 20 50 52 4f 47 52 45 | 53 53 5f 52 45 50 4f 52 |e PROGRE|SS_REPOR|
|000040b0| 54 20 28 69 6e 20 6a 63 | 6f 6e 66 69 67 2e 68 20 |T (in jc|onfig.h |
|000040c0| 6f 72 20 69 6e 20 74 68 | 65 20 4d 61 6b 65 66 69 |or in th|e Makefi|
|000040d0| 6c 65 29 0a 58 74 6f 20 | 65 6e 61 62 6c 65 20 64 |le).Xto |enable d|
|000040e0| 69 73 70 6c 61 79 20 6f | 66 20 70 65 72 63 65 6e |isplay o|f percen|
|000040f0| 74 2d 64 6f 6e 65 20 70 | 72 6f 67 72 65 73 73 20 |t-done p|rogress |
|00004100| 72 65 70 6f 72 74 73 2e | 20 20 54 68 65 20 72 6f |reports.| The ro|
|00004110| 75 74 69 6e 65 73 20 70 | 72 6f 76 69 64 65 64 20 |utines p|rovided |
|00004120| 69 6e 0a 58 6a 63 6d 61 | 69 6e 2e 63 2f 6a 64 6d |in.Xjcma|in.c/jdm|
|00004130| 61 69 6e 2e 63 20 6d 65 | 72 65 6c 79 20 70 72 69 |ain.c me|rely pri|
|00004140| 6e 74 20 70 65 72 63 65 | 6e 74 61 67 65 73 20 74 |nt perce|ntages t|
|00004150| 6f 20 73 74 64 65 72 72 | 2c 20 62 75 74 20 79 6f |o stderr|, but yo|
|00004160| 75 20 63 61 6e 20 63 75 | 73 74 6f 6d 69 7a 65 0a |u can cu|stomize.|
|00004170| 58 74 68 65 6d 20 74 6f | 20 64 6f 20 73 6f 6d 65 |Xthem to| do some|
|00004180| 74 68 69 6e 67 20 66 61 | 6e 63 69 65 72 2e 0a 58 |thing fa|ncier..X|
|00004190| 0a 58 55 74 61 68 20 52 | 4c 45 20 66 69 6c 65 20 |.XUtah R|LE file |
|000041a0| 66 6f 72 6d 61 74 20 73 | 75 70 70 6f 72 74 3a 0a |format s|upport:.|
|000041b0| 58 0a 58 57 65 20 64 69 | 73 74 72 69 62 75 74 65 |X.XWe di|stribute|
|000041c0| 20 74 68 65 20 73 6f 66 | 74 77 61 72 65 20 77 69 | the sof|tware wi|
|000041d0| 74 68 20 73 75 70 70 6f | 72 74 20 66 6f 72 20 52 |th suppo|rt for R|
|000041e0| 4c 45 20 69 6d 61 67 65 | 20 66 69 6c 65 73 20 28 |LE image| files (|
|000041f0| 55 74 61 68 20 52 61 73 | 74 65 72 0a 58 54 6f 6f |Utah Ras|ter.XToo|
|00004200| 6c 6b 69 74 20 66 6f 72 | 6d 61 74 29 20 64 69 73 |lkit for|mat) dis|
|00004210| 61 62 6c 65 64 2c 20 62 | 65 63 61 75 73 65 20 74 |abled, b|ecause t|
|00004220| 68 65 20 52 4c 45 20 73 | 75 70 70 6f 72 74 20 77 |he RLE s|upport w|
|00004230| 6f 6e 27 74 20 63 6f 6d | 70 69 6c 65 20 77 69 74 |on't com|pile wit|
|00004240| 68 6f 75 74 20 74 68 65 | 0a 58 55 74 61 68 20 6c |hout the|.XUtah l|
|00004250| 69 62 72 61 72 79 2e 20 | 20 49 66 20 79 6f 75 20 |ibrary. | If you |
|00004260| 68 61 76 65 20 55 52 54 | 20 76 65 72 73 69 6f 6e |have URT| version|
|00004270| 20 33 2e 30 2c 20 79 6f | 75 20 63 61 6e 20 65 6e | 3.0, yo|u can en|
|00004280| 61 62 6c 65 20 52 4c 45 | 20 73 75 70 70 6f 72 74 |able RLE| support|
|00004290| 20 61 73 0a 58 66 6f 6c | 6c 6f 77 73 3a 0a 58 09 | as.Xfol|lows:.X.|
|000042a0| 31 2e 20 20 23 64 65 66 | 69 6e 65 20 52 4c 45 5f |1. #def|ine RLE_|
|000042b0| 53 55 50 50 4f 52 54 45 | 44 20 69 6e 20 6a 63 6f |SUPPORTE|D in jco|
|000042c0| 6e 66 69 67 2e 68 20 6f | 72 20 69 6e 20 74 68 65 |nfig.h o|r in the|
|000042d0| 20 4d 61 6b 65 66 69 6c | 65 2e 0a 58 09 32 2e 20 | Makefil|e..X.2. |
|000042e0| 20 41 64 64 20 61 20 2d | 49 20 6f 70 74 69 6f 6e | Add a -|I option|
|000042f0| 20 74 6f 20 43 46 4c 41 | 47 53 20 69 6e 20 74 68 | to CFLA|GS in th|
|00004300| 65 20 4d 61 6b 65 66 69 | 6c 65 20 66 6f 72 20 74 |e Makefi|le for t|
|00004310| 68 65 20 64 69 72 65 63 | 74 6f 72 79 0a 58 09 20 |he direc|tory.X. |
|00004320| 20 20 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 74 68 | conta|ining th|
|00004330| 65 20 55 52 54 20 2e 68 | 20 66 69 6c 65 73 20 28 |e URT .h| files (|
|00004340| 74 79 70 69 63 61 6c 6c | 79 20 74 68 65 20 22 69 |typicall|y the "i|
|00004350| 6e 63 6c 75 64 65 22 0a | 58 09 20 20 20 20 73 75 |nclude".|X. su|
|00004360| 62 64 69 72 65 63 74 6f | 72 79 20 6f 66 20 74 68 |bdirecto|ry of th|
|00004370| 65 20 55 52 54 20 64 69 | 73 74 72 69 62 75 74 69 |e URT di|stributi|
|00004380| 6f 6e 29 2e 0a 58 09 33 | 2e 20 20 41 64 64 20 2d |on)..X.3|. Add -|
|00004390| 4c 2e 2e 2e 20 2d 6c 72 | 6c 65 20 74 6f 20 4c 44 |L... -lr|le to LD|
|000043a0| 4c 49 42 53 20 69 6e 20 | 74 68 65 20 4d 61 6b 65 |LIBS in |the Make|
|000043b0| 66 69 6c 65 2c 20 77 68 | 65 72 65 20 2e 2e 2e 20 |file, wh|ere ... |
|000043c0| 73 70 65 63 69 66 69 65 | 73 0a 58 09 20 20 20 20 |specifie|s.X. |
|000043d0| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 20 63 6f |the dire|ctory co|
|000043e0| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 55 52 54 |ntaining| the URT|
|000043f0| 20 22 6c 69 62 72 6c 65 | 2e 61 22 20 66 69 6c 65 | "librle|.a" file|
|00004400| 20 28 74 79 70 69 63 61 | 6c 6c 79 20 74 68 65 0a | (typica|lly the.|
|00004410| 58 09 20 20 20 20 22 6c | 69 62 22 20 73 75 62 64 |X. "l|ib" subd|
|00004420| 69 72 65 63 74 6f 72 79 | 20 6f 66 20 74 68 65 20 |irectory| of the |
|00004430| 55 52 54 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |URT dist|ribution|
|00004440| 29 2e 0a 58 0a 58 4a 50 | 45 47 20 6c 69 62 72 61 |)..X.XJP|EG libra|
|00004450| 72 79 3a 0a 58 0a 58 49 | 66 20 79 6f 75 20 77 61 |ry:.X.XI|f you wa|
|00004460| 6e 74 20 74 6f 20 69 6e | 63 6f 72 70 6f 72 61 74 |nt to in|corporat|
|00004470| 65 20 74 68 65 20 4a 50 | 45 47 20 63 6f 64 65 20 |e the JP|EG code |
|00004480| 61 73 20 73 75 62 72 6f | 75 74 69 6e 65 73 20 69 |as subro|utines i|
|00004490| 6e 20 61 20 6c 61 72 67 | 65 72 20 70 72 6f 67 72 |n a larg|er progr|
|000044a0| 61 6d 2c 0a 58 77 65 20 | 72 65 63 6f 6d 6d 65 6e |am,.Xwe |recommen|
|000044b0| 64 20 74 68 61 74 20 79 | 6f 75 20 6d 61 6b 65 20 |d that y|ou make |
|000044c0| 6c 69 62 6a 70 65 67 2e | 61 2c 20 74 68 65 6e 20 |libjpeg.|a, then |
|000044d0| 6c 69 6e 6b 20 74 68 61 | 74 20 69 6e 74 6f 20 79 |link tha|t into y|
|000044e0| 6f 75 72 20 73 75 72 72 | 6f 75 6e 64 69 6e 67 0a |our surr|ounding.|
|000044f0| 58 70 72 6f 67 72 61 6d | 2e 20 20 53 65 65 20 66 |Xprogram|. See f|
|00004500| 69 6c 65 20 52 45 41 44 | 4d 45 20 66 6f 72 20 6d |ile READ|ME for m|
|00004510| 6f 72 65 20 69 6e 66 6f | 2e 0a 58 0a 58 43 41 55 |ore info|..X.XCAU|
|00004520| 54 49 4f 4e 3a 20 57 68 | 65 6e 20 79 6f 75 20 75 |TION: Wh|en you u|
|00004530| 73 65 20 74 68 65 20 4a | 50 45 47 20 63 6f 64 65 |se the J|PEG code|
|00004540| 20 61 73 20 73 75 62 72 | 6f 75 74 69 6e 65 73 2c | as subr|outines,|
|00004550| 20 77 65 20 72 65 63 6f | 6d 6d 65 6e 64 20 74 68 | we reco|mmend th|
|00004560| 61 74 20 79 6f 75 20 6d | 61 6b 65 0a 58 61 6e 79 |at you m|ake.Xany|
|00004570| 20 72 65 71 75 69 72 65 | 64 20 63 6f 6e 66 69 67 | require|d config|
|00004580| 75 72 61 74 69 6f 6e 20 | 63 68 61 6e 67 65 73 20 |uration |changes |
|00004590| 62 79 20 6d 6f 64 69 66 | 79 69 6e 67 20 6a 63 6f |by modif|ying jco|
|000045a0| 6e 66 69 67 2e 68 2c 20 | 6e 6f 74 20 62 79 20 61 |nfig.h, |not by a|
|000045b0| 64 64 69 6e 67 20 2d 44 | 0a 58 73 77 69 74 63 68 |dding -D|.Xswitch|
|000045c0| 65 73 20 74 6f 20 74 68 | 65 20 4d 61 6b 65 66 69 |es to th|e Makefi|
|000045d0| 6c 65 2e 20 20 4f 74 68 | 65 72 77 69 73 65 20 79 |le. Oth|erwise y|
|000045e0| 6f 75 20 6d 75 73 74 20 | 62 65 20 73 75 72 65 20 |ou must |be sure |
|000045f0| 74 6f 20 70 72 6f 76 69 | 64 65 20 74 68 65 20 73 |to provi|de the s|
|00004600| 61 6d 65 20 2d 44 0a 58 | 73 77 69 74 63 68 65 73 |ame -D.X|switches|
|00004610| 20 77 68 65 6e 20 63 6f | 6d 70 69 6c 69 6e 67 20 | when co|mpiling |
|00004620| 61 6e 79 20 70 72 6f 67 | 72 61 6d 20 74 68 61 74 |any prog|ram that|
|00004630| 20 69 6e 63 6c 75 64 65 | 73 20 74 68 65 20 4a 50 | include|s the JP|
|00004640| 45 47 20 2e 68 20 66 69 | 6c 65 73 2c 20 74 6f 20 |EG .h fi|les, to |
|00004650| 65 6e 73 75 72 65 0a 58 | 74 68 61 74 20 74 68 65 |ensure.X|that the|
|00004660| 20 70 61 72 61 6d 65 74 | 65 72 20 73 74 72 75 63 | paramet|er struc|
|00004670| 74 75 72 65 73 20 61 72 | 65 20 69 6e 74 65 72 70 |tures ar|e interp|
|00004680| 72 65 74 65 64 20 74 68 | 65 20 73 61 6d 65 20 77 |reted th|e same w|
|00004690| 61 79 2e 20 20 28 54 68 | 69 73 20 69 73 20 6f 6e |ay. (Th|is is on|
|000046a0| 6c 79 0a 58 63 72 69 74 | 69 63 61 6c 20 66 6f 72 |ly.Xcrit|ical for|
|000046b0| 20 74 68 65 20 66 69 72 | 73 74 20 66 65 77 20 73 | the fir|st few s|
|000046c0| 79 6d 62 6f 6c 73 20 6d | 65 6e 74 69 6f 6e 65 64 |ymbols m|entioned|
|000046d0| 20 69 6e 20 6a 63 6f 6e | 66 69 67 2e 68 2c 20 64 | in jcon|fig.h, d|
|000046e0| 6f 77 6e 20 74 68 72 6f | 75 67 68 0a 58 4e 45 45 |own thro|ugh.XNEE|
|000046f0| 44 5f 46 41 52 5f 50 4f | 49 4e 54 45 52 53 2e 29 |D_FAR_PO|INTERS.)|
|00004700| 0a 58 0a 58 52 65 6d 6f | 76 69 6e 67 20 63 6f 64 |.X.XRemo|ving cod|
|00004710| 65 3a 0a 58 0a 58 49 66 | 20 79 6f 75 20 6e 65 65 |e:.X.XIf| you nee|
|00004720| 64 20 74 6f 20 6d 61 6b | 65 20 61 20 73 6d 61 6c |d to mak|e a smal|
|00004730| 6c 65 72 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |ler vers|ion of t|
|00004740| 68 65 20 4a 50 45 47 20 | 73 6f 66 74 77 61 72 65 |he JPEG |software|
|00004750| 2c 20 73 6f 6d 65 20 6f | 70 74 69 6f 6e 61 6c 0a |, some o|ptional.|
|00004760| 58 66 75 6e 63 74 69 6f | 6e 73 20 63 61 6e 20 62 |Xfunctio|ns can b|
|00004770| 65 20 72 65 6d 6f 76 65 | 64 20 61 74 20 63 6f 6d |e remove|d at com|
|00004780| 70 69 6c 65 20 74 69 6d | 65 2e 20 20 53 65 65 20 |pile tim|e. See |
|00004790| 74 68 65 20 78 78 78 5f | 53 55 50 50 4f 52 54 45 |the xxx_|SUPPORTE|
|000047a0| 44 20 23 64 65 66 69 6e | 65 73 20 69 6e 0a 58 6a |D #defin|es in.Xj|
|000047b0| 63 6f 6e 66 69 67 2e 68 | 2e 20 20 49 66 20 61 74 |config.h|. If at|
|000047c0| 20 61 6c 6c 20 70 6f 73 | 73 69 62 6c 65 2c 20 77 | all pos|sible, w|
|000047d0| 65 20 72 65 63 6f 6d 6d | 65 6e 64 20 74 68 61 74 |e recomm|end that|
|000047e0| 20 79 6f 75 20 6c 65 61 | 76 65 20 69 6e 20 64 65 | you lea|ve in de|
|000047f0| 63 6f 64 65 72 20 73 75 | 70 70 6f 72 74 0a 58 66 |coder su|pport.Xf|
|00004800| 6f 72 20 61 6c 6c 20 76 | 61 6c 69 64 20 4a 50 45 |or all v|alid JPE|
|00004810| 47 20 66 69 6c 65 73 2c | 20 74 6f 20 65 6e 73 75 |G files,| to ensu|
|00004820| 72 65 20 74 68 61 74 20 | 79 6f 75 20 63 61 6e 20 |re that |you can |
|00004830| 72 65 61 64 20 61 6e 79 | 6f 6e 65 27 73 20 6f 75 |read any|one's ou|
|00004840| 74 70 75 74 2e 0a 58 52 | 65 73 74 72 69 63 74 69 |tput..XR|estricti|
|00004850| 6e 67 20 79 6f 75 72 20 | 65 6e 63 6f 64 65 72 2c |ng your |encoder,|
|00004860| 20 6f 72 20 72 65 6d 6f | 76 69 6e 67 20 6f 70 74 | or remo|ving opt|
|00004870| 69 6f 6e 61 6c 20 66 75 | 6e 63 74 69 6f 6e 73 20 |ional fu|nctions |
|00004880| 6c 69 6b 65 20 62 6c 6f | 63 6b 20 73 6d 6f 6f 74 |like blo|ck smoot|
|00004890| 68 69 6e 67 2c 0a 58 77 | 6f 6e 27 74 20 68 75 72 |hing,.Xw|on't hur|
|000048a0| 74 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 2e |t compat|ibility.|
|000048b0| 20 20 54 61 6b 69 6e 67 | 20 6f 75 74 20 73 75 70 | Taking| out sup|
|000048c0| 70 6f 72 74 20 66 6f 72 | 20 69 6d 61 67 65 20 66 |port for| image f|
|000048d0| 69 6c 65 20 66 6f 72 6d | 61 74 73 20 74 68 61 74 |ile form|ats that|
|000048e0| 20 79 6f 75 0a 58 64 6f | 6e 27 74 20 75 73 65 20 | you.Xdo|n't use |
|000048f0| 69 73 20 74 68 65 20 6d | 6f 73 74 20 70 61 69 6e |is the m|ost pain|
|00004900| 6c 65 73 73 20 77 61 79 | 20 74 6f 20 6d 61 6b 65 |less way| to make|
|00004910| 20 74 68 65 20 70 72 6f | 67 72 61 6d 73 20 73 6d | the pro|grams sm|
|00004920| 61 6c 6c 65 72 2e 0a 58 | 0a 58 0a 58 4e 4f 54 45 |aller..X|.X.XNOTE|
|00004930| 53 20 46 4f 52 20 53 50 | 45 43 49 46 49 43 20 53 |S FOR SP|ECIFIC S|
|00004940| 59 53 54 45 4d 53 0a 58 | 3d 3d 3d 3d 3d 3d 3d 3d |YSTEMS.X|========|
|00004950| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004960| 3d 3d 0a 58 0a 58 57 65 | 20 77 65 6c 63 6f 6d 65 |==.X.XWe| welcome|
|00004970| 20 72 65 70 6f 72 74 73 | 20 6f 6e 20 63 68 61 6e | reports| on chan|
|00004980| 67 65 73 20 6e 65 65 64 | 65 64 20 66 6f 72 20 73 |ges need|ed for s|
|00004990| 79 73 74 65 6d 73 20 6e | 6f 74 20 6d 65 6e 74 69 |ystems n|ot menti|
|000049a0| 6f 6e 65 64 20 68 65 72 | 65 2e 0a 58 53 75 62 6d |oned her|e..XSubm|
|000049b0| 69 74 20 27 65 6d 20 74 | 6f 20 6a 70 65 67 2d 69 |it 'em t|o jpeg-i|
|000049c0| 6e 66 6f 40 75 75 6e 65 | 74 2e 75 75 2e 6e 65 74 |nfo@uune|t.uu.net|
|000049d0| 2e 20 20 41 6c 73 6f 2c | 20 69 66 20 63 6b 63 6f |. Also,| if ckco|
|000049e0| 6e 66 69 67 2e 63 20 69 | 73 20 77 72 6f 6e 67 20 |nfig.c i|s wrong |
|000049f0| 61 62 6f 75 74 0a 58 68 | 6f 77 20 74 6f 20 63 6f |about.Xh|ow to co|
|00004a00| 6e 66 69 67 75 72 65 20 | 74 68 65 20 4a 50 45 47 |nfigure |the JPEG|
|00004a10| 20 73 6f 66 74 77 61 72 | 65 20 66 6f 72 20 79 6f | softwar|e for yo|
|00004a20| 75 72 20 73 79 73 74 65 | 6d 2c 20 70 6c 65 61 73 |ur syste|m, pleas|
|00004a30| 65 20 6c 65 74 20 75 73 | 20 6b 6e 6f 77 2e 0a 58 |e let us| know..X|
|00004a40| 0a 58 0a 58 41 6d 69 67 | 61 3a 0a 58 0a 58 4d 61 |.X.XAmig|a:.X.XMa|
|00004a50| 6b 65 66 69 6c 65 73 20 | 61 72 65 20 70 72 6f 76 |kefiles |are prov|
|00004a60| 69 64 65 64 20 66 6f 72 | 20 4d 61 6e 78 20 41 7a |ided for| Manx Az|
|00004a70| 74 65 63 20 43 20 61 6e | 64 20 53 41 53 20 43 2e |tec C an|d SAS C.|
|00004a80| 20 20 49 20 68 61 76 65 | 20 61 6c 73 6f 20 68 65 | I have| also he|
|00004a90| 61 72 64 20 66 72 6f 6d | 0a 58 70 65 6f 70 6c 65 |ard from|.Xpeople|
|00004aa0| 20 77 68 6f 20 68 61 76 | 65 20 63 6f 6d 70 69 6c | who hav|e compil|
|00004ab0| 65 64 20 77 69 74 68 20 | 74 68 65 20 66 72 65 65 |ed with |the free|
|00004ac0| 20 44 49 43 45 20 63 6f | 6d 70 69 6c 65 72 2c 20 | DICE co|mpiler, |
|00004ad0| 75 73 69 6e 67 20 6d 61 | 6b 65 66 69 6c 65 2e 61 |using ma|kefile.a|
|00004ae0| 6e 73 69 20 61 73 20 61 | 0a 58 73 74 61 72 74 69 |nsi as a|.Xstarti|
|00004af0| 6e 67 20 70 6f 69 6e 74 | 20 28 73 65 74 20 22 43 |ng point| (set "C|
|00004b00| 43 3d 20 64 63 63 22 20 | 61 6e 64 20 22 43 46 4c |C= dcc" |and "CFL|
|00004b10| 41 47 53 3d 20 2d 63 20 | 2d 44 41 4d 49 47 41 20 |AGS= -c |-DAMIGA |
|00004b20| 2d 44 54 57 4f 5f 46 49 | 4c 45 5f 43 4f 4d 4d 41 |-DTWO_FI|LE_COMMA|
|00004b30| 4e 44 4c 49 4e 45 0a 58 | 2d 44 4e 45 45 44 5f 53 |NDLINE.X|-DNEED_S|
|00004b40| 49 47 4e 41 4c 5f 43 41 | 54 43 48 45 52 22 20 69 |IGNAL_CA|TCHER" i|
|00004b50| 6e 20 74 68 65 20 6d 61 | 6b 65 66 69 6c 65 29 2e |n the ma|kefile).|
|00004b60| 20 20 46 6f 72 20 61 6c | 6c 20 63 6f 6d 70 69 6c | For al|l compil|
|00004b70| 65 72 73 2c 20 77 65 20 | 72 65 63 6f 6d 6d 65 6e |ers, we |recommen|
|00004b80| 64 20 79 6f 75 0a 58 75 | 73 65 20 6a 6d 65 6d 6e |d you.Xu|se jmemn|
|00004b90| 61 6d 65 2e 63 20 61 73 | 20 74 68 65 20 73 79 73 |ame.c as| the sys|
|00004ba0| 74 65 6d 2d 64 65 70 65 | 6e 64 65 6e 74 20 6d 65 |tem-depe|ndent me|
|00004bb0| 6d 6f 72 79 20 6d 61 6e | 61 67 65 72 2e 20 20 41 |mory man|ager. A|
|00004bc0| 73 73 75 6d 69 6e 67 20 | 79 6f 75 20 68 61 76 65 |ssuming |you have|
|00004bd0| 0a 58 2d 44 41 4d 49 47 | 41 20 69 6e 20 74 68 65 |.X-DAMIG|A in the|
|00004be0| 20 6d 61 6b 65 66 69 6c | 65 2c 20 6a 6d 65 6d 6e | makefil|e, jmemn|
|00004bf0| 61 6d 65 2e 63 20 77 69 | 6c 6c 20 70 75 74 20 74 |ame.c wi|ll put t|
|00004c00| 65 6d 70 6f 72 61 72 79 | 20 66 69 6c 65 73 20 69 |emporary| files i|
|00004c10| 6e 20 4a 50 45 47 54 4d | 50 3a 2e 0a 58 43 68 61 |n JPEGTM|P:..XCha|
|00004c20| 6e 67 65 20 6a 6d 65 6d | 6e 61 6d 65 2e 63 20 69 |nge jmem|name.c i|
|00004c30| 66 20 79 6f 75 20 64 6f | 6e 27 74 20 6c 69 6b 65 |f you do|n't like|
|00004c40| 20 74 68 69 73 2e 0a 58 | 0a 58 0a 58 41 74 61 72 | this..X|.X.XAtar|
|00004c50| 69 3a 0a 58 0a 58 54 68 | 65 20 70 72 6f 6a 65 63 |i:.X.XTh|e projec|
|00004c60| 74 20 66 69 6c 65 73 20 | 70 72 6f 76 69 64 65 64 |t files |provided|
|00004c70| 20 73 68 6f 75 6c 64 20 | 77 6f 72 6b 20 61 73 2d | should |work as-|
|00004c80| 69 73 20 77 69 74 68 20 | 50 75 72 65 20 43 2e 20 |is with |Pure C. |
|00004c90| 20 46 6f 72 20 54 75 72 | 62 6f 20 43 2c 20 63 68 | For Tur|bo C, ch|
|00004ca0| 61 6e 67 65 0a 58 6c 69 | 62 72 61 72 79 20 66 69 |ange.Xli|brary fi|
|00004cb0| 6c 65 6e 61 6d 65 73 20 | 22 50 43 2e 2e 2e 22 20 |lenames |"PC..." |
|00004cc0| 74 6f 20 22 54 43 2e 2e | 2e 22 20 69 6e 20 74 68 |to "TC..|." in th|
|00004cd0| 65 20 70 72 6f 6a 65 63 | 74 20 66 69 6c 65 73 20 |e projec|t files |
|00004ce0| 66 6f 72 20 63 6a 70 65 | 67 2e 74 74 70 20 61 6e |for cjpe|g.ttp an|
|00004cf0| 64 0a 58 64 6a 70 65 67 | 2e 74 74 70 2e 20 20 44 |d.Xdjpeg|.ttp. D|
|00004d00| 6f 6e 27 74 20 66 6f 72 | 67 65 74 20 74 6f 20 73 |on't for|get to s|
|00004d10| 65 6c 65 63 74 20 61 20 | 6a 6d 65 6d 73 79 73 2e |elect a |jmemsys.|
|00004d20| 63 20 66 69 6c 65 2c 20 | 73 65 65 20 53 74 65 70 |c file, |see Step|
|00004d30| 20 33 20 28 77 65 20 72 | 65 63 6f 6d 6d 65 6e 64 | 3 (we r|ecommend|
|00004d40| 0a 58 6a 6d 65 6d 61 6e | 73 69 2e 63 29 2e 20 20 |.Xjmeman|si.c). |
|00004d50| 41 6c 73 6f 20 61 64 6a | 75 73 74 20 74 68 65 20 |Also adj|ust the |
|00004d60| 44 45 46 41 55 4c 54 5f | 4d 41 58 5f 4d 45 4d 20 |DEFAULT_|MAX_MEM |
|00004d70| 73 65 74 74 69 6e 67 20 | 2d 2d 2d 20 79 6f 75 20 |setting |--- you |
|00004d80| 70 72 6f 62 61 62 6c 79 | 20 77 61 6e 74 20 69 74 |probably| want it|
|00004d90| 0a 58 74 6f 20 62 65 20 | 61 20 63 6f 75 70 6c 65 |.Xto be |a couple|
|00004da0| 20 68 75 6e 64 72 65 64 | 20 4b 20 6c 65 73 73 20 | hundred| K less |
|00004db0| 74 68 61 6e 20 79 6f 75 | 72 20 6e 6f 72 6d 61 6c |than you|r normal|
|00004dc0| 20 66 72 65 65 20 6d 65 | 6d 6f 72 79 2e 20 20 4e | free me|mory. N|
|00004dd0| 6f 74 65 20 74 68 61 74 | 20 79 6f 75 0a 58 6d 75 |ote that| you.Xmu|
|00004de0| 73 74 20 6d 61 6b 65 20 | 6a 70 65 67 2e 6c 69 62 |st make |jpeg.lib|
|00004df0| 20 62 65 66 6f 72 65 20 | 6d 61 6b 69 6e 67 20 63 | before |making c|
|00004e00| 6a 70 65 67 2e 74 74 70 | 20 6f 72 20 63 6a 70 65 |jpeg.ttp| or cjpe|
|00004e10| 67 2e 74 74 70 2e 20 20 | 59 6f 75 27 6c 6c 20 68 |g.ttp. |You'll h|
|00004e20| 61 76 65 20 74 6f 0a 58 | 70 65 72 66 6f 72 6d 20 |ave to.X|perform |
|00004e30| 74 68 65 20 73 65 6c 66 | 2d 74 65 73 74 20 28 53 |the self|-test (S|
|00004e40| 74 65 70 20 35 29 20 62 | 79 20 68 61 6e 64 2e 0a |tep 5) b|y hand..|
|00004e50| 58 0a 58 54 68 65 72 65 | 20 69 73 20 61 20 62 75 |X.XThere| is a bu|
|00004e60| 67 20 69 6e 20 73 6f 6d | 65 20 6f 6c 64 65 72 20 |g in som|e older |
|00004e70| 76 65 72 73 69 6f 6e 73 | 20 6f 66 20 74 68 65 20 |versions| of the |
|00004e80| 54 75 72 62 6f 20 43 20 | 6c 69 62 72 61 72 79 20 |Turbo C |library |
|00004e90| 77 68 69 63 68 20 63 61 | 75 73 65 73 20 74 68 65 |which ca|uses the|
|00004ea0| 0a 58 73 70 61 63 65 20 | 75 73 65 64 20 62 79 20 |.Xspace |used by |
|00004eb0| 74 65 6d 70 6f 72 61 72 | 79 20 66 69 6c 65 73 20 |temporar|y files |
|00004ec0| 63 72 65 61 74 65 64 20 | 77 69 74 68 20 22 74 6d |created |with "tm|
|00004ed0| 70 66 69 6c 65 28 29 22 | 20 6e 6f 74 20 74 6f 20 |pfile()"| not to |
|00004ee0| 62 65 20 66 72 65 65 64 | 20 61 66 74 65 72 0a 58 |be freed| after.X|
|00004ef0| 61 6e 20 61 62 6e 6f 72 | 6d 61 6c 20 70 72 6f 67 |an abnor|mal prog|
|00004f00| 72 61 6d 20 65 78 69 74 | 2e 20 20 49 66 20 79 6f |ram exit|. If yo|
|00004f10| 75 20 63 68 65 63 6b 20 | 79 6f 75 72 20 64 69 73 |u check |your dis|
|00004f20| 6b 20 61 66 74 65 72 77 | 61 72 64 73 2c 20 79 6f |k afterw|ards, yo|
|00004f30| 75 20 77 69 6c 6c 20 66 | 69 6e 64 0a 58 63 6c 75 |u will f|ind.Xclu|
|00004f40| 73 74 65 72 20 63 68 61 | 69 6e 73 20 74 68 61 74 |ster cha|ins that|
|00004f50| 20 61 72 65 20 61 6c 6c | 6f 63 61 74 65 64 20 62 | are all|ocated b|
|00004f60| 75 74 20 6e 6f 74 20 75 | 73 65 64 20 62 79 20 61 |ut not u|sed by a|
|00004f70| 20 66 69 6c 65 2e 20 20 | 54 68 69 73 20 73 68 6f | file. |This sho|
|00004f80| 75 6c 64 20 6e 6f 74 0a | 58 68 61 70 70 65 6e 20 |uld not.|Xhappen |
|00004f90| 69 6e 20 63 6a 70 65 67 | 20 6f 72 20 64 6a 70 65 |in cjpeg| or djpe|
|00004fa0| 67 2c 20 73 69 6e 63 65 | 20 77 65 20 65 6e 61 62 |g, since| we enab|
|00004fb0| 6c 65 20 61 20 73 69 67 | 6e 61 6c 20 63 61 74 63 |le a sig|nal catc|
|00004fc0| 68 65 72 20 74 6f 20 65 | 78 70 6c 69 63 69 74 6c |her to e|xplicitl|
|00004fd0| 79 20 63 6c 6f 73 65 0a | 58 74 65 6d 70 20 66 69 |y close.|Xtemp fi|
|00004fe0| 6c 65 73 20 62 65 66 6f | 72 65 20 65 78 69 74 69 |les befo|re exiti|
|00004ff0| 6e 67 2e 20 20 42 75 74 | 20 69 66 20 79 6f 75 20 |ng. But| if you |
|00005000| 75 73 65 20 74 68 65 20 | 4a 50 45 47 20 6c 69 62 |use the |JPEG lib|
|00005010| 72 61 72 79 20 77 69 74 | 68 20 79 6f 75 72 20 6f |rary wit|h your o|
|00005020| 77 6e 0a 58 63 6f 64 65 | 2c 20 62 65 20 73 75 72 |wn.Xcode|, be sur|
|00005030| 65 20 74 6f 20 73 75 70 | 70 6c 79 20 61 20 73 69 |e to sup|ply a si|
|00005040| 67 6e 61 6c 20 63 61 74 | 63 68 65 72 2c 20 6f 72 |gnal cat|cher, or|
|00005050| 20 65 6c 73 65 20 75 73 | 65 20 61 20 64 69 66 66 | else us|e a diff|
|00005060| 65 72 65 6e 74 0a 58 73 | 79 73 74 65 6d 2d 64 65 |erent.Xs|ystem-de|
|00005070| 70 65 6e 64 65 6e 74 20 | 6d 65 6d 6f 72 79 20 6d |pendent |memory m|
|00005080| 61 6e 61 67 65 72 2e 0a | 58 0a 58 0a 58 43 72 61 |anager..|X.X.XCra|
|00005090| 79 3a 0a 58 0a 58 53 68 | 6f 75 6c 64 20 79 6f 75 |y:.X.XSh|ould you|
|000050a0| 20 62 65 20 73 6f 20 66 | 6f 72 74 75 6e 61 74 65 | be so f|ortunate|
|000050b0| 20 61 73 20 74 6f 20 62 | 65 20 72 75 6e 6e 69 6e | as to b|e runnin|
|000050c0| 67 20 4a 50 45 47 20 6f | 6e 20 61 20 43 72 61 79 |g JPEG o|n a Cray|
|000050d0| 20 59 4d 50 2c 20 74 68 | 65 72 65 20 69 73 20 61 | YMP, th|ere is a|
|000050e0| 0a 58 63 6f 6d 70 69 6c | 65 72 20 62 75 67 20 69 |.Xcompil|er bug i|
|000050f0| 6e 20 43 72 61 79 27 73 | 20 53 74 61 6e 64 61 72 |n Cray's| Standar|
|00005100| 64 20 43 20 76 65 72 73 | 69 6f 6e 73 20 70 72 69 |d C vers|ions pri|
|00005110| 6f 72 20 74 6f 20 33 2e | 31 2e 20 20 59 6f 75 27 |or to 3.|1. You'|
|00005120| 6c 6c 20 6e 65 65 64 20 | 74 6f 0a 58 69 6e 73 65 |ll need |to.Xinse|
|00005130| 72 74 20 61 20 6c 69 6e | 65 20 72 65 61 64 69 6e |rt a lin|e readin|
|00005140| 67 20 22 23 70 72 61 67 | 6d 61 20 6e 6f 76 65 63 |g "#prag|ma novec|
|00005150| 74 6f 72 22 20 6a 75 73 | 74 20 62 65 66 6f 72 65 |tor" jus|t before|
|00005160| 20 74 68 65 20 6c 6f 6f | 70 09 0a 58 20 20 20 20 | the loo|p..X |
|00005170| 66 6f 72 20 28 69 20 3d | 20 31 3b 20 69 20 3c 3d |for (i =| 1; i <=|
|00005180| 20 28 69 6e 74 29 20 68 | 74 62 6c 2d 3e 62 69 74 | (int) h|tbl->bit|
|00005190| 73 5b 6c 5d 3b 20 69 2b | 2b 29 0a 58 20 20 20 20 |s[l]; i+|+).X |
|000051a0| 20 20 68 75 66 66 73 69 | 7a 65 5b 70 2b 2b 5d 20 | huffsi|ze[p++] |
|000051b0| 3d 20 28 63 68 61 72 29 | 20 6c 3b 0a 58 69 6e 20 |= (char)| l;.Xin |
|000051c0| 66 69 78 5f 68 75 66 66 | 5f 74 62 6c 20 28 69 6e |fix_huff|_tbl (in|
|000051d0| 20 56 33 2c 20 6c 69 6e | 65 20 34 32 20 6f 66 20 | V3, lin|e 42 of |
|000051e0| 6a 63 68 75 66 66 2e 63 | 20 61 6e 64 20 6c 69 6e |jchuff.c| and lin|
|000051f0| 65 20 33 38 20 6f 66 20 | 6a 64 68 75 66 66 2e 63 |e 38 of |jdhuff.c|
|00005200| 29 2e 20 20 54 68 65 0a | 58 75 73 75 61 6c 20 73 |). The.|Xusual s|
|00005210| 79 6d 70 74 6f 6d 20 6f | 66 20 6e 6f 74 20 61 64 |ymptom o|f not ad|
|00005220| 64 69 6e 67 20 74 68 69 | 73 20 6c 69 6e 65 20 69 |ding thi|s line i|
|00005230| 73 20 61 20 63 6f 72 65 | 2d 64 75 6d 70 2e 20 20 |s a core|-dump. |
|00005240| 53 65 65 20 43 72 61 79 | 27 73 20 53 50 52 20 34 |See Cray|'s SPR 4|
|00005250| 38 32 32 32 2e 0a 58 0a | 58 0a 58 48 50 2f 41 70 |8222..X.|X.XHP/Ap|
|00005260| 6f 6c 6c 6f 20 44 4f 4d | 41 49 4e 3a 0a 58 0a 58 |ollo DOM|AIN:.X.X|
|00005270| 57 69 74 68 20 73 79 73 | 74 65 6d 20 72 65 6c 65 |With sys|tem rele|
|00005280| 61 73 65 20 31 30 2e 34 | 20 6f 72 20 6c 61 74 65 |ase 10.4| or late|
|00005290| 72 2c 20 6d 61 6b 65 66 | 69 6c 65 2e 61 6e 73 69 |r, makef|ile.ansi|
|000052a0| 20 73 68 6f 75 6c 64 20 | 77 6f 72 6b 20 4f 4b 2e | should |work OK.|
|000052b0| 20 20 49 66 20 79 6f 75 | 20 68 61 76 65 0a 58 76 | If you| have.Xv|
|000052c0| 65 72 73 69 6f 6e 20 31 | 30 2e 33 2e 61 6e 79 74 |ersion 1|0.3.anyt|
|000052d0| 68 69 6e 67 2c 20 79 6f | 75 20 6e 65 65 64 20 74 |hing, yo|u need t|
|000052e0| 6f 20 66 69 67 75 72 65 | 20 6f 75 74 20 77 68 65 |o figure| out whe|
|000052f0| 74 68 65 72 20 79 6f 75 | 20 68 61 76 65 20 74 68 |ther you| have th|
|00005300| 65 20 41 4e 53 49 20 43 | 0a 58 63 6f 6d 70 69 6c |e ANSI C|.Xcompil|
|00005310| 65 72 20 28 76 65 72 73 | 69 6f 6e 20 36 2e 37 20 |er (vers|ion 6.7 |
|00005320| 6f 72 20 6c 61 74 65 72 | 29 20 61 6e 64 20 77 68 |or later|) and wh|
|00005330| 65 74 68 65 72 20 79 6f | 75 27 76 65 20 69 6e 73 |ether yo|u've ins|
|00005340| 74 61 6c 6c 65 64 20 74 | 68 65 20 41 4e 53 49 20 |talled t|he ANSI |
|00005350| 43 0a 58 69 6e 63 6c 75 | 64 65 20 66 69 6c 65 73 |C.Xinclu|de files|
|00005360| 20 28 69 66 20 73 6f 2c | 20 74 68 65 20 66 69 72 | (if so,| the fir|
|00005370| 73 74 20 6c 69 6e 65 20 | 6f 66 20 3c 73 74 64 69 |st line |of <stdi|
|00005380| 6f 2e 68 3e 20 77 69 6c | 6c 20 6d 65 6e 74 69 6f |o.h> wil|l mentio|
|00005390| 6e 20 41 4e 53 49 20 43 | 29 2e 0a 58 49 66 20 79 |n ANSI C|)..XIf y|
|000053a0| 6f 75 20 68 61 76 65 20 | 74 68 65 20 41 4e 53 49 |ou have |the ANSI|
|000053b0| 20 43 20 63 6f 6d 70 69 | 6c 65 72 20 62 75 74 20 | C compi|ler but |
|000053c0| 6e 6f 74 20 74 68 65 20 | 41 4e 53 49 20 43 20 69 |not the |ANSI C i|
|000053d0| 6e 63 6c 75 64 65 20 66 | 69 6c 65 73 2c 20 75 73 |nclude f|iles, us|
|000053e0| 65 0a 58 6d 61 6b 65 66 | 69 6c 65 2e 61 6e 73 69 |e.Xmakef|ile.ansi|
|000053f0| 20 61 6e 64 20 61 64 64 | 20 2d 44 4e 4f 4e 41 4e | and add| -DNONAN|
|00005400| 53 49 5f 49 4e 43 4c 55 | 44 45 53 20 74 6f 20 43 |SI_INCLU|DES to C|
|00005410| 46 4c 41 47 53 2e 20 20 | 49 66 20 79 6f 75 20 68 |FLAGS. |If you h|
|00005420| 61 76 65 20 62 6f 74 68 | 2c 0a 58 74 68 65 6e 20 |ave both|,.Xthen |
|00005430| 6d 61 6b 65 66 69 6c 65 | 2e 61 6e 73 69 20 73 68 |makefile|.ansi sh|
|00005440| 6f 75 6c 64 20 77 6f 72 | 6b 20 61 73 20 69 73 2e |ould wor|k as is.|
|00005450| 20 20 49 66 20 6e 65 69 | 74 68 65 72 2c 20 75 73 | If nei|ther, us|
|00005460| 65 20 6d 61 6b 65 66 69 | 6c 65 2e 75 6e 69 78 2e |e makefi|le.unix.|
|00005470| 0a 58 0a 58 0a 58 48 50 | 2d 55 58 3a 0a 58 0a 58 |.X.X.XHP|-UX:.X.X|
|00005480| 49 66 20 79 6f 75 20 68 | 61 76 65 20 48 50 2d 55 |If you h|ave HP-U|
|00005490| 58 20 37 2e 30 35 20 6f | 72 20 6c 61 74 65 72 20 |X 7.05 o|r later |
|000054a0| 77 69 74 68 20 74 68 65 | 20 22 73 6f 66 74 77 61 |with the| "softwa|
|000054b0| 72 65 20 64 65 76 65 6c | 6f 70 6d 65 6e 74 22 20 |re devel|opment" |
|000054c0| 43 20 63 6f 6d 70 69 6c | 65 72 2c 0a 58 74 68 65 |C compil|er,.Xthe|
|000054d0| 6e 20 79 6f 75 20 63 61 | 6e 20 75 73 65 20 6d 61 |n you ca|n use ma|
|000054e0| 6b 65 66 69 6c 65 2e 61 | 6e 73 69 2e 20 20 41 64 |kefile.a|nsi. Ad|
|000054f0| 64 20 22 2d 41 61 22 20 | 74 6f 20 74 68 65 20 43 |d "-Aa" |to the C|
|00005500| 46 4c 41 47 53 20 6c 69 | 6e 65 20 69 6e 20 74 68 |FLAGS li|ne in th|
|00005510| 65 20 6d 61 6b 65 66 69 | 6c 65 0a 58 74 6f 20 6d |e makefi|le.Xto m|
|00005520| 61 6b 65 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 |ake the |compiler|
|00005530| 20 77 6f 72 6b 20 69 6e | 20 41 4e 53 49 20 6d 6f | work in| ANSI mo|
|00005540| 64 65 2e 20 20 49 66 20 | 79 6f 75 20 68 61 76 65 |de. If |you have|
|00005550| 20 61 20 70 72 65 2d 37 | 2e 30 35 20 73 79 73 74 | a pre-7|.05 syst|
|00005560| 65 6d 2c 20 6f 72 20 69 | 66 0a 58 79 6f 75 20 61 |em, or i|f.Xyou a|
|00005570| 72 65 20 75 73 69 6e 67 | 20 74 68 65 20 6e 6f 6e |re using| the non|
|00005580| 2d 41 4e 53 49 20 43 20 | 63 6f 6d 70 69 6c 65 72 |-ANSI C |compiler|
|00005590| 20 64 65 6c 69 76 65 72 | 65 64 20 77 69 74 68 20 | deliver|ed with |
|000055a0| 61 20 6d 69 6e 69 6d 75 | 6d 20 48 50 2d 55 58 20 |a minimu|m HP-UX |
|000055b0| 38 2e 30 0a 58 73 79 73 | 74 65 6d 2c 20 74 68 65 |8.0.Xsys|tem, the|
|000055c0| 6e 20 79 6f 75 20 6d 75 | 73 74 20 75 73 65 20 6d |n you mu|st use m|
|000055d0| 61 6b 65 66 69 6c 65 2e | 75 6e 69 78 20 28 61 6e |akefile.|unix (an|
|000055e0| 64 20 64 6f 20 4e 4f 54 | 20 61 64 64 20 2d 41 61 |d do NOT| add -Aa|
|000055f0| 29 2e 20 20 41 6c 73 6f | 2c 20 61 64 64 69 6e 67 |). Also|, adding|
|00005600| 0a 58 22 2d 6c 6d 61 6c | 6c 6f 63 22 20 74 6f 20 |.X"-lmal|loc" to |
|00005610| 4c 44 4c 49 42 53 20 69 | 73 20 72 65 63 6f 6d 6d |LDLIBS i|s recomm|
|00005620| 65 6e 64 65 64 20 69 66 | 20 79 6f 75 20 68 61 76 |ended if| you hav|
|00005630| 65 20 6c 69 62 6d 61 6c | 6c 6f 63 2e 61 20 28 69 |e libmal|loc.a (i|
|00005640| 74 20 73 65 65 6d 73 20 | 6e 6f 74 20 74 6f 0a 58 |t seems |not to.X|
|00005650| 62 65 20 70 72 65 73 65 | 6e 74 20 69 6e 20 6d 69 |be prese|nt in mi|
|00005660| 6e 69 6d 75 6d 20 38 2e | 30 29 2e 0a 58 0a 58 4f |nimum 8.|0)..X.XO|
|00005670| 6e 20 48 50 20 39 30 30 | 30 20 73 65 72 69 65 73 |n HP 900|0 series|
|00005680| 20 38 30 30 20 6d 61 63 | 68 69 6e 65 73 2c 20 74 | 800 mac|hines, t|
|00005690| 68 65 20 48 50 20 43 20 | 63 6f 6d 70 69 6c 65 72 |he HP C |compiler|
|000056a0| 20 69 73 20 62 75 67 67 | 79 20 69 6e 20 72 65 76 | is bugg|y in rev|
|000056b0| 69 73 69 6f 6e 73 20 70 | 72 69 6f 72 0a 58 74 6f |isions p|rior.Xto|
|000056c0| 20 41 2e 30 38 2e 30 37 | 2e 20 20 49 66 20 79 6f | A.08.07|. If yo|
|000056d0| 75 20 67 65 74 20 63 6f | 6d 70 6c 61 69 6e 74 73 |u get co|mplaints|
|000056e0| 20 61 62 6f 75 74 20 22 | 6e 6f 74 20 61 20 74 79 | about "|not a ty|
|000056f0| 70 65 64 65 66 20 6e 61 | 6d 65 22 2c 20 79 6f 75 |pedef na|me", you|
|00005700| 27 6c 6c 20 68 61 76 65 | 20 74 6f 0a 58 63 6f 6e |'ll have| to.Xcon|
|00005710| 76 65 72 74 20 74 68 65 | 20 63 6f 64 65 20 74 6f |vert the| code to|
|00005720| 20 4b 26 52 20 73 74 79 | 6c 65 20 28 69 2e 65 2e | K&R sty|le (i.e.|
|00005730| 2c 20 75 73 65 20 6d 61 | 6b 65 66 69 6c 65 2e 75 |, use ma|kefile.u|
|00005740| 6e 69 78 29 2e 0a 58 0a | 58 0a 58 4d 61 63 69 6e |nix)..X.|X.XMacin|
|00005750| 74 6f 73 68 20 4d 50 57 | 3a 0a 58 0a 58 57 65 20 |tosh MPW|:.X.XWe |
|00005760| 64 6f 6e 27 74 20 64 69 | 72 65 63 74 6c 79 20 73 |don't di|rectly s|
|00005770| 75 70 70 6f 72 74 20 4d | 50 57 20 69 6e 20 74 68 |upport M|PW in th|
|00005780| 65 20 63 75 72 72 65 6e | 74 20 72 65 6c 65 61 73 |e curren|t releas|
|00005790| 65 2c 20 62 75 74 20 4c | 61 72 72 79 20 52 6f 73 |e, but L|arry Ros|
|000057a0| 65 6e 73 74 65 69 6e 0a | 58 72 65 70 6f 72 74 73 |enstein.|Xreports|
|000057b0| 20 74 68 61 74 20 74 68 | 65 20 4a 50 45 47 20 63 | that th|e JPEG c|
|000057c0| 6f 64 65 20 63 61 6e 20 | 62 65 20 70 6f 72 74 65 |ode can |be porte|
|000057d0| 64 20 77 69 74 68 6f 75 | 74 20 76 65 72 79 20 6d |d withou|t very m|
|000057e0| 75 63 68 20 74 72 6f 75 | 62 6c 65 2e 20 20 54 68 |uch trou|ble. Th|
|000057f0| 65 72 65 27 73 0a 58 75 | 73 65 66 75 6c 20 6e 6f |ere's.Xu|seful no|
|00005800| 74 65 73 20 61 6e 64 20 | 63 6f 6e 76 65 72 73 69 |tes and |conversi|
|00005810| 6f 6e 20 73 63 72 69 70 | 74 73 20 69 6e 20 68 69 |on scrip|ts in hi|
|00005820| 73 20 6b 69 74 20 66 6f | 72 20 70 6f 72 74 69 6e |s kit fo|r portin|
|00005830| 67 20 50 42 4d 50 4c 55 | 53 20 74 6f 20 4d 50 57 |g PBMPLU|S to MPW|
|00005840| 2e 0a 58 59 6f 75 20 63 | 61 6e 20 6f 62 74 61 69 |..XYou c|an obtai|
|00005850| 6e 20 74 68 65 20 6b 69 | 74 20 62 79 20 46 54 50 |n the ki|t by FTP|
|00005860| 20 74 6f 20 66 74 70 2e | 61 70 70 6c 65 2e 63 6f | to ftp.|apple.co|
|00005870| 6d 2c 20 66 69 6c 65 20 | 2f 70 75 62 2f 6c 73 72 |m, file |/pub/lsr|
|00005880| 2f 70 62 6d 70 6c 75 73 | 2d 70 6f 72 74 2a 2e 0a |/pbmplus|-port*..|
|00005890| 58 0a 58 0a 58 4d 61 63 | 69 6e 74 6f 73 68 20 54 |X.X.XMac|intosh T|
|000058a0| 68 69 6e 6b 20 43 3a 0a | 58 0a 58 59 6f 75 27 6c |hink C:.|X.XYou'l|
|000058b0| 6c 20 68 61 76 65 20 74 | 6f 20 70 72 65 70 61 72 |l have t|o prepar|
|000058c0| 65 20 70 72 6f 6a 65 63 | 74 20 66 69 6c 65 73 20 |e projec|t files |
|000058d0| 66 6f 72 20 63 6a 70 65 | 67 20 61 6e 64 20 64 6a |for cjpe|g and dj|
|000058e0| 70 65 67 3b 20 77 65 20 | 64 6f 6e 27 74 20 69 6e |peg; we |don't in|
|000058f0| 63 6c 75 64 65 0a 58 74 | 68 6f 73 65 20 69 6e 20 |clude.Xt|hose in |
|00005900| 74 68 65 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |the dist|ribution|
|00005910| 20 73 69 6e 63 65 20 74 | 68 65 79 20 61 72 65 20 | since t|hey are |
|00005920| 6e 6f 74 20 74 65 78 74 | 20 66 69 6c 65 73 2e 20 |not text| files. |
|00005930| 20 54 68 65 20 43 4f 42 | 4a 45 43 54 53 20 61 6e | The COB|JECTS an|
|00005940| 64 0a 58 44 4f 42 4a 45 | 43 54 53 20 6c 69 73 74 |d.XDOBJE|CTS list|
|00005950| 73 20 69 6e 20 6d 61 6b | 65 66 69 6c 65 2e 75 6e |s in mak|efile.un|
|00005960| 69 78 20 73 68 6f 77 20 | 77 68 69 63 68 20 66 69 |ix show |which fi|
|00005970| 6c 65 73 20 73 68 6f 75 | 6c 64 20 62 65 20 69 6e |les shou|ld be in|
|00005980| 63 6c 75 64 65 64 20 69 | 6e 20 65 61 63 68 0a 58 |cluded i|n each.X|
|00005990| 70 72 6f 6a 65 63 74 2e | 20 20 41 6c 73 6f 20 61 |project.| Also a|
|000059a0| 64 64 20 74 68 65 20 41 | 4e 53 49 20 61 6e 64 20 |dd the A|NSI and |
|000059b0| 55 6e 69 78 20 43 20 6c | 69 62 72 61 72 69 65 73 |Unix C l|ibraries|
|000059c0| 20 69 6e 20 61 20 73 65 | 70 61 72 61 74 65 20 73 | in a se|parate s|
|000059d0| 65 67 6d 65 6e 74 2e 20 | 20 59 6f 75 0a 58 6d 61 |egment. | You.Xma|
|000059e0| 79 20 6e 65 65 64 20 74 | 6f 20 64 69 76 69 64 65 |y need t|o divide|
|000059f0| 20 74 68 65 20 4a 50 45 | 47 20 66 69 6c 65 73 20 | the JPE|G files |
|00005a00| 69 6e 74 6f 20 6d 6f 72 | 65 20 74 68 61 6e 20 6f |into mor|e than o|
|00005a10| 6e 65 20 73 65 67 6d 65 | 6e 74 3b 20 79 6f 75 20 |ne segme|nt; you |
|00005a20| 63 61 6e 20 64 6f 20 74 | 68 69 73 0a 58 70 72 65 |can do t|his.Xpre|
|00005a30| 74 74 79 20 6d 75 63 68 | 20 61 73 20 79 6f 75 20 |tty much| as you |
|00005a40| 70 6c 65 61 73 65 2e 0a | 58 0a 58 49 66 20 79 6f |please..|X.XIf yo|
|00005a50| 75 20 68 61 76 65 20 54 | 68 69 6e 6b 20 43 20 76 |u have T|hink C v|
|00005a60| 65 72 73 69 6f 6e 20 35 | 2e 30 20 79 6f 75 20 6e |ersion 5|.0 you n|
|00005a70| 65 65 64 20 6e 6f 74 20 | 6d 6f 64 69 66 79 20 6a |eed not |modify j|
|00005a80| 63 6f 6e 66 69 67 2e 68 | 3b 20 69 6e 73 74 65 61 |config.h|; instea|
|00005a90| 64 20 79 6f 75 0a 58 73 | 68 6f 75 6c 64 20 74 75 |d you.Xs|hould tu|
|00005aa0| 72 6e 20 6f 6e 20 62 6f | 74 68 20 74 68 65 20 41 |rn on bo|th the A|
|00005ab0| 4e 53 49 20 53 65 74 74 | 69 6e 67 73 20 61 6e 64 |NSI Sett|ings and|
|00005ac0| 20 4c 61 6e 67 75 61 67 | 65 20 45 78 74 65 6e 73 | Languag|e Extens|
|00005ad0| 69 6f 6e 73 20 6f 70 74 | 69 6f 6e 20 62 75 74 74 |ions opt|ion butt|
|00005ae0| 6f 6e 73 0a 58 28 73 6f | 20 74 68 61 74 20 62 6f |ons.X(so| that bo|
|00005af0| 74 68 20 5f 5f 53 54 44 | 43 5f 5f 20 61 6e 64 20 |th __STD|C__ and |
|00005b00| 54 48 49 4e 4b 5f 43 20 | 61 72 65 20 70 72 65 64 |THINK_C |are pred|
|00005b10| 65 66 69 6e 65 64 29 2e | 20 20 57 69 74 68 20 76 |efined).| With v|
|00005b20| 65 72 73 69 6f 6e 20 34 | 2e 30 20 79 6f 75 20 6d |ersion 4|.0 you m|
|00005b30| 75 73 74 0a 58 65 64 69 | 74 20 6a 63 6f 6e 66 69 |ust.Xedi|t jconfi|
|00005b40| 67 2e 68 2e 20 20 28 59 | 6f 75 20 63 61 6e 20 23 |g.h. (Y|ou can #|
|00005b50| 64 65 66 69 6e 65 20 48 | 41 56 45 5f 53 54 44 43 |define H|AVE_STDC|
|00005b60| 20 74 6f 20 64 6f 20 74 | 68 65 20 72 69 67 68 74 | to do t|he right|
|00005b70| 20 74 68 69 6e 67 20 66 | 6f 72 20 61 6c 6c 0a 58 | thing f|or all.X|
|00005b80| 6f 70 74 69 6f 6e 73 20 | 65 78 63 65 70 74 20 63 |options |except c|
|00005b90| 6f 6e 73 74 3b 20 79 6f | 75 20 6d 75 73 74 20 61 |onst; yo|u must a|
|00005ba0| 6c 73 6f 20 23 64 65 66 | 69 6e 65 20 63 6f 6e 73 |lso #def|ine cons|
|00005bb0| 74 2e 29 0a 58 0a 58 6a | 63 6d 61 69 6e 20 61 6e |t.).X.Xj|cmain an|
|00005bc0| 64 20 6a 64 6d 61 69 6e | 20 61 72 65 20 73 65 74 |d jdmain| are set|
|00005bd0| 20 75 70 20 74 6f 20 70 | 72 6f 76 69 64 65 20 74 | up to p|rovide t|
|00005be0| 68 65 20 75 73 75 61 6c | 20 63 6f 6d 6d 61 6e 64 |he usual| command|
|00005bf0| 2d 6c 69 6e 65 20 69 6e | 74 65 72 66 61 63 65 0a |-line in|terface.|
|00005c00| 58 62 79 20 6d 65 61 6e | 73 20 6f 66 20 54 68 69 |Xby mean|s of Thi|
|00005c10| 6e 6b 27 73 20 63 63 6f | 6d 6d 61 6e 64 28 29 20 |nk's cco|mmand() |
|00005c20| 6c 69 62 72 61 72 79 20 | 72 6f 75 74 69 6e 65 2e |library |routine.|
|00005c30| 20 20 41 20 6d 6f 72 65 | 20 4d 61 63 2d 6c 69 6b | A more| Mac-lik|
|00005c40| 65 20 69 6e 74 65 72 66 | 61 63 65 0a 58 69 73 20 |e interf|ace.Xis |
|00005c50| 69 6e 20 74 68 65 20 77 | 6f 72 6b 73 2e 0a 58 0a |in the w|orks..X.|
|00005c60| 58 0a 58 4d 53 2d 44 4f | 53 2c 20 67 65 6e 65 72 |X.XMS-DO|S, gener|
|00005c70| 69 63 20 63 6f 6d 6d 65 | 6e 74 73 3a 0a 58 0a 58 |ic comme|nts:.X.X|
|00005c80| 54 68 65 20 4a 50 45 47 | 20 63 6f 64 65 20 69 73 |The JPEG| code is|
|00005c90| 20 64 65 73 69 67 6e 65 | 64 20 74 6f 20 62 65 20 | designe|d to be |
|00005ca0| 63 6f 6d 70 69 6c 65 64 | 20 77 69 74 68 20 38 30 |compiled| with 80|
|00005cb0| 78 38 36 20 22 73 6d 61 | 6c 6c 22 20 6f 72 20 22 |x86 "sma|ll" or "|
|00005cc0| 6d 65 64 69 75 6d 22 20 | 6d 65 6d 6f 72 79 0a 58 |medium" |memory.X|
|00005cd0| 6d 6f 64 65 6c 73 20 28 | 69 2e 65 2e 2c 20 64 61 |models (|i.e., da|
|00005ce0| 74 61 20 70 6f 69 6e 74 | 65 72 73 20 61 72 65 20 |ta point|ers are |
|00005cf0| 31 36 20 62 69 74 73 20 | 75 6e 6c 65 73 73 20 65 |16 bits |unless e|
|00005d00| 78 70 6c 69 63 69 74 6c | 79 20 64 65 63 6c 61 72 |xplicitl|y declar|
|00005d10| 65 64 20 22 66 61 72 22 | 3b 20 63 6f 64 65 0a 58 |ed "far"|; code.X|
|00005d20| 70 6f 69 6e 74 65 72 73 | 20 63 61 6e 20 62 65 20 |pointers| can be |
|00005d30| 65 69 74 68 65 72 20 73 | 69 7a 65 29 2e 20 20 59 |either s|ize). Y|
|00005d40| 6f 75 20 73 68 6f 75 6c | 64 20 62 65 20 61 62 6c |ou shoul|d be abl|
|00005d50| 65 20 74 6f 20 75 73 65 | 20 73 6d 61 6c 6c 20 6d |e to use| small m|
|00005d60| 6f 64 65 6c 20 74 6f 0a | 58 63 6f 6d 70 69 6c 65 |odel to.|Xcompile|
|00005d70| 20 63 6a 70 65 67 20 6f | 72 20 64 6a 70 65 67 20 | cjpeg o|r djpeg |
|00005d80| 62 79 20 69 74 73 65 6c | 66 2c 20 62 75 74 20 79 |by itsel|f, but y|
|00005d90| 6f 75 20 77 69 6c 6c 20 | 70 72 6f 62 61 62 6c 79 |ou will |probably|
|00005da0| 20 68 61 76 65 20 74 6f | 20 67 6f 20 74 6f 20 6d | have to| go to m|
|00005db0| 65 64 69 75 6d 0a 58 6d | 6f 64 65 6c 20 69 66 20 |edium.Xm|odel if |
|00005dc0| 79 6f 75 20 69 6e 63 6c | 75 64 65 20 74 68 65 20 |you incl|ude the |
|00005dd0| 4a 50 45 47 20 63 6f 64 | 65 20 69 6e 20 61 20 6c |JPEG cod|e in a l|
|00005de0| 61 72 67 65 72 20 61 70 | 70 6c 69 63 61 74 69 6f |arger ap|plicatio|
|00005df0| 6e 2e 20 20 54 68 69 73 | 20 73 68 6f 75 6c 64 6e |n. This| shouldn|
|00005e00| 27 74 0a 58 68 75 72 74 | 20 70 65 72 66 6f 72 6d |'t.Xhurt| perform|
|00005e10| 61 6e 63 65 20 6d 75 63 | 68 2e 20 20 59 6f 75 20 |ance muc|h. You |
|00005e20| 2a 77 69 6c 6c 2a 20 74 | 61 6b 65 20 61 20 6e 6f |*will* t|ake a no|
|00005e30| 74 69 63 65 61 62 6c 65 | 20 70 65 72 66 6f 72 6d |ticeable| perform|
|00005e40| 61 6e 63 65 20 68 69 74 | 20 69 66 20 79 6f 75 0a |ance hit| if you.|
|00005e50| 58 63 6f 6d 70 69 6c 65 | 20 69 6e 20 61 20 6c 61 |Xcompile| in a la|
|00005e60| 72 67 65 2d 64 61 74 61 | 20 6d 65 6d 6f 72 79 20 |rge-data| memory |
|00005e70| 6d 6f 64 65 6c 2c 20 61 | 6e 64 20 79 6f 75 20 73 |model, a|nd you s|
|00005e80| 68 6f 75 6c 64 20 61 76 | 6f 69 64 20 22 68 75 67 |hould av|oid "hug|
|00005e90| 65 22 20 6d 6f 64 65 6c | 20 69 66 20 61 74 0a 58 |e" model| if at.X|
|00005ea0| 61 6c 6c 20 70 6f 73 73 | 69 62 6c 65 2e 20 20 42 |all poss|ible. B|
|00005eb0| 65 20 73 75 72 65 20 74 | 68 61 74 20 4e 45 45 44 |e sure t|hat NEED|
|00005ec0| 5f 46 41 52 5f 50 4f 49 | 4e 54 45 52 53 20 69 73 |_FAR_POI|NTERS is|
|00005ed0| 20 64 65 66 69 6e 65 64 | 20 62 79 20 6a 63 6f 6e | defined| by jcon|
|00005ee0| 66 69 67 2e 68 20 6f 72 | 20 62 79 0a 58 74 68 65 |fig.h or| by.Xthe|
|00005ef0| 20 4d 61 6b 65 66 69 6c | 65 20 69 66 20 79 6f 75 | Makefil|e if you|
|00005f00| 20 75 73 65 20 61 20 73 | 6d 61 6c 6c 2d 64 61 74 | use a s|mall-dat|
|00005f10| 61 20 6d 6f 64 65 6c 3b | 20 62 65 20 73 75 72 65 |a model;| be sure|
|00005f20| 20 69 74 20 69 73 20 4e | 4f 54 20 64 65 66 69 6e | it is N|OT defin|
|00005f30| 65 64 20 69 66 20 79 6f | 75 0a 58 75 73 65 20 61 |ed if yo|u.Xuse a|
|00005f40| 20 6c 61 72 67 65 2d 64 | 61 74 61 20 6d 65 6d 6f | large-d|ata memo|
|00005f50| 72 79 20 6d 6f 64 65 6c | 2e 20 20 28 41 73 20 64 |ry model|. (As d|
|00005f60| 69 73 74 72 69 62 75 74 | 65 64 2c 20 6a 63 6f 6e |istribut|ed, jcon|
|00005f70| 66 69 67 2e 68 20 64 65 | 66 69 6e 65 73 0a 58 4e |fig.h de|fines.XN|
|00005f80| 45 45 44 5f 46 41 52 5f | 50 4f 49 4e 54 45 52 53 |EED_FAR_|POINTERS|
|00005f90| 20 69 66 20 4d 53 44 4f | 53 20 69 73 20 64 65 66 | if MSDO|S is def|
|00005fa0| 69 6e 65 64 2e 29 0a 58 | 0a 58 54 68 65 20 44 4f |ined.).X|.XThe DO|
|00005fb0| 53 2d 73 70 65 63 69 66 | 69 63 20 6d 65 6d 6f 72 |S-specif|ic memor|
|00005fc0| 79 20 6d 61 6e 61 67 65 | 72 2c 20 6a 6d 65 6d 64 |y manage|r, jmemd|
|00005fd0| 6f 73 2e 63 2c 20 73 68 | 6f 75 6c 64 20 62 65 20 |os.c, sh|ould be |
|00005fe0| 75 73 65 64 20 69 66 20 | 70 6f 73 73 69 62 6c 65 |used if |possible|
|00005ff0| 2e 0a 58 28 42 65 20 73 | 75 72 65 20 74 6f 20 69 |..X(Be s|ure to i|
|00006000| 6e 73 74 61 6c 6c 20 6a | 6d 65 6d 64 6f 73 2e 68 |nstall j|memdos.h|
|00006010| 20 61 6e 64 20 6a 6d 65 | 6d 64 6f 73 61 2e 61 73 | and jme|mdosa.as|
|00006020| 6d 20 61 6c 6f 6e 67 20 | 77 69 74 68 20 69 74 2e |m along |with it.|
|00006030| 29 20 20 49 66 20 79 6f | 75 0a 58 63 61 6e 27 74 |) If yo|u.Xcan't|
|00006040| 20 75 73 65 20 6a 6d 65 | 6d 64 6f 73 2e 63 20 66 | use jme|mdos.c f|
|00006050| 6f 72 20 73 6f 6d 65 20 | 72 65 61 73 6f 6e 20 2d |or some |reason -|
|00006060| 2d 2d 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |-- for e|xample, |
|00006070| 62 65 63 61 75 73 65 20 | 79 6f 75 20 64 6f 6e 27 |because |you don'|
|00006080| 74 20 68 61 76 65 0a 58 | 61 20 4d 69 63 72 6f 73 |t have.X|a Micros|
|00006090| 6f 66 74 2d 63 6f 6d 70 | 61 74 69 62 6c 65 20 61 |oft-comp|atible a|
|000060a0| 73 73 65 6d 62 6c 65 72 | 20 74 6f 20 61 73 73 65 |ssembler| to asse|
|000060b0| 6d 62 6c 65 20 6a 6d 65 | 6d 64 6f 73 61 2e 61 73 |mble jme|mdosa.as|
|000060c0| 6d 20 2d 2d 2d 20 79 6f | 75 27 6c 6c 20 68 61 76 |m --- yo|u'll hav|
|000060d0| 65 0a 58 74 6f 20 66 61 | 6c 6c 20 62 61 63 6b 20 |e.Xto fa|ll back |
|000060e0| 74 6f 20 6a 6d 65 6d 61 | 6e 73 69 2e 63 20 6f 72 |to jmema|nsi.c or|
|000060f0| 20 6a 6d 65 6d 6e 61 6d | 65 2e 63 2e 20 20 49 4d | jmemnam|e.c. IM|
|00006100| 50 4f 52 54 41 4e 54 3a | 20 69 66 20 79 6f 75 20 |PORTANT:| if you |
|00006110| 75 73 65 20 65 69 74 68 | 65 72 20 6f 66 0a 58 74 |use eith|er of.Xt|
|00006120| 68 65 20 6c 61 74 74 65 | 72 20 74 77 6f 20 66 69 |he latte|r two fi|
|00006130| 6c 65 73 2c 20 79 6f 75 | 20 77 69 6c 6c 20 68 61 |les, you| will ha|
|00006140| 76 65 20 74 6f 20 63 6f | 6d 70 69 6c 65 20 69 6e |ve to co|mpile in|
|00006150| 20 61 20 6c 61 72 67 65 | 2d 64 61 74 61 20 6d 65 | a large|-data me|
|00006160| 6d 6f 72 79 20 6d 6f 64 | 65 6c 0a 58 69 6e 20 6f |mory mod|el.Xin o|
|00006170| 72 64 65 72 20 74 6f 20 | 67 65 74 20 74 68 65 20 |rder to |get the |
|00006180| 72 69 67 68 74 20 73 74 | 64 69 6f 20 6c 69 62 72 |right st|dio libr|
|00006190| 61 72 79 2e 20 20 54 6f | 6f 20 62 61 64 2e 0a 58 |ary. To|o bad..X|
|000061a0| 0a 58 4e 6f 6e 65 20 6f | 66 20 74 68 65 20 61 62 |.XNone o|f the ab|
|000061b0| 6f 76 65 20 61 64 76 69 | 63 65 20 61 70 70 6c 69 |ove advi|ce appli|
|000061c0| 65 73 20 69 66 20 79 6f | 75 20 61 72 65 20 75 73 |es if yo|u are us|
|000061d0| 69 6e 67 20 61 20 33 38 | 36 20 66 6c 61 74 2d 6d |ing a 38|6 flat-m|
|000061e0| 65 6d 6f 72 79 2d 73 70 | 61 63 65 0a 58 65 6e 76 |emory-sp|ace.Xenv|
|000061f0| 69 72 6f 6e 6d 65 6e 74 | 2c 20 73 75 63 68 20 61 |ironment|, such a|
|00006200| 73 20 44 4a 47 50 50 20 | 6f 72 20 57 61 74 63 6f |s DJGPP |or Watco|
|00006210| 6d 20 43 2e 20 20 28 41 | 6e 64 20 79 6f 75 20 73 |m C. (A|nd you s|
|00006220| 68 6f 75 6c 64 20 75 73 | 65 20 6f 6e 65 20 69 66 |hould us|e one if|
|00006230| 20 79 6f 75 20 68 61 76 | 65 0a 58 69 74 2c 20 61 | you hav|e.Xit, a|
|00006240| 73 20 70 65 72 66 6f 72 | 6d 61 6e 63 65 20 77 69 |s perfor|mance wi|
|00006250| 6c 6c 20 62 65 20 6d 75 | 63 68 20 62 65 74 74 65 |ll be mu|ch bette|
|00006260| 72 20 74 68 61 6e 20 38 | 30 38 36 2d 63 6f 6d 70 |r than 8|086-comp|
|00006270| 61 74 69 62 6c 65 20 63 | 6f 64 65 21 29 20 20 46 |atible c|ode!) F|
|00006280| 6f 72 0a 58 66 6c 61 74 | 2d 6d 65 6d 6f 72 79 2d |or.Xflat|-memory-|
|00006290| 73 70 61 63 65 20 63 6f | 6d 70 69 6c 65 72 73 2c |space co|mpilers,|
|000062a0| 20 64 6f 20 4e 4f 54 20 | 64 65 66 69 6e 65 20 4e | do NOT |define N|
|000062b0| 45 45 44 5f 46 41 52 5f | 50 4f 49 4e 54 45 52 53 |EED_FAR_|POINTERS|
|000062c0| 2c 20 61 6e 64 20 64 6f | 20 4e 4f 54 20 75 73 65 |, and do| NOT use|
|000062d0| 0a 58 6a 6d 65 6d 64 6f | 73 2e 63 2e 20 20 55 73 |.Xjmemdo|s.c. Us|
|000062e0| 65 20 6a 6d 65 6d 6e 6f | 62 73 2e 63 20 69 66 20 |e jmemno|bs.c if |
|000062f0| 74 68 65 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |the envi|ronment |
|00006300| 73 75 70 70 6c 69 65 73 | 20 61 64 65 71 75 61 74 |supplies| adequat|
|00006310| 65 20 76 69 72 74 75 61 | 6c 0a 58 6d 65 6d 6f 72 |e virtua|l.Xmemor|
|00006320| 79 2c 20 6f 74 68 65 72 | 77 69 73 65 20 75 73 65 |y, other|wise use|
|00006330| 20 6a 6d 65 6d 61 6e 73 | 69 2e 63 20 6f 72 20 6a | jmemans|i.c or j|
|00006340| 6d 65 6d 6e 61 6d 65 2e | 63 2e 0a 58 0a 58 4d 6f |memname.|c..X.XMo|
|00006350| 73 74 20 4d 53 2d 44 4f | 53 20 63 6f 6d 70 69 6c |st MS-DO|S compil|
|00006360| 65 72 73 20 74 72 65 61 | 74 20 73 74 64 69 6e 2f |ers trea|t stdin/|
|00006370| 73 74 64 6f 75 74 20 61 | 73 20 74 65 78 74 20 66 |stdout a|s text f|
|00006380| 69 6c 65 73 2c 20 73 6f | 20 79 6f 75 20 6d 75 73 |iles, so| you mus|
|00006390| 74 20 75 73 65 0a 58 74 | 77 6f 2d 66 69 6c 65 20 |t use.Xt|wo-file |
|000063a0| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 20 73 74 79 |command |line sty|
|000063b0| 6c 65 2e 20 20 42 75 74 | 20 69 66 20 79 6f 75 72 |le. But| if your|
|000063c0| 20 63 6f 6d 70 69 6c 65 | 72 20 68 61 73 20 74 68 | compile|r has th|
|000063d0| 65 20 73 65 74 6d 6f 64 | 65 28 29 20 6c 69 62 72 |e setmod|e() libr|
|000063e0| 61 72 79 0a 58 72 6f 75 | 74 69 6e 65 2c 20 79 6f |ary.Xrou|tine, yo|
|000063f0| 75 20 63 61 6e 20 64 65 | 66 69 6e 65 20 55 53 45 |u can de|fine USE|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.