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: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Corel 10 Texture (image/corel10Texture)
| ext
| Unsupported |
1%
| dexvert
| Croteam texture file (image/croteamTextureFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| C source text
| default
| |
98%
| file
| LaTeX document, ASCII text, with CRLF line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CRLF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 55 73 69 6e 67 20 59 |\chapter|{Using Y|
|00000010| 41 4d 50 7d 0d 0a 5c 69 | 6e 64 65 78 7b 59 41 4d |AMP}..\i|ndex{YAM|
|00000020| 50 20 7d 54 6f 20 61 20 | 6c 61 72 67 65 20 65 78 |P }To a |large ex|
|00000030| 74 65 6e 74 20 74 68 65 | 20 70 72 6f 63 65 64 69 |tent the| procedi|
|00000040| 6e 67 20 64 69 73 63 75 | 73 73 69 6f 6e 20 68 61 |ng discu|ssion ha|
|00000050| 73 20 62 65 65 6e 20 61 | 0d 0a 64 65 73 63 72 69 |s been a|..descri|
|00000060| 70 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 68 65 61 |ption of| the hea|
|00000070| 64 65 72 20 66 69 6c 65 | 20 5c 76 65 72 62 2b 20 |der file| \verb+ |
|00000080| 76 69 72 74 2e 68 2b 2e | 0d 0a 5c 69 6e 64 65 78 |virt.h+.|..\index|
|00000090| 7b 59 41 4d 50 21 76 69 | 72 74 2e 68 7d 2e 20 54 |{YAMP!vi|rt.h}. T|
|000000a0| 68 65 20 6d 61 74 72 69 | 78 20 70 72 6f 67 72 61 |he matri|x progra|
|000000b0| 6d 73 20 63 6f 6e 73 69 | 73 74 20 6f 66 20 74 77 |ms consi|st of tw|
|000000c0| 6f 0d 0a 6f 74 68 65 72 | 20 6d 6f 64 75 6c 65 73 |o..other| modules|
|000000d0| 20 5c 76 65 72 62 2b 20 | 76 69 72 74 2e 63 70 70 | \verb+ |virt.cpp|
|000000e0| 2b 20 61 6e 64 20 5c 76 | 65 72 62 2b 20 76 69 72 |+ and \v|erb+ vir|
|000000f0| 74 6f 70 2e 63 70 70 2b | 2e 0d 0a 54 68 65 73 65 |top.cpp+|...These|
|00000100| 20 74 77 6f 20 66 69 6c | 65 73 20 6e 65 65 64 20 | two fil|es need |
|00000110| 74 6f 20 62 65 20 69 6e | 63 6c 75 64 65 64 20 69 |to be in|cluded i|
|00000120| 6e 20 79 6f 75 72 20 54 | 75 72 62 6f 20 43 2b 2b |n your T|urbo C++|
|00000130| 0d 0a 70 72 6f 6a 65 63 | 74 20 64 65 66 69 6e 69 |..projec|t defini|
|00000140| 74 69 6f 6e 2e 20 59 6f | 75 20 61 6c 73 6f 20 6e |tion. Yo|u also n|
|00000150| 65 65 64 20 74 6f 20 69 | 6e 63 6c 75 64 65 20 76 |eed to i|nclude v|
|00000160| 69 72 74 2e 68 20 69 6e | 20 74 68 65 20 0d 0a 6d |irt.h in| the ..m|
|00000170| 6f 64 75 6c 65 20 63 6f | 6e 74 61 69 6e 69 6e 67 |odule co|ntaining|
|00000180| 20 79 6f 75 72 20 6d 61 | 69 6e 20 70 72 6f 67 72 | your ma|in progr|
|00000190| 61 6d 2e 20 59 6f 75 20 | 61 6c 73 6f 20 6e 65 65 |am. You |also nee|
|000001a0| 64 20 74 6f 20 6d 61 6b | 65 0d 0a 61 20 67 6c 6f |d to mak|e..a glo|
|000001b0| 62 61 6c 20 64 65 63 6c | 61 72 61 74 69 6f 6e 20 |bal decl|aration |
|000001c0| 6f 66 20 74 68 65 20 64 | 69 73 70 61 74 63 68 20 |of the d|ispatch |
|000001d0| 6d 61 74 72 69 78 20 75 | 73 69 6e 67 0d 0a 5c 62 |matrix u|sing..\b|
|000001e0| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0d 0a |egin{ver|batim}..|
|000001f0| 4d 53 74 61 63 6b 20 2a | 44 69 73 70 61 74 63 68 |MStack *|Dispatch|
|00000200| 20 3d 20 6e 65 77 20 4d | 53 74 61 63 6b 3b 0d 0a | = new M|Stack;..|
|00000210| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0d 0a |\end{ver|batim}..|
|00000220| 0d 0a 0d 0a 59 6f 75 20 | 63 61 6e 20 73 74 61 72 |....You |can star|
|00000230| 74 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 20 61 |t your p|rogram a|
|00000240| 66 74 65 72 20 74 68 69 | 73 2e 20 53 65 65 20 74 |fter thi|s. See t|
|00000250| 68 65 20 66 69 6c 65 20 | 5c 76 65 72 62 2b 0d 0a |he file |\verb+..|
|00000260| 74 65 73 74 2e 63 70 70 | 2b 20 66 6f 72 20 6d 79 |test.cpp|+ for my|
|00000270| 20 74 65 73 74 20 73 75 | 69 74 65 20 6f 66 20 74 | test su|ite of t|
|00000280| 68 65 20 59 41 4d 50 20 | 6d 6f 64 75 6c 65 73 2e |he YAMP |modules.|
|00000290| 20 54 68 65 20 76 69 74 | 75 61 6c 0d 0a 6d 65 6d | The vit|ual..mem|
|000002a0| 6f 72 79 20 6d 6f 64 65 | 6c 20 59 41 4d 50 20 70 |ory mode|l YAMP p|
|000002b0| 72 6f 67 72 61 6d 73 20 | 75 73 75 61 6c 6c 79 20 |rograms |usually |
|000002c0| 6e 65 65 64 20 74 68 65 | 20 6d 65 64 69 75 6d 2c |need the| medium,|
|000002d0| 20 6c 61 72 67 65 20 6f | 72 0d 0a 68 75 67 65 20 | large o|r..huge |
|000002e0| 6d 65 6d 6f 72 79 20 6d | 6f 64 65 6c 73 2e 20 20 |memory m|odels. |
|000002f0| 49 74 20 77 69 6c 6c 20 | 61 6c 73 6f 20 77 6f 72 |It will |also wor|
|00000300| 6b 20 69 6e 20 74 68 65 | 20 73 6d 61 6c 6c 20 61 |k in the| small a|
|00000310| 6e 64 20 63 6f 6d 70 61 | 63 74 0d 0a 6d 6f 64 65 |nd compa|ct..mode|
|00000320| 6c 20 69 66 20 79 6f 75 | 20 73 74 72 69 70 20 74 |l if you| strip t|
|00000330| 68 65 20 63 6f 64 65 20 | 74 68 61 74 20 79 6f 75 |he code |that you|
|00000340| 20 64 6f 20 6e 6f 74 20 | 6e 65 65 64 20 69 6e 0d | do not |need in.|
|00000350| 0a 5c 76 65 72 62 2b 76 | 69 72 74 6f 70 2e 63 70 |.\verb+v|irtop.cp|
|00000360| 70 2b 2e 20 59 6f 75 20 | 63 61 6e 20 61 6c 73 6f |p+. You |can also|
|00000370| 20 74 75 72 6e 20 6f 66 | 66 20 74 68 65 20 67 72 | turn of|f the gr|
|00000380| 61 70 68 69 63 73 20 0d | 0a 66 75 6e 63 74 69 6f |aphics .|.functio|
|00000390| 6e 73 20 74 6f 20 66 69 | 74 20 74 68 65 20 76 69 |ns to fi|t the vi|
|000003a0| 72 74 75 61 6c 20 6d 65 | 6d 6f 72 79 20 6d 6f 64 |rtual me|mory mod|
|000003b0| 65 6c 20 69 6e 74 6f 20 | 74 68 65 20 73 6d 61 6c |el into |the smal|
|000003c0| 6c 20 6d 65 6d 6f 72 79 | 0d 0a 6d 6f 64 65 6c 2e |l memory|..model.|
|000003d0| 20 54 68 65 72 65 20 69 | 73 20 6d 6f 72 65 20 74 | There i|s more t|
|000003e0| 68 61 6e 20 36 34 6b 20 | 69 6e 20 74 68 65 20 76 |han 64k |in the v|
|000003f0| 69 72 74 75 61 6c 20 6d | 65 6d 6f 72 79 20 74 65 |irtual m|emory te|
|00000400| 78 74 20 73 65 67 6d 65 | 6e 74 0d 0a 61 73 20 74 |xt segme|nt..as t|
|00000410| 68 65 20 73 79 73 74 65 | 6d 20 69 73 20 63 6f 6e |he syste|m is con|
|00000420| 66 69 67 75 72 65 64 20 | 6e 6f 77 2e 20 54 68 65 |figured |now. The|
|00000430| 20 69 6e 2d 72 61 6d 20 | 6d 6f 64 65 6c 20 77 69 | in-ram |model wi|
|00000440| 6c 6c 20 63 6f 6d 70 69 | 6c 65 0d 0a 69 6e 74 6f |ll compi|le..into|
|00000450| 20 61 6c 6c 20 62 75 74 | 20 74 68 65 20 74 69 6e | all but| the tin|
|00000460| 79 20 6d 65 6d 6f 72 79 | 20 6d 6f 64 65 6c 2e 0d |y memory| model..|
|00000470| 0a 0d 0a 5c 73 65 63 74 | 69 6f 6e 7b 76 69 72 74 |...\sect|ion{virt|
|00000480| 2e 68 7d 0d 0a 5c 76 65 | 72 62 2b 20 76 69 72 74 |.h}..\ve|rb+ virt|
|00000490| 2e 68 2b 20 69 6e 63 6c | 75 64 65 73 20 73 65 76 |.h+ incl|udes sev|
|000004a0| 65 72 61 6c 20 6f 66 20 | 74 68 65 20 73 74 61 6e |eral of |the stan|
|000004b0| 64 61 72 64 20 68 65 61 | 64 65 72 0d 0a 66 69 6c |dard hea|der..fil|
|000004c0| 65 73 2e 20 49 74 20 74 | 68 65 6e 20 64 65 66 69 |es. It t|hen defi|
|000004d0| 6e 65 73 20 65 61 63 68 | 20 6f 66 20 74 68 65 20 |nes each| of the |
|000004e0| 6f 62 6a 65 63 74 73 20 | 61 6e 64 20 74 68 65 0d |objects |and the.|
|000004f0| 0a 66 75 6e 63 74 69 6f | 6e 73 20 64 65 73 63 72 |.functio|ns descr|
|00000500| 69 62 65 64 20 69 6e 20 | 65 61 72 6c 69 65 72 20 |ibed in |earlier |
|00000510| 63 68 61 70 74 65 72 73 | 2e 20 54 68 65 73 65 20 |chapters|. These |
|00000520| 68 65 61 64 65 72 73 20 | 61 72 65 0d 0a 5c 62 65 |headers |are..\be|
|00000530| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0d 0a 23 |gin{verb|atim}..#|
|00000540| 69 6e 63 6c 75 64 65 20 | 3c 64 3a 64 6f 73 2e 68 |include |<d:dos.h|
|00000550| 3e 0d 0a 23 69 6e 63 6c | 75 64 65 20 3c 64 3a 73 |>..#incl|ude <d:s|
|00000560| 74 64 6c 69 62 2e 68 3e | 0d 0a 23 69 6e 63 6c 75 |tdlib.h>|..#inclu|
|00000570| 64 65 20 3c 64 3a 73 74 | 64 69 6f 2e 68 3e 0d 0a |de <d:st|dio.h>..|
|00000580| 23 69 6e 63 6c 75 64 65 | 20 3c 64 3a 6d 61 74 68 |#include| <d:math|
|00000590| 2e 68 3e 0d 0a 23 69 6e | 63 6c 75 64 65 20 3c 64 |.h>..#in|clude <d|
|000005a0| 3a 73 74 72 69 6e 67 2e | 68 3e 0d 0a 23 69 6e 63 |:string.|h>..#inc|
|000005b0| 6c 75 64 65 20 3c 64 3a | 69 6f 2e 68 3e 0d 0a 23 |lude <d:|io.h>..#|
|000005c0| 69 6e 63 6c 75 64 65 20 | 3c 64 3a 66 63 6e 74 6c |include |<d:fcntl|
|000005d0| 2e 68 3e 0d 0a 23 69 6e | 63 6c 75 64 65 20 3c 64 |.h>..#in|clude <d|
|000005e0| 3a 65 72 72 6e 6f 2e 68 | 3e 0d 0a 23 69 6e 63 6c |:errno.h|>..#incl|
|000005f0| 75 64 65 20 3c 64 3a 74 | 79 70 65 73 2e 68 3e 0d |ude <d:t|ypes.h>.|
|00000600| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 64 3a 73 74 61 |.#includ|e <d:sta|
|00000610| 74 2e 68 3e 0d 0a 23 69 | 6e 63 6c 75 64 65 20 3c |t.h>..#i|nclude <|
|00000620| 64 3a 69 6f 73 74 72 65 | 61 6d 2e 68 3e 0d 0a 0d |d:iostre|am.h>...|
|00000630| 0a 23 64 65 66 69 6e 65 | 20 53 54 41 43 4b 4c 45 |.#define| STACKLE|
|00000640| 4e 47 54 48 20 31 36 33 | 35 32 0d 0a 0d 0a 23 64 |NGTH 163|52....#d|
|00000650| 65 66 69 6e 65 20 4e 44 | 45 43 53 20 31 30 0d 0a |efine ND|ECS 10..|
|00000660| 23 64 65 66 69 6e 65 20 | 5a 45 52 4f 20 28 31 2e |#define |ZERO (1.|
|00000670| 30 45 2d 38 29 0d 0a 0d | 0a 5c 65 6e 64 7b 76 65 |0E-8)...|.\end{ve|
|00000680| 72 62 61 74 69 6d 7d 0d | 0a 54 68 65 20 64 69 73 |rbatim}.|.The dis|
|00000690| 6b 20 27 64 3a 27 20 69 | 73 20 77 68 65 72 65 20 |k 'd:' i|s where |
|000006a0| 74 68 65 20 68 65 61 64 | 65 72 73 20 61 72 65 20 |the head|ers are |
|000006b0| 73 74 6f 72 65 64 20 66 | 6f 72 0d 0a 63 6f 6d 70 |stored f|or..comp|
|000006c0| 69 6c 61 74 69 6f 6e 2e | 20 49 74 20 69 73 20 61 |ilation.| It is a|
|000006d0| 20 52 41 4d 20 64 69 73 | 6b 20 69 6e 20 65 78 74 | RAM dis|k in ext|
|000006e0| 65 6e 64 65 64 20 6d 65 | 6d 6f 72 79 2e 0d 0a 43 |ended me|mory...C|
|000006f0| 6f 6d 70 69 6c 61 74 69 | 6f 6e 20 69 73 20 66 61 |ompilati|on is fa|
|00000700| 73 74 65 72 20 77 68 65 | 6e 20 72 65 61 64 69 6e |ster whe|n readin|
|00000710| 67 20 68 65 61 64 65 72 | 73 20 66 72 6f 6d 20 61 |g header|s from a|
|00000720| 20 52 41 4d 20 64 69 73 | 6b 0d 0a 65 76 65 6e 20 | RAM dis|k..even |
|00000730| 6f 6e 20 33 38 36 20 6d | 61 63 68 69 6e 65 2e 20 |on 386 m|achine. |
|00000740| 54 68 65 20 64 20 64 72 | 69 76 65 20 69 73 20 61 |The d dr|ive is a|
|00000750| 6c 73 6f 20 77 68 65 72 | 65 0d 0a 5c 24 5c 24 5c |lso wher|e..\$\$\|
|00000760| 24 5c 24 76 6d 65 6d 2e | 74 6d 70 20 63 61 6e 20 |$\$vmem.|tmp can |
|00000770| 62 65 20 63 72 65 61 74 | 65 64 2e 20 52 65 63 65 |be creat|ed. Rece|
|00000780| 6e 74 20 76 65 72 73 69 | 6f 6e 73 20 6f 66 20 42 |nt versi|ons of B|
|00000790| 43 20 75 73 65 0d 0a 70 | 72 65 63 6f 6d 70 69 6c |C use..p|recompil|
|000007a0| 65 64 20 68 65 61 64 65 | 72 73 2c 20 73 6f 20 79 |ed heade|rs, so y|
|000007b0| 6f 75 20 6d 69 67 68 74 | 20 77 61 6e 74 20 74 6f |ou might| want to|
|000007c0| 20 72 65 6d 6f 76 65 20 | 74 68 65 20 64 3a 20 66 | remove |the d: f|
|000007d0| 72 6f 6d 20 74 68 65 0d | 0a 69 6e 63 6c 75 64 65 |rom the.|.include|
|000007e0| 73 2e 20 0d 0a 0d 0a 54 | 68 65 20 76 61 72 69 61 |s. ....T|he varia|
|000007f0| 62 6c 65 20 53 54 41 43 | 4b 4c 45 4e 47 54 48 5c |ble STAC|KLENGTH\|
|00000800| 69 6e 64 65 78 7b 59 41 | 4d 50 21 53 54 41 43 4b |index{YA|MP!STACK|
|00000810| 4c 45 4e 47 54 48 7d 20 | 69 73 0d 0a 64 65 66 69 |LENGTH} |is..defi|
|00000820| 6e 65 64 2e 20 59 6f 75 | 20 63 61 6e 20 69 6e 63 |ned. You| can inc|
|00000830| 72 65 61 73 65 20 74 68 | 69 73 20 61 73 20 6e 65 |rease th|is as ne|
|00000840| 65 64 65 64 20 75 70 20 | 74 6f 20 36 34 6b 20 62 |eded up |to 64k b|
|00000850| 79 74 65 73 20 69 6e 0d | 0a 54 75 72 62 6f 20 43 |ytes in.|.Turbo C|
|00000860| 2b 2b 2e 20 54 68 69 73 | 20 76 61 72 69 61 62 6c |++. This| variabl|
|00000870| 65 20 69 73 20 6e 6f 74 | 20 6e 65 65 64 20 66 6f |e is not| need fo|
|00000880| 72 20 6d 6f 73 74 20 70 | 72 6f 67 72 61 6d 73 0d |r most p|rograms.|
|00000890| 0a 73 69 6e 63 65 20 74 | 68 65 20 34 30 39 36 20 |.since t|he 4096 |
|000008a0| 62 79 74 65 20 73 74 61 | 63 6b 6c 65 6e 67 74 68 |byte sta|cklength|
|000008b0| 20 69 73 20 73 75 66 66 | 69 63 69 65 6e 74 2e 20 | is suff|icient. |
|000008c0| 20 59 6f 75 20 6d 75 73 | 74 20 74 75 72 6e 0d 0a | You mus|t turn..|
|000008d0| 6f 66 66 20 73 74 61 63 | 6b 20 63 68 65 63 6b 69 |off stac|k checki|
|000008e0| 6e 67 20 61 6e 64 20 72 | 65 73 6f 72 74 20 74 6f |ng and r|esort to|
|000008f0| 20 74 68 65 20 68 75 67 | 65 20 6d 6f 64 65 6c 20 | the hug|e model |
|00000900| 74 6f 20 61 76 6f 69 64 | 0d 0a 66 69 78 75 70 20 |to avoid|..fixup |
|00000910| 6f 76 65 72 66 6c 6f 77 | 20 65 72 72 6f 72 20 6d |overflow| error m|
|00000920| 65 73 73 61 67 65 73 5c | 63 69 74 65 7b 42 52 3a |essages\|cite{BR:|
|00000930| 43 70 70 7d 2e 20 54 68 | 69 73 20 63 61 6e 20 62 |Cpp}. Th|is can b|
|00000940| 65 20 61 0d 0a 64 61 6e | 67 65 72 6f 75 73 20 74 |e a..dan|gerous t|
|00000950| 68 69 6e 67 20 74 6f 20 | 64 6f 20 69 6e 20 70 6f |hing to |do in po|
|00000960| 69 6e 74 65 72 20 69 6e | 74 65 6e 73 69 76 65 20 |inter in|tensive |
|00000970| 70 72 6f 67 72 61 6d 73 | 2e 0d 0a 55 73 65 20 74 |programs|...Use t|
|00000980| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 73 74 61 |he follo|wing sta|
|00000990| 74 65 6d 65 6e 74 20 69 | 6e 20 79 6f 75 72 20 6d |tement i|n your m|
|000009a0| 61 69 6e 20 6d 6f 64 75 | 6c 65 20 62 65 66 6f 72 |ain modu|le befor|
|000009b0| 65 0d 0a 64 65 66 69 6e | 69 6e 67 20 44 69 73 70 |e..defin|ing Disp|
|000009c0| 61 74 63 68 20 74 6f 20 | 6d 6f 64 69 66 79 20 74 |atch to |modify t|
|000009d0| 68 65 20 73 74 61 63 6b | 20 6c 65 6e 67 74 68 0d |he stack| length.|
|000009e0| 0a 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|000009f0| 7d 0d 0a 75 6e 73 69 67 | 6e 65 64 20 69 6e 74 20 |}..unsig|ned int |
|00000a00| 5f 73 74 6b 6c 65 6e 20 | 3d 20 53 54 41 43 4b 4c |_stklen |= STACKL|
|00000a10| 45 4e 47 54 48 3b 0d 0a | 5c 65 6e 64 7b 76 65 72 |ENGTH;..|\end{ver|
|00000a20| 62 61 74 69 6d 7d 0d 0a | 54 68 65 20 62 65 73 74 |batim}..|The best|
|00000a30| 20 61 64 76 69 63 65 20 | 72 65 67 61 72 64 69 6e | advice |regardin|
|00000a40| 67 20 74 68 65 20 73 74 | 61 63 6b 20 69 73 20 74 |g the st|ack is t|
|00000a50| 6f 20 74 72 79 0d 0a 74 | 6f 20 6c 69 6d 69 74 20 |o try..t|o limit |
|00000a60| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 6f |the numb|er of lo|
|00000a70| 63 61 6c 20 6d 61 74 72 | 69 63 65 73 20 69 6e 20 |cal matr|ices in |
|00000a80| 61 6e 79 20 73 69 6e 67 | 6c 65 0d 0a 66 75 6e 63 |any sing|le..func|
|00000a90| 74 69 6f 6e 2e 20 54 68 | 69 73 20 6b 65 65 70 73 |tion. Th|is keeps|
|00000aa0| 20 74 68 65 20 73 74 61 | 63 6b 20 77 69 74 68 69 | the sta|ck withi|
|00000ab0| 6e 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 34 30 |n the de|fault 40|
|00000ac0| 39 36 0d 0a 62 79 74 65 | 73 2e 20 45 61 63 68 20 |96..byte|s. Each |
|00000ad0| 6c 6f 63 61 6c 20 56 4d | 61 74 72 69 78 20 74 61 |local VM|atrix ta|
|00000ae0| 6b 65 73 20 31 30 34 20 | 62 79 74 65 73 20 6f 66 |kes 104 |bytes of|
|00000af0| 66 20 6f 66 20 74 68 65 | 20 73 74 61 63 6b 2e 0d |f of the| stack..|
|00000b00| 0a 0d 0a 54 68 65 20 76 | 61 72 69 61 62 6c 65 20 |...The v|ariable |
|00000b10| 4e 44 45 43 53 20 69 73 | 20 75 73 65 64 20 69 6e |NDECS is| used in|
|00000b20| 20 74 68 65 20 63 6f 6e | 76 65 72 73 69 6f 6e 73 | the con|versions|
|00000b30| 20 6f 66 20 73 74 72 69 | 6e 67 73 20 74 6f 0d 0a | of stri|ngs to..|
|00000b40| 66 6c 6f 61 74 73 20 69 | 6e 20 74 68 65 20 64 61 |floats i|n the da|
|00000b50| 74 61 20 49 4f 20 66 75 | 6e 63 74 69 6f 6e 73 2e |ta IO fu|nctions.|
|00000b60| 20 54 68 65 20 76 61 72 | 69 61 62 6c 65 20 5a 45 | The var|iable ZE|
|00000b70| 52 4f 20 69 73 20 75 73 | 65 64 0d 0a 69 6e 20 73 |RO is us|ed..in s|
|00000b80| 77 65 65 70 20 61 6e 64 | 20 65 6c 65 6d 65 6e 74 |weep and| element|
|00000b90| 77 69 73 65 20 64 69 76 | 69 73 69 6f 6e 2e 20 49 |wise div|ision. I|
|00000ba0| 74 20 63 61 6e 20 62 65 | 20 72 65 64 75 63 65 64 |t can be| reduced|
|00000bb0| 20 77 68 65 72 65 20 6e | 65 65 64 65 64 2e 0d 0a | where n|eeded...|
|00000bc0| 0d 0a 5c 73 65 63 74 69 | 6f 6e 7b 76 69 72 74 2e |..\secti|on{virt.|
|00000bd0| 63 70 70 20 61 6e 64 20 | 76 69 72 74 6f 70 2e 63 |cpp and |virtop.c|
|00000be0| 70 70 7d 20 0d 0a 54 68 | 65 20 66 69 6c 65 20 5c |pp} ..Th|e file \|
|00000bf0| 76 65 72 62 2b 20 76 69 | 72 74 2e 63 70 70 2b 5c |verb+ vi|rt.cpp+\|
|00000c00| 69 6e 64 65 78 7b 59 41 | 4d 50 21 76 69 72 74 2e |index{YA|MP!virt.|
|00000c10| 63 70 70 7d 20 62 72 61 | 6e 63 68 65 73 0d 0a 61 |cpp} bra|nches..a|
|00000c20| 63 63 6f 72 64 69 6e 67 | 20 74 6f 20 74 68 65 20 |ccording| to the |
|00000c30| 69 6e 2d 72 61 6d 20 6f | 72 20 76 69 72 74 75 61 |in-ram o|r virtua|
|00000c40| 6c 20 6d 65 6d 6f 72 79 | 20 6d 6f 64 75 6c 65 73 |l memory| modules|
|00000c50| 2e 20 54 68 65 73 65 20 | 6d 6f 64 75 6c 65 73 0d |. These |modules.|
|00000c60| 0a 63 6f 6e 74 61 69 6e | 20 74 68 65 20 6d 65 6d |.contain| the mem|
|00000c70| 62 65 72 20 66 75 6e 63 | 74 69 6f 6e 73 2c 20 73 |ber func|tions, s|
|00000c80| 74 61 63 6b 2c 20 61 6e | 64 20 66 72 69 65 6e 64 |tack, an|d friend|
|00000c90| 20 66 75 6e 63 74 69 6f | 6e 73 2e 20 54 68 65 0d | functio|ns. The.|
|00000ca0| 0a 63 6f 72 72 65 63 74 | 20 6d 65 6d 6f 72 79 20 |.correct| memory |
|00000cb0| 6d 6f 64 65 6c 20 69 73 | 20 73 65 6c 65 63 74 65 |model is| selecte|
|00000cc0| 64 20 64 65 70 65 6e 64 | 69 6e 67 20 6f 6e 20 64 |d depend|ing on d|
|00000cd0| 65 66 69 6e 69 6e 67 0d | 0a 5c 76 65 72 62 2b 49 |efining.|.\verb+I|
|00000ce0| 4e 5f 52 41 4d 2b 2e 20 | 54 68 65 20 66 69 6c 65 |N_RAM+. |The file|
|00000cf0| 20 5c 76 65 72 62 2b 0d | 0a 76 69 72 74 6f 70 2e | \verb+.|.virtop.|
|00000d00| 63 70 70 2b 5c 69 6e 64 | 65 78 7b 59 41 4d 50 21 |cpp+\ind|ex{YAMP!|
|00000d10| 76 69 72 74 6f 70 2e 63 | 70 70 7d 20 63 6f 6e 74 |virtop.c|pp} cont|
|00000d20| 61 69 6e 73 20 74 68 65 | 20 6d 61 74 72 69 78 20 |ains the| matrix |
|00000d30| 66 75 6e 63 74 69 6f 6e | 73 0d 0a 64 69 73 63 75 |function|s..discu|
|00000d40| 73 73 65 64 20 69 6e 20 | 74 68 65 20 70 72 65 76 |ssed in |the prev|
|00000d50| 69 6f 75 73 20 63 68 61 | 70 74 65 72 2e 20 54 68 |ious cha|pter. Th|
|00000d60| 69 73 20 69 73 20 74 68 | 65 20 66 69 6c 65 20 77 |is is th|e file w|
|00000d70| 68 65 72 65 20 79 6f 75 | 0d 0a 63 61 6e 20 61 64 |here you|..can ad|
|00000d80| 64 20 79 6f 75 72 20 6d | 61 74 72 69 78 20 66 75 |d your m|atrix fu|
|00000d90| 6e 63 74 69 6f 6e 73 2e | 20 0d 0a 0d 0a 5c 73 65 |nctions.| ....\se|
|00000da0| 63 74 69 6f 6e 7b 53 65 | 6c 65 63 74 69 6e 67 20 |ction{Se|lecting |
|00000db0| 61 20 4d 65 6d 6f 72 79 | 20 4d 6f 64 65 6c 7d 0d |a Memory| Model}.|
|00000dc0| 0a 54 68 65 20 66 69 6c | 65 20 5c 76 65 72 62 2b |.The fil|e \verb+|
|00000dd0| 20 76 69 72 74 2e 63 70 | 70 2b 20 64 65 70 65 6e | virt.cp|p+ depen|
|00000de0| 64 73 20 6f 6e 20 64 65 | 66 69 6e 69 6e 67 20 74 |ds on de|fining t|
|00000df0| 68 65 20 63 6f 6d 70 69 | 6c 65 72 0d 0a 64 69 72 |he compi|ler..dir|
|00000e00| 65 63 74 69 76 65 20 5c | 76 65 72 62 2b 20 49 4e |ective \|verb+ IN|
|00000e10| 5f 52 41 4d 2b 2e 20 49 | 66 20 69 74 20 69 73 20 |_RAM+. I|f it is |
|00000e20| 64 65 66 69 6e 65 64 2c | 20 74 68 65 6e 20 5c 76 |defined,| then \v|
|00000e30| 65 72 62 2b 0d 0a 56 49 | 52 54 52 41 4d 2e 43 50 |erb+..VI|RTRAM.CP|
|00000e40| 50 2b 20 77 69 6c 6c 20 | 62 65 20 69 6e 63 6c 75 |P+ will |be inclu|
|00000e50| 64 65 64 20 66 6f 72 20 | 74 68 65 20 69 6e 2d 72 |ded for |the in-r|
|00000e60| 61 6d 20 6d 65 6d 6f 72 | 79 20 73 79 73 74 65 6d |am memor|y system|
|00000e70| 2e 20 20 54 68 65 0d 0a | 76 69 72 74 75 61 6c 20 |. The..|virtual |
|00000e80| 6d 65 6d 6f 72 79 20 76 | 65 72 73 69 6f 6e 20 77 |memory v|ersion w|
|00000e90| 69 6c 6c 20 62 65 20 75 | 73 65 64 20 62 79 20 69 |ill be u|sed by i|
|00000ea0| 6e 63 6c 75 64 69 6e 67 | 20 5c 76 65 72 62 2b 0d |ncluding| \verb+.|
|00000eb0| 0a 56 49 52 54 44 49 53 | 4b 2e 43 50 50 2b 20 69 |.VIRTDIS|K.CPP+ i|
|00000ec0| 66 20 5c 76 65 72 62 2b | 20 49 4e 5f 52 41 4d 20 |f \verb+| IN_RAM |
|00000ed0| 2b 20 69 73 20 6e 6f 74 | 20 64 65 66 69 6e 65 64 |+ is not| defined|
|00000ee0| 2e 20 42 6f 74 68 20 6f | 66 20 74 68 65 73 65 0d |. Both o|f these.|
|00000ef0| 0a 66 69 6c 65 73 20 6d | 75 73 74 20 62 65 20 69 |.files m|ust be i|
|00000f00| 6e 20 74 68 65 20 69 6e | 63 6c 75 64 65 20 70 61 |n the in|clude pa|
|00000f10| 74 68 20 64 65 66 69 6e | 69 74 69 6f 6e 20 6f 66 |th defin|ition of|
|00000f20| 20 79 6f 75 72 20 70 72 | 6f 6a 65 63 74 2c 20 6f | your pr|oject, o|
|00000f30| 72 0d 0a 42 43 20 63 61 | 6e 6e 6f 74 20 66 69 6e |r..BC ca|nnot fin|
|00000f40| 64 20 74 68 65 6d 2e 20 | 54 68 65 20 6d 61 74 72 |d them. |The matr|
|00000f50| 69 78 20 6f 70 65 72 61 | 74 69 6f 6e 20 66 69 6c |ix opera|tion fil|
|00000f60| 65 2c 20 5c 76 65 72 62 | 2b 0d 0a 56 49 52 54 4f |e, \verb|+..VIRTO|
|00000f70| 50 2e 43 50 50 2b 20 77 | 6f 72 6b 73 20 74 68 65 |P.CPP+ w|orks the|
|00000f80| 20 73 61 6d 65 20 77 61 | 79 20 66 6f 72 20 62 6f | same wa|y for bo|
|00000f90| 74 68 20 6d 65 6d 6f 72 | 79 20 6d 6f 64 65 6c 73 |th memor|y models|
|00000fa0| 2e 0d 0a 0d 0a 5c 73 65 | 63 74 69 6f 6e 7b 53 65 |.....\se|ction{Se|
|00000fb0| 6c 65 63 74 69 6e 67 20 | 47 72 61 70 68 69 63 73 |lecting |Graphics|
|00000fc0| 7d 0d 0a 49 6e 63 6c 75 | 64 69 6e 67 20 67 72 61 |}..Inclu|ding gra|
|00000fd0| 70 68 69 63 73 20 64 65 | 70 65 6e 64 73 20 6f 6e |phics de|pends on|
|00000fe0| 20 64 65 66 69 6e 69 6e | 67 20 74 68 65 20 63 6f | definin|g the co|
|00000ff0| 6d 70 69 6c 65 72 20 64 | 69 72 65 63 74 69 76 65 |mpiler d|irective|
|00001000| 0d 0a 5c 76 65 72 62 2b | 56 49 52 54 47 52 41 46 |..\verb+|VIRTGRAF|
|00001010| 2b 5c 69 6e 64 65 78 7b | 47 4d 61 74 72 69 78 21 |+\index{|GMatrix!|
|00001020| 56 49 52 54 47 52 41 46 | 7d 2e 20 49 66 20 69 74 |VIRTGRAF|}. If it|
|00001030| 20 69 73 20 64 65 66 69 | 6e 65 64 20 74 68 65 6e | is defi|ned then|
|00001040| 0d 0a 5c 76 65 72 62 2b | 56 49 52 54 2e 48 2b 20 |..\verb+|VIRT.H+ |
|00001050| 77 69 6c 6c 20 69 6e 63 | 6c 75 64 65 20 74 68 65 |will inc|lude the|
|00001060| 20 67 72 61 70 68 69 63 | 73 20 70 72 6f 74 6f 74 | graphic|s protot|
|00001070| 79 70 65 73 2e 20 59 6f | 75 20 6d 75 73 74 0d 0a |ypes. Yo|u must..|
|00001080| 61 6c 73 6f 20 61 64 64 | 20 5c 76 65 72 62 2b 56 |also add| \verb+V|
|00001090| 49 52 54 47 52 41 46 2e | 43 50 50 2b 20 74 6f 20 |IRTGRAF.|CPP+ to |
|000010a0| 79 6f 75 72 20 70 72 6f | 6a 65 63 74 20 64 65 66 |your pro|ject def|
|000010b0| 69 6e 69 74 69 6f 6e 20 | 6f 72 20 6d 61 6b 65 0d |inition |or make.|
|000010c0| 0a 66 69 6c 65 73 2e 20 | 0d 0a 0d 0a 0d 0a 5c 73 |.files. |......\s|
|000010d0| 65 63 74 69 6f 6e 7b 55 | 73 69 6e 67 20 41 6e 20 |ection{U|sing An |
|000010e0| 45 6e 76 69 72 6f 6e 6d | 65 6e 74 20 56 61 72 69 |Environm|ent Vari|
|000010f0| 61 62 6c 65 7d 0d 0a 59 | 6f 75 20 63 61 6e 20 72 |able}..Y|ou can r|
|00001100| 65 64 69 72 65 63 74 20 | 77 68 65 72 65 20 5c 24 |edirect |where \$|
|00001110| 5c 24 5c 24 5c 24 76 6d | 65 6d 2e 74 6d 70 20 69 |\$\$\$vm|em.tmp i|
|00001120| 73 20 63 72 65 61 74 65 | 64 20 62 79 0d 0a 64 65 |s create|d by..de|
|00001130| 66 69 6e 69 6e 67 20 61 | 20 44 4f 53 20 65 6e 76 |fining a| DOS env|
|00001140| 69 72 6f 6e 6d 65 6e 74 | 0d 0a 76 61 72 69 61 62 |ironment|..variab|
|00001150| 6c 65 5c 69 6e 64 65 78 | 7b 59 41 4d 50 21 54 4d |le\index|{YAMP!TM|
|00001160| 50 7d 5c 69 6e 64 65 78 | 7b 54 4d 50 20 65 6e 76 |P}\index|{TMP env|
|00001170| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00001180| 65 7d 2e 0d 0a 55 73 65 | 20 74 68 65 20 73 74 61 |e}...Use| the sta|
|00001190| 74 65 6d 65 6e 74 0d 0a | 5c 62 65 67 69 6e 7b 76 |tement..|\begin{v|
|000011a0| 65 72 62 61 74 69 6d 7d | 0d 0a 73 65 74 20 54 4d |erbatim}|..set TM|
|000011b0| 50 3d 44 3a 0d 0a 5c 65 | 6e 64 7b 76 65 72 62 61 |P=D:..\e|nd{verba|
|000011c0| 74 69 6d 7d 0d 0a 62 65 | 66 6f 72 65 20 72 75 6e |tim}..be|fore run|
|000011d0| 6e 69 6e 67 20 61 20 70 | 72 6f 67 72 61 6d 20 74 |ning a p|rogram t|
|000011e0| 68 61 74 20 75 73 65 73 | 20 74 68 65 20 76 69 72 |hat uses| the vir|
|000011f0| 74 75 61 6c 20 6d 65 6d | 6f 72 79 0d 0a 73 79 73 |tual mem|ory..sys|
|00001200| 74 65 6d 2e 20 54 68 69 | 73 20 63 6f 6d 6d 61 6e |tem. Thi|s comman|
|00001210| 64 20 61 73 73 75 6d 65 | 73 20 74 68 61 74 20 79 |d assume|s that y|
|00001220| 6f 75 20 68 61 76 65 20 | 61 20 52 41 4d 20 64 69 |ou have |a RAM di|
|00001230| 73 6b 20 6e 61 6d 65 64 | 0d 0a 44 3a 2e 20 43 6f |sk named|..D:. Co|
|00001240| 6e 73 75 6c 74 20 79 6f | 75 72 20 44 4f 53 20 6d |nsult yo|ur DOS m|
|00001250| 61 6e 75 61 6c 20 66 6f | 72 20 68 6f 77 20 74 6f |anual fo|r how to|
|00001260| 20 63 6f 6e 66 69 67 75 | 72 65 20 79 6f 75 72 0d | configu|re your.|
|00001270| 0a 73 79 73 74 65 6d 20 | 77 69 74 68 20 61 20 52 |.system |with a R|
|00001280| 41 4d 20 64 69 73 6b 2e | 20 49 66 20 79 6f 75 20 |AM disk.| If you |
|00001290| 64 6f 6e 27 74 20 68 61 | 76 65 20 6d 6f 72 65 20 |don't ha|ve more |
|000012a0| 74 68 61 6e 20 31 20 6d | 65 67 0d 0a 6f 66 20 72 |than 1 m|eg..of r|
|000012b0| 61 6d 2c 20 74 68 65 6e | 20 79 6f 75 20 77 6f 6e |am, then| you won|
|000012c0| 27 74 20 62 65 6e 69 66 | 69 74 20 66 72 6f 6d 20 |'t benif|it from |
|000012d0| 75 73 69 6e 67 20 61 20 | 52 41 4d 20 64 69 73 6b |using a |RAM disk|
|000012e0| 20 66 6f 72 0d 0a 74 68 | 65 20 76 6d 6d 20 73 79 | for..th|e vmm sy|
|000012f0| 73 74 65 6d 2e 20 54 68 | 65 20 76 6d 6d 20 73 79 |stem. Th|e vmm sy|
|00001300| 73 74 65 6d 20 63 72 65 | 61 74 65 73 20 6c 61 72 |stem cre|ates lar|
|00001310| 67 65 20 6d 61 74 72 69 | 63 65 73 2c 0d 0a 77 68 |ge matri|ces,..wh|
|00001320| 69 63 68 20 77 69 6c 6c | 20 6e 6f 74 20 66 69 74 |ich will| not fit|
|00001330| 20 77 69 6c 6c 20 69 6e | 74 6f 20 73 6d 61 6c 6c | will in|to small|
|00001340| 20 52 41 4d 20 64 69 73 | 6b 73 2e 20 49 6e 73 74 | RAM dis|ks. Inst|
|00001350| 65 61 64 2c 20 79 6f 75 | 0d 0a 73 68 6f 75 6c 64 |ead, you|..should|
|00001360| 20 75 73 65 20 79 6f 75 | 72 20 68 61 72 64 20 64 | use you|r hard d|
|00001370| 72 69 76 65 2e 20 54 68 | 69 73 20 63 61 6e 20 62 |rive. Th|is can b|
|00001380| 65 20 72 65 61 6c 6c 79 | 20 73 6c 6f 77 20 74 68 |e really| slow th|
|00001390| 6f 75 67 68 2e 0d 0a 59 | 6f 75 20 6d 75 73 74 20 |ough...Y|ou must |
|000013a0| 64 65 63 69 64 65 20 74 | 6f 20 6d 61 6b 65 20 74 |decide t|o make t|
|000013b0| 68 65 20 74 72 61 64 65 | 6f 66 66 20 62 65 74 77 |he trade|off betw|
|000013c0| 65 65 6e 20 73 69 7a 65 | 20 61 6e 64 20 73 70 65 |een size| and spe|
|000013d0| 65 64 2e 0d 0a 0d 0a 5c | 73 65 63 74 69 6f 6e 7b |ed.....\|section{|
|000013e0| 4d 61 6b 69 6e 67 20 61 | 20 4c 49 42 7d 0d 0a 59 |Making a| LIB}..Y|
|000013f0| 41 4d 50 20 68 61 73 20 | 61 20 6c 6f 74 20 6f 66 |AMP has |a lot of|
|00001400| 20 63 6f 64 65 20 74 68 | 61 74 20 67 6f 65 73 20 | code th|at goes |
|00001410| 75 6e 75 73 65 64 20 69 | 6e 20 6d 61 6e 79 20 70 |unused i|n many p|
|00001420| 72 6f 67 72 61 6d 73 2e | 20 4f 6e 65 20 6f 66 0d |rograms.| One of.|
|00001430| 0a 74 68 65 20 77 61 79 | 73 20 74 6f 20 65 6c 69 |.the way|s to eli|
|00001440| 6d 69 6e 61 74 65 20 74 | 68 69 73 20 63 6f 64 65 |minate t|his code|
|00001450| 20 66 72 6f 6d 20 79 6f | 75 72 20 65 78 65 63 75 | from yo|ur execu|
|00001460| 74 61 62 6c 65 73 20 69 | 73 20 74 6f 0d 0a 62 75 |tables i|s to..bu|
|00001470| 69 6c 64 20 61 20 4c 49 | 42 2e 20 54 68 65 20 6c |ild a LI|B. The l|
|00001480| 69 6e 6b 20 73 74 65 70 | 20 6f 6e 6c 79 20 70 75 |ink step| only pu|
|00001490| 6c 6c 73 20 69 6e 20 63 | 6f 64 65 20 66 72 6f 6d |lls in c|ode from|
|000014a0| 20 74 68 65 20 6c 69 62 | 72 61 72 79 0d 0a 74 68 | the lib|rary..th|
|000014b0| 61 74 20 68 61 73 20 62 | 65 65 6e 20 63 61 6c 6c |at has b|een call|
|000014c0| 65 64 20 62 79 20 74 68 | 65 20 70 72 6f 67 72 61 |ed by th|e progra|
|000014d0| 6d 2e 20 49 20 68 61 76 | 65 20 69 6e 63 6c 75 64 |m. I hav|e includ|
|000014e0| 65 64 20 61 20 6d 61 6b | 65 20 66 69 6c 65 0d 0a |ed a mak|e file..|
|000014f0| 74 68 61 74 20 62 75 69 | 6c 64 73 20 74 68 65 20 |that bui|lds the |
|00001500| 6c 69 62 72 61 72 79 20 | 75 73 69 6e 67 20 42 6f |library |using Bo|
|00001510| 72 6c 61 6e 64 27 73 20 | 6d 61 6b 65 20 61 6e 64 |rland's |make and|
|00001520| 20 43 2b 2b 20 63 6f 6d | 70 69 6c 65 72 2e 0d 0a | C++ com|piler...|
|00001530| 59 6f 75 20 63 61 6e 20 | 66 69 64 64 6c 65 20 77 |You can |fiddle w|
|00001540| 69 74 68 20 69 74 20 74 | 6f 20 62 75 69 6c 64 20 |ith it t|o build |
|00001550| 79 6f 75 72 20 6f 77 6e | 20 6c 69 62 72 61 72 79 |your own| library|
|00001560| 2e 20 4d 61 6b 65 20 73 | 75 72 65 20 74 6f 0d 0a |. Make s|ure to..|
|00001570| 6d 6f 64 69 66 79 20 74 | 68 65 20 64 69 72 65 63 |modify t|he direc|
|00001580| 74 6f 72 79 20 6e 61 6d | 65 73 20 74 6f 20 63 6f |tory nam|es to co|
|00001590| 6e 66 6f 72 6d 20 74 6f | 20 79 6f 75 72 20 73 79 |nform to| your sy|
|000015a0| 73 74 65 6d 2e 20 49 20 | 68 61 76 65 0d 0a 61 6c |stem. I |have..al|
|000015b0| 73 6f 20 69 6e 63 6c 75 | 64 65 64 20 61 20 6d 61 |so inclu|ded a ma|
|000015c0| 6b 65 20 66 69 6c 65 20 | 74 6f 20 62 75 69 6c 64 |ke file |to build|
|000015d0| 20 74 68 65 20 74 68 72 | 65 65 20 74 65 73 74 20 | the thr|ee test |
|000015e0| 66 69 6c 65 73 20 66 6f | 75 6e 64 20 69 6e 0d 0a |files fo|und in..|
|000015f0| 74 68 65 20 61 70 70 65 | 6e 64 69 63 65 73 2e 20 |the appe|ndices. |
|00001600| 49 73 73 75 65 20 74 68 | 65 20 69 6e 73 74 72 75 |Issue th|e instru|
|00001610| 63 74 69 6f 6e 73 0d 0a | 0d 0a 5c 62 65 67 69 6e |ctions..|..\begin|
|00001620| 7b 76 65 72 62 61 74 69 | 6d 7d 0d 0a 20 20 6d 61 |{verbati|m}.. ma|
|00001630| 6b 65 20 2d 66 74 6f 5f | 6c 69 62 2e 6d 61 6b 20 |ke -fto_|lib.mak |
|00001640| 0d 0a 20 20 6d 61 6b 65 | 20 2d 66 6d 61 6b 65 74 |.. make| -fmaket|
|00001650| 65 73 74 2e 6d 61 6b 0d | 0a 5c 65 6e 64 7b 76 65 |est.mak.|.\end{ve|
|00001660| 72 62 61 74 69 6d 7d 0d | 0a 0d 0a 5c 6e 6f 69 6e |rbatim}.|...\noin|
|00001670| 64 65 6e 74 20 74 6f 20 | 6d 61 6b 65 20 74 68 65 |dent to |make the|
|00001680| 20 6c 69 62 72 61 72 79 | 20 61 6e 64 20 74 65 73 | library| and tes|
|00001690| 74 20 66 69 6c 65 73 2e | 20 54 68 65 73 65 20 77 |t files.| These w|
|000016a0| 69 6c 6c 20 70 72 6f 64 | 75 63 65 20 66 69 6c 65 |ill prod|uce file|
|000016b0| 73 0d 0a 74 68 61 74 20 | 75 73 65 20 66 6c 6f 61 |s..that |use floa|
|000016c0| 74 69 6e 67 20 70 6f 69 | 6e 74 20 65 6d 75 6c 61 |ting poi|nt emula|
|000016d0| 74 69 6f 6e 2c 20 61 6e | 64 20 64 65 66 61 75 6c |tion, an|d defaul|
|000016e0| 74 20 42 6f 72 6c 61 6e | 64 0d 0a 6f 70 74 69 6d |t Borlan|d..optim|
|000016f0| 69 7a 61 74 69 6f 6e 73 | 2e 20 54 68 65 20 6c 69 |izations|. The li|
|00001700| 62 72 61 72 79 20 77 69 | 6c 6c 20 6e 6f 74 20 69 |brary wi|ll not i|
|00001710| 6e 63 6c 75 64 65 20 64 | 65 62 75 67 20 69 6e 66 |nclude d|ebug inf|
|00001720| 6f 72 6d 61 74 69 6f 6e | 0d 0a 61 6e 64 20 74 68 |ormation|..and th|
|00001730| 65 20 74 65 73 74 20 66 | 69 6c 65 73 20 77 69 6c |e test f|iles wil|
|00001740| 6c 20 69 6e 63 6c 75 64 | 65 20 69 74 2e 20 49 20 |l includ|e it. I |
|00001750| 68 61 64 20 73 6f 6d 65 | 20 74 72 6f 75 62 6c 65 |had some| trouble|
|00001760| 20 63 72 65 61 74 69 6e | 67 0d 0a 74 68 65 20 6c | creatin|g..the l|
|00001770| 69 62 72 61 72 69 65 73 | 20 75 73 69 6e 67 20 74 |ibraries| using t|
|00001780| 68 65 20 73 70 65 65 64 | 20 6f 70 74 69 6d 69 7a |he speed| optimiz|
|00001790| 61 74 69 6f 6e 73 2e 20 | 54 68 65 20 74 65 73 74 |ations. |The test|
|000017a0| 20 66 69 6c 65 73 0d 0a | 70 72 6f 64 75 63 65 20 | files..|produce |
|000017b0| 67 61 72 62 61 67 65 20 | 65 76 65 6e 20 74 68 6f |garbage |even tho|
|000017c0| 75 67 68 20 74 68 65 79 | 20 6c 69 6e 6b 20 77 69 |ugh they| link wi|
|000017d0| 74 68 6f 75 74 20 65 72 | 72 6f 72 73 2e 20 54 68 |thout er|rors. Th|
|000017e0| 65 0d 0a 6f 70 74 69 6d | 69 7a 61 74 69 6f 6e 73 |e..optim|izations|
|000017f0| 20 77 6f 72 6b 20 77 65 | 6c 6c 20 66 72 6f 6d 20 | work we|ll from |
|00001800| 74 68 65 20 49 44 45 20 | 74 68 6f 75 67 68 2e 0d |the IDE |though..|
|00001810| 0a 0d 0a 49 20 61 6c 73 | 6f 20 68 61 64 20 73 6f |...I als|o had so|
|00001820| 6d 65 20 74 72 6f 75 62 | 6c 65 20 77 69 74 68 20 |me troub|le with |
|00001830| 42 43 43 20 76 33 2e 31 | 20 77 68 65 6e 20 74 72 |BCC v3.1| when tr|
|00001840| 79 69 6e 67 20 74 6f 20 | 6c 69 6e 6b 20 74 6f 20 |ying to |link to |
|00001850| 74 68 65 0d 0a 6c 69 62 | 72 61 72 79 2e 20 49 20 |the..lib|rary. I |
|00001860| 77 6f 75 6c 64 20 67 65 | 74 20 65 72 72 6f 72 20 |would ge|t error |
|00001870| 6d 65 73 73 61 67 65 73 | 20 61 62 6f 75 74 20 74 |messages| about t|
|00001880| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|00001890| 68 65 0d 0a 6c 69 62 20 | 66 69 6c 65 20 61 66 74 |he..lib |file aft|
|000018a0| 65 72 20 69 74 20 68 61 | 64 20 62 65 65 6e 20 63 |er it ha|d been c|
|000018b0| 72 65 61 74 65 64 2e 20 | 41 70 70 61 72 65 6e 74 |reated. |Apparent|
|000018c0| 6c 79 20 74 68 65 20 77 | 61 79 20 42 43 43 20 76 |ly the w|ay BCC v|
|000018d0| 33 2e 31 0d 0a 72 65 6c | 65 61 73 65 73 20 69 74 |3.1..rel|eases it|
|000018e0| 73 20 44 50 4d 49 20 6d | 65 6d 6f 72 79 20 20 63 |s DPMI m|emory c|
|000018f0| 6f 72 72 75 70 74 73 20 | 74 68 65 20 6d 65 6d 6f |orrupts |the memo|
|00001900| 72 79 20 6f 6e 20 6d 79 | 20 6d 61 63 68 69 6e 65 |ry on my| machine|
|00001910| 20 0d 0a 73 6f 20 74 68 | 65 20 6c 69 6e 6b 20 73 | ..so th|e link s|
|00001920| 74 65 70 20 66 61 69 6c | 73 2e 20 49 20 63 6f 75 |tep fail|s. I cou|
|00001930| 6c 64 20 72 65 62 6f 6f | 74 20 61 6e 64 20 74 68 |ld reboo|t and th|
|00001940| 65 20 70 72 6f 62 6c 65 | 6d 20 76 61 6e 69 73 68 |e proble|m vanish|
|00001950| 65 64 2e 20 54 68 69 73 | 0d 0a 70 72 6f 62 6c 65 |ed. This|..proble|
|00001960| 6d 20 61 6c 73 6f 20 6f | 63 63 75 72 65 64 20 77 |m also o|ccured w|
|00001970| 68 65 6e 20 49 20 74 72 | 69 65 64 20 74 6f 20 75 |hen I tr|ied to u|
|00001980| 73 65 20 74 68 65 20 6d | 61 6b 65 66 69 6c 65 20 |se the m|akefile |
|00001990| 66 6f 72 20 73 6f 6d 65 | 0d 0a 6f 66 20 74 68 65 |for some|..of the|
|000019a0| 20 42 6f 72 6c 61 6e 64 | 20 6f 62 6a 65 63 74 20 | Borland| object |
|000019b0| 6c 69 62 72 61 72 69 65 | 73 2e 20 49 20 68 61 64 |librarie|s. I had|
|000019c0| 20 74 6f 20 72 65 62 6f | 6f 74 20 62 65 66 6f 72 | to rebo|ot befor|
|000019d0| 65 20 65 61 63 68 0d 0a | 6c 69 6e 6b 2e 20 4d 61 |e each..|link. Ma|
|000019e0| 6b 65 20 73 75 72 65 20 | 74 6f 20 72 75 6e 20 63 |ke sure |to run c|
|000019f0| 68 6b 64 73 6b 20 69 66 | 20 74 68 69 73 20 6f 63 |hkdsk if| this oc|
|00001a00| 63 75 72 73 2e 0d 0a 0d | 0a 54 68 69 73 20 70 72 |curs....|.This pr|
|00001a10| 6f 62 6c 65 6d 20 72 65 | 73 6f 6c 76 65 64 20 77 |oblem re|solved w|
|00001a20| 68 65 6e 20 49 20 73 74 | 61 72 74 65 64 20 75 73 |hen I st|arted us|
|00001a30| 69 6e 67 20 74 68 65 20 | 6d 6f 73 74 20 72 65 63 |ing the |most rec|
|00001a40| 65 6e 74 0d 0a 76 65 72 | 73 69 6f 6e 20 6f 66 20 |ent..ver|sion of |
|00001a50| 65 6d 6d 33 38 36 2e 73 | 79 73 20 61 6e 64 20 68 |emm386.s|ys and h|
|00001a60| 69 6d 65 6d 2e 73 79 73 | 2c 20 77 68 69 63 68 20 |imem.sys|, which |
|00001a70| 73 68 69 70 70 65 64 20 | 77 69 74 68 0d 0a 57 69 |shipped |with..Wi|
|00001a80| 6e 64 6f 77 73 20 33 2e | 31 2e 0d 0a 0d 0a 5c 73 |ndows 3.|1.....\s|
|00001a90| 65 63 74 69 6f 6e 7b 55 | 73 69 6e 67 20 59 41 4d |ection{U|sing YAM|
|00001aa0| 50 20 75 6e 64 65 72 20 | 57 69 6e 64 6f 77 73 7d |P under |Windows}|
|00001ab0| 0d 0a 54 68 65 72 65 20 | 61 72 65 20 73 74 69 6c |..There |are stil|
|00001ac0| 6c 20 73 6f 6d 65 20 6f | 70 65 6e 20 70 72 6f 62 |l some o|pen prob|
|00001ad0| 6c 65 6d 73 20 69 6e 20 | 59 41 4d 50 20 66 6f 72 |lems in |YAMP for|
|00001ae0| 20 6d 61 6b 69 6e 67 20 | 69 74 20 77 6f 72 6b 0d | making |it work.|
|00001af0| 0a 75 6e 64 65 72 20 57 | 49 4e 44 4f 57 53 2e 20 |.under W|INDOWS. |
|00001b00| 49 20 68 61 76 65 20 74 | 65 73 74 65 64 20 69 74 |I have t|ested it|
|00001b10| 20 75 6e 64 65 72 20 74 | 68 65 20 42 6f 72 6c 61 | under t|he Borla|
|00001b20| 6e 64 20 33 2e 30 20 57 | 69 6e 64 6f 77 73 0d 0a |nd 3.0 W|indows..|
|00001b30| 43 2b 2b 20 63 6f 6d 70 | 69 6c 65 72 2c 20 61 6e |C++ comp|iler, an|
|00001b40| 64 20 69 6e 20 61 20 73 | 74 61 6e 64 61 72 64 20 |d in a s|tandard |
|00001b50| 64 6f 73 20 65 78 65 20 | 75 6e 64 65 72 20 61 20 |dos exe |under a |
|00001b60| 57 69 6e 64 6f 77 73 20 | 44 4f 53 0d 0a 73 65 73 |Windows |DOS..ses|
|00001b70| 73 69 6f 6e 2e 20 54 65 | 78 74 20 62 61 73 65 64 |sion. Te|xt based|
|00001b80| 20 70 72 6f 67 72 61 6d | 73 20 63 6f 6d 70 69 6c | program|s compil|
|00001b90| 65 2c 20 6c 69 6e 6b 2c | 20 61 6e 64 20 72 75 6e |e, link,| and run|
|00001ba0| 20 6a 75 73 74 20 66 69 | 6e 65 2e 0d 0a 54 68 65 | just fi|ne...The|
|00001bb0| 20 47 4d 61 74 72 69 78 | 20 66 75 6e 63 74 69 6f | GMatrix| functio|
|00001bc0| 6e 73 20 77 69 6c 6c 20 | 6e 6f 74 20 62 65 20 61 |ns will |not be a|
|00001bd0| 63 63 65 73 73 61 62 6c | 65 20 69 6e 20 61 20 57 |ccessabl|e in a W|
|00001be0| 69 6e 64 6f 77 73 20 65 | 78 65 0d 0a 73 69 6e 63 |indows e|xe..sinc|
|00001bf0| 65 20 73 6f 6d 65 20 6f | 66 20 74 68 65 20 42 47 |e some o|f the BG|
|00001c00| 49 20 66 75 6e 63 74 69 | 6f 6e 73 20 61 72 65 20 |I functi|ons are |
|00001c10| 6e 6f 74 20 61 76 61 69 | 6c 61 62 6c 65 20 75 6e |not avai|lable un|
|00001c20| 64 65 72 20 57 69 6e 64 | 6f 77 73 2e 0d 0a 0d 0a |der Wind|ows.....|
|00001c30| 4f 6e 6c 79 20 6f 6e 65 | 20 70 72 6f 67 72 61 6d |Only one| program|
|00001c40| 20 63 61 6e 20 63 75 72 | 72 65 6e 74 6c 79 20 62 | can cur|rently b|
|00001c50| 65 20 72 75 6e 6e 69 6e | 67 20 74 68 61 74 20 75 |e runnin|g that u|
|00001c60| 73 65 73 20 74 68 65 20 | 59 41 4d 50 0d 0a 76 69 |ses the |YAMP..vi|
|00001c70| 72 74 75 61 6c 20 6d 65 | 6d 6f 72 79 20 6d 6f 64 |rtual me|mory mod|
|00001c80| 65 6c 2e 20 49 66 20 79 | 6f 75 20 74 72 79 20 74 |el. If y|ou try t|
|00001c90| 6f 20 6d 75 6c 74 69 74 | 61 73 6b 20 74 77 6f 20 |o multit|ask two |
|00001ca0| 59 41 4d 50 20 70 72 6f | 67 72 61 6d 73 0d 0a 79 |YAMP pro|grams..y|
|00001cb0| 6f 75 20 77 69 6c 6c 20 | 67 65 74 20 66 69 6c 65 |ou will |get file|
|00001cc0| 20 73 68 61 72 69 6e 67 | 20 65 72 72 6f 72 73 20 | sharing| errors |
|00001cd0| 6f 6e 20 5c 24 5c 24 5c | 24 5c 24 76 6d 65 6d 2e |on \$\$\|$\$vmem.|
|00001ce0| 74 6d 70 20 49 0d 0a 63 | 6f 6e 73 69 64 65 72 65 |tmp I..c|onsidere|
|00001cf0| 64 20 74 72 79 69 6e 67 | 20 74 6f 20 66 69 78 20 |d trying| to fix |
|00001d00| 74 68 69 73 2c 20 62 75 | 74 20 62 61 6c 6b 65 64 |this, bu|t balked|
|00001d10| 20 62 65 63 61 75 73 65 | 20 69 74 20 77 6f 75 6c | because| it woul|
|00001d20| 64 20 65 6d 62 65 64 0d | 0a 61 20 6c 6f 74 20 6f |d embed.|.a lot o|
|00001d30| 66 20 6d 61 63 68 69 6e | 65 20 73 70 65 63 69 66 |f machin|e specif|
|00001d40| 69 63 20 63 6f 64 65 20 | 69 6e 20 77 68 61 74 20 |ic code |in what |
|00001d50| 61 70 70 65 61 72 73 20 | 74 6f 20 62 65 20 61 20 |appears |to be a |
|00001d60| 70 6f 72 74 61 62 6c 65 | 0d 0a 70 72 6f 67 72 61 |portable|..progra|
|00001d70| 6d 2e 20 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |m. If yo|u want t|
|00001d80| 6f 20 72 75 6e 20 6d 6f | 72 65 20 74 68 61 6e 20 |o run mo|re than |
|00001d90| 6f 6e 65 20 59 41 4d 50 | 20 76 69 72 74 75 61 6c |one YAMP| virtual|
|00001da0| 20 70 72 6f 67 72 61 6d | 2c 0d 0a 79 6f 75 20 6d | program|,..you m|
|00001db0| 75 73 74 20 61 6c 74 65 | 72 20 74 68 65 20 72 6f |ust alte|r the ro|
|00001dc0| 75 74 69 6e 65 20 5c 76 | 65 72 62 2b 76 6f 70 65 |utine \v|erb+vope|
|00001dd0| 6e 28 29 2b 20 69 6e 0d | 0a 5c 76 65 72 62 2b 56 |n()+ in.|.\verb+V|
|00001de0| 49 52 54 44 49 53 4b 2e | 43 50 50 2b 2e 20 59 6f |IRTDISK.|CPP+. Yo|
|00001df0| 75 20 6d 75 73 74 20 6d | 61 6b 65 20 69 74 20 64 |u must m|ake it d|
|00001e00| 65 74 65 63 74 20 66 69 | 6c 65 20 73 68 61 72 69 |etect fi|le shari|
|00001e10| 6e 67 0d 0a 65 72 72 6f | 72 73 2c 20 6f 72 20 74 |ng..erro|rs, or t|
|00001e20| 68 65 20 70 72 65 73 65 | 6e 63 65 20 6f 66 20 61 |he prese|nce of a|
|00001e30| 6e 6f 74 68 65 72 20 2e | 74 6d 70 20 66 69 6c 65 |nother .|tmp file|
|00001e40| 2e 20 49 74 20 73 68 6f | 75 6c 64 20 61 6c 73 6f |. It sho|uld also|
|00001e50| 0d 0a 64 65 74 65 63 74 | 20 74 68 65 20 70 72 65 |..detect| the pre|
|00001e60| 73 65 6e 63 65 20 6f 66 | 20 57 69 6e 64 6f 77 73 |sence of| Windows|
|00001e70| 20 66 72 6f 6d 20 77 69 | 74 68 69 6e 20 61 20 64 | from wi|thin a d|
|00001e80| 6f 73 20 6f 72 20 57 69 | 6e 64 6f 77 73 0d 0a 73 |os or Wi|ndows..s|
|00001e90| 65 73 73 69 6f 6e 2e 20 | 54 68 65 6e 20 79 6f 75 |ession. |Then you|
|00001ea0| 20 6d 75 73 74 20 63 68 | 61 6e 67 65 20 74 68 65 | must ch|ange the|
|00001eb0| 20 6e 61 6d 65 20 63 6f | 6e 73 74 72 75 63 74 69 | name co|nstructi|
|00001ec0| 6f 6e 20 73 65 63 74 69 | 6f 6e 20 74 6f 0d 0a 6f |on secti|on to..o|
|00001ed0| 70 65 6e 20 61 6e 6f 74 | 68 65 72 20 5c 24 5c 24 |pen anot|her \$\$|
|00001ee0| 5c 24 5c 24 76 6d 65 6d | 2e 74 6d 70 2c 20 73 61 |\$\$vmem|.tmp, sa|
|00001ef0| 79 20 5c 24 5c 24 5c 24 | 5c 24 76 6d 65 6d 2e 74 |y \$\$\$|\$vmem.t|
|00001f00| 6d 31 2e 0d 0a 0d 0a 5c | 73 65 63 74 69 6f 6e 7b |m1.....\|section{|
|00001f10| 4d 69 63 72 6f 73 6f 66 | 74 20 43 2f 43 2b 2b 20 |Microsof|t C/C++ |
|00001f20| 37 2e 30 20 61 6e 64 20 | 37 2e 30 31 7d 0d 0a 4d |7.0 and |7.01}..M|
|00001f30| 6f 73 74 20 6f 66 20 59 | 41 4d 50 20 6e 6f 77 20 |ost of Y|AMP now |
|00001f40| 63 6f 6d 70 69 6c 65 73 | 20 75 6e 64 65 72 20 4d |compiles| under M|
|00001f50| 69 63 72 6f 73 6f 66 74 | 20 43 2f 43 2b 2b 20 37 |icrosoft| C/C++ 7|
|00001f60| 2e 30 2e 20 4d 69 6e 6f | 72 0d 0a 6d 6f 64 69 66 |.0. Mino|r..modif|
|00001f70| 69 63 61 74 69 6f 6e 73 | 20 77 65 72 65 20 6d 61 |ications| were ma|
|00001f80| 64 65 20 74 68 72 6f 75 | 67 68 6f 75 74 20 74 68 |de throu|ghout th|
|00001f90| 65 20 63 6f 64 65 20 66 | 6f 72 20 74 68 69 73 0d |e code f|or this.|
|00001fa0| 0a 63 6f 6d 70 61 74 61 | 62 69 6c 69 74 79 2e 20 |.compata|bility. |
|00001fb0| 54 68 65 20 67 72 61 70 | 68 69 63 73 20 6d 6f 64 |The grap|hics mod|
|00001fc0| 75 6c 65 20 73 74 69 6c | 6c 20 72 65 71 75 69 72 |ule stil|l requir|
|00001fd0| 65 73 20 42 6f 72 6c 61 | 6e 64 0d 0a 67 72 61 70 |es Borla|nd..grap|
|00001fe0| 68 69 63 73 20 72 6f 75 | 74 69 6e 65 73 2e 20 49 |hics rou|tines. I|
|00001ff0| 20 6d 69 67 68 74 20 61 | 64 64 20 61 20 70 72 65 | might a|dd a pre|
|00002000| 73 65 6e 74 61 74 69 6f | 6e 20 67 72 61 68 69 63 |sentatio|n grahic|
|00002010| 73 20 6d 6f 64 75 6c 65 | 0d 0a 75 73 69 6e 67 20 |s module|..using |
|00002020| 74 68 65 20 4d 53 43 20 | 66 75 6e 63 74 69 6f 6e |the MSC |function|
|00002030| 73 20 6c 61 74 65 72 2e | 20 49 74 20 73 68 6f 75 |s later.| It shou|
|00002040| 6c 64 20 62 65 20 70 72 | 65 74 74 79 20 65 61 73 |ld be pr|etty eas|
|00002050| 79 20 73 69 6e 63 65 20 | 49 0d 0a 64 6f 6e 27 74 |y since |I..don't|
|00002060| 20 68 61 76 65 20 74 6f | 20 77 72 69 74 65 20 74 | have to| write t|
|00002070| 68 65 20 73 63 61 6c 69 | 6e 67 20 61 6e 64 20 61 |he scali|ng and a|
|00002080| 78 69 73 20 66 75 6e 63 | 74 69 6f 6e 73 20 61 67 |xis func|tions ag|
|00002090| 61 69 6e 2e 20 0d 0a 0d | 0a 54 68 65 72 65 20 69 |ain. ...|.There i|
|000020a0| 73 20 6f 6e 65 20 6d 69 | 6e 6f 72 20 64 69 66 66 |s one mi|nor diff|
|000020b0| 65 72 65 6e 63 65 20 62 | 65 74 77 65 65 6e 20 74 |erence b|etween t|
|000020c0| 68 65 20 42 6f 72 6c 61 | 6e 64 20 61 6e 64 20 4d |he Borla|nd and M|
|000020d0| 53 43 20 76 37 2e 30 20 | 69 6e 2d 72 61 6d 0d 0a |SC v7.0 |in-ram..|
|000020e0| 76 65 72 73 69 6f 6e 73 | 2e 20 54 68 65 20 76 69 |versions|. The vi|
|000020f0| 72 74 75 61 6c 20 76 65 | 63 74 6f 72 2c 20 6d 6d |rtual ve|ctor, mm|
|00002100| 2c 20 69 73 20 61 20 68 | 75 67 65 20 70 6f 69 6e |, is a h|uge poin|
|00002110| 74 65 72 20 69 6e 20 4d | 53 43 20 61 6e 64 20 69 |ter in M|SC and i|
|00002120| 74 20 69 73 20 61 0d 0a | 66 61 72 20 70 6f 69 6e |t is a..|far poin|
|00002130| 74 65 72 20 69 6e 20 42 | 6f 72 6c 61 6e 64 20 43 |ter in B|orland C|
|00002140| 2b 2b 2e 20 49 20 68 61 | 64 20 74 72 6f 75 62 6c |++. I ha|d troubl|
|00002150| 65 20 67 65 74 74 69 6e | 67 20 74 68 65 20 4d 53 |e gettin|g the MS|
|00002160| 43 0d 0a 76 65 72 73 69 | 6f 6e 20 74 6f 20 72 65 |C..versi|on to re|
|00002170| 6c 65 61 73 65 20 61 6c | 6c 20 6f 66 20 6d 6d 20 |lease al|l of mm |
|00002180| 69 66 20 69 74 20 77 61 | 73 20 61 20 66 61 72 20 |if it wa|s a far |
|00002190| 70 6f 69 6e 74 65 72 2e | 20 48 6f 77 65 76 65 72 |pointer.| However|
|000021a0| 2c 0d 0a 75 6e 64 65 72 | 20 66 75 6c 6c 20 6f 70 |,..under| full op|
|000021b0| 74 69 6d 69 7a 61 74 69 | 6f 6e 20 66 6f 72 20 73 |timizati|on for s|
|000021c0| 70 65 65 64 2c 20 74 68 | 65 20 4d 53 43 20 63 6f |peed, th|e MSC co|
|000021d0| 64 65 20 69 73 20 6d 75 | 63 68 20 66 61 73 74 65 |de is mu|ch faste|
|000021e0| 72 0d 0a 69 6e 20 74 68 | 65 20 69 6e 2d 72 61 6d |r..in th|e in-ram|
|000021f0| 20 76 65 72 73 69 6f 6e | 2e 20 50 65 72 66 6f 72 | version|. Perfor|
|00002200| 6d 61 6e 63 65 20 69 73 | 20 69 64 65 6e 74 69 63 |mance is| identic|
|00002210| 61 6c 20 69 6e 20 74 68 | 65 20 76 69 72 74 75 61 |al in th|e virtua|
|00002220| 6c 0d 0a 6d 65 6d 6f 72 | 79 20 6d 6f 64 65 6c 2e |l..memor|y model.|
|00002230| 20 0d 0a 0d 0a 41 20 70 | 61 74 63 68 20 74 6f 20 | ....A p|atch to |
|00002240| 4d 53 43 20 76 37 2e 30 | 20 68 61 73 20 62 65 65 |MSC v7.0| has bee|
|00002250| 6e 20 72 65 6c 65 61 73 | 65 64 20 77 68 69 63 68 |n releas|ed which|
|00002260| 20 66 69 78 65 64 20 74 | 68 65 20 70 72 6f 62 6c | fixed t|he probl|
|00002270| 65 6d 20 61 62 6f 76 65 | 2e 0d 0a 54 68 65 20 76 |em above|...The v|
|00002280| 61 6c 75 65 20 6f 66 20 | 48 55 47 45 5c 5f 50 4f |alue of |HUGE\_PO|
|00002290| 49 4e 54 45 52 20 69 73 | 20 73 65 74 20 74 6f 20 |INTER is| set to |
|000022a0| 5c 5f 5c 5f 66 61 72 20 | 66 6f 72 20 74 68 65 20 |\_\_far |for the |
|000022b0| 70 61 74 63 68 65 64 20 | 76 65 72 73 69 6f 6e 0d |patched |version.|
|000022c0| 0a 6f 66 20 76 37 2e 30 | 2e 20 54 68 65 20 6e 65 |.of v7.0|. The ne|
|000022d0| 77 20 76 65 72 73 69 6f | 6e 20 69 73 20 37 2e 30 |w versio|n is 7.0|
|000022e0| 31 2e 20 49 66 20 79 6f | 75 20 68 61 76 65 20 6e |1. If yo|u have n|
|000022f0| 6f 74 20 61 70 70 6c 69 | 65 64 20 74 68 65 20 70 |ot appli|ed the p|
|00002300| 61 74 63 68 65 73 0d 0a | 79 6f 75 20 6d 75 73 74 |atches..|you must|
|00002310| 20 63 68 61 6e 67 65 20 | 5c 5f 5c 5f 66 61 72 20 | change |\_\_far |
|00002320| 74 6f 20 5c 5f 5c 5f 68 | 75 67 65 20 74 6f 20 61 |to \_\_h|uge to a|
|00002330| 76 6f 69 64 20 74 68 65 | 20 6d 65 6d 6f 72 79 20 |void the| memory |
|00002340| 6c 65 61 6b 2e 0d 0a 0d | 0a 49 20 68 61 76 65 20 |leak....|.I have |
|00002350| 6f 6e 6c 79 20 74 65 73 | 74 65 64 20 74 68 65 20 |only tes|ted the |
|00002360| 4d 53 43 20 76 65 72 73 | 69 6f 6e 20 69 6e 20 74 |MSC vers|ion in t|
|00002370| 68 65 20 6c 61 72 67 65 | 20 6d 65 6d 6f 72 79 20 |he large| memory |
|00002380| 6d 6f 64 65 6c 2e 20 49 | 74 0d 0a 64 6f 65 73 20 |model. I|t..does |
|00002390| 6e 6f 74 20 63 6f 6d 70 | 69 6c 65 20 69 6e 20 74 |not comp|ile in t|
|000023a0| 68 65 20 73 6d 61 6c 6c | 20 6d 65 6d 6f 72 79 20 |he small| memory |
|000023b0| 6d 6f 64 65 6c 2e 20 0d | 0a 0d 0a 5c 73 65 63 74 |model. .|...\sect|
|000023c0| 69 6f 6e 7b 4e 4f 5c 5f | 43 48 45 43 4b 49 4e 47 |ion{NO\_|CHECKING|
|000023d0| 20 6f 70 74 69 6f 6e 7d | 0d 0a 41 20 64 65 66 69 | option}|..A defi|
|000023e0| 6e 65 20 77 61 73 20 61 | 64 64 65 64 20 74 6f 20 |ne was a|dded to |
|000023f0| 64 69 73 61 62 6c 65 20 | 47 61 72 62 61 67 65 28 |disable |Garbage(|
|00002400| 29 2c 20 61 6e 64 20 72 | 61 6e 67 65 20 63 68 65 |), and r|ange che|
|00002410| 63 6b 69 6e 67 20 69 6e | 0d 0a 6d 28 69 2c 6a 29 |cking in|..m(i,j)|
|00002420| 2e 20 54 68 69 73 20 70 | 72 6f 64 75 63 65 73 20 |. This p|roduces |
|00002430| 6d 69 6e 6f 72 20 70 65 | 72 66 6f 72 6d 61 6e 63 |minor pe|rformanc|
|00002440| 65 20 69 6d 70 72 6f 76 | 65 6d 65 6e 74 73 20 66 |e improv|ements f|
|00002450| 6f 72 0d 0a 66 69 6e 69 | 73 68 65 64 20 63 6f 64 |or..fini|shed cod|
|00002460| 65 2e 20 49 74 20 69 73 | 20 61 20 73 6c 69 67 68 |e. It is| a sligh|
|00002470| 74 6c 79 20 64 61 6e 67 | 65 72 6f 75 73 20 6f 70 |tly dang|erous op|
|00002480| 74 69 6f 6e 20 74 6f 20 | 75 73 65 20 77 68 69 6c |tion to |use whil|
|00002490| 65 0d 0a 79 6f 75 20 61 | 72 65 20 64 65 76 65 6c |e..you a|re devel|
|000024a0| 6f 70 69 6e 67 20 63 6f | 64 65 20 73 69 6e 63 65 |oping co|de since|
|000024b0| 20 79 6f 75 20 61 72 65 | 20 69 67 6e 6f 72 69 6e | you are| ignorin|
|000024c0| 67 20 70 6f 73 73 69 62 | 6c 65 20 68 65 61 70 0d |g possib|le heap.|
|000024d0| 0a 63 6f 72 72 75 70 74 | 69 6f 6e 2e 20 50 6c 61 |.corrupt|ion. Pla|
|000024e0| 63 65 20 74 68 65 20 4e | 4f 5c 5f 43 48 45 43 4b |ce the N|O\_CHECK|
|000024f0| 49 4e 47 5c 69 6e 64 65 | 78 7b 4e 4f 5c 5f 43 48 |ING\inde|x{NO\_CH|
|00002500| 45 43 4b 49 4e 47 7d 20 | 69 6e 20 74 68 65 0d 0a |ECKING} |in the..|
|00002510| 64 65 66 69 6e 65 20 62 | 6f 78 20 6f 66 20 74 68 |define b|ox of th|
|00002520| 65 20 63 6f 6d 70 69 6c | 65 72 20 6f 70 74 69 6f |e compil|er optio|
|00002530| 6e 73 2c 20 6f 72 20 64 | 65 66 69 6e 65 20 69 74 |ns, or d|efine it|
|00002540| 20 69 6e 20 74 68 65 0d | 0a 6d 61 6b 65 2d 66 69 | in the.|.make-fi|
|00002550| 6c 65 73 2e 20 59 6f 75 | 20 63 61 6e 20 61 6c 73 |les. You| can als|
|00002560| 6f 20 64 69 73 61 62 6c | 65 20 63 68 65 63 6b 73 |o disabl|e checks|
|00002570| 20 6f 66 20 64 65 62 75 | 67 67 69 6e 67 20 63 6f | of debu|gging co|
|00002580| 64 65 20 74 68 61 74 0d | 0a 79 6f 75 20 64 6f 20 |de that.|.you do |
|00002590| 6e 6f 74 20 77 61 6e 74 | 20 69 6e 20 74 68 65 20 |not want| in the |
|000025a0| 72 65 6c 65 61 73 65 20 | 76 65 72 73 69 6f 6e 20 |release |version |
|000025b0| 62 79 20 73 75 72 72 6f | 75 6e 64 69 6e 67 20 69 |by surro|unding i|
|000025c0| 74 20 77 69 74 68 0d 0a | 63 6f 6d 70 69 6c 65 72 |t with..|compiler|
|000025d0| 20 64 69 72 65 63 74 69 | 76 65 73 2e 20 41 73 20 | directi|ves. As |
|000025e0| 61 6e 20 65 78 61 6d 70 | 6c 65 3a 0d 0a 5c 62 65 |an examp|le:..\be|
|000025f0| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0d 0a 23 |gin{verb|atim}..#|
|00002600| 69 66 6e 64 65 66 20 4e | 4f 5f 43 48 45 43 4b 49 |ifndef N|O_CHECKI|
|00002610| 4e 47 0d 0a 20 20 20 20 | 20 61 73 73 65 72 74 28 |NG.. | assert(|
|00002620| 20 78 20 3e 20 30 20 29 | 3b 0d 0a 23 65 6e 64 69 | x > 0 )|;..#endi|
|00002630| 66 0d 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |f..\end{|verbatim|
|00002640| 7d 0d 0a 54 68 65 20 61 | 73 73 65 72 74 20 6d 61 |}..The a|ssert ma|
|00002650| 63 72 6f 20 77 69 6c 6c | 20 63 68 65 63 6b 20 74 |cro will| check t|
|00002660| 68 61 74 20 24 78 3e 30 | 24 20 69 66 20 4e 4f 5c |hat $x>0|$ if NO\|
|00002670| 5f 43 48 45 43 4b 49 4e | 47 20 69 73 0d 0a 75 6e |_CHECKIN|G is..un|
|00002680| 64 65 66 69 6e 65 64 2e | 20 49 74 20 77 69 6c 6c |defined.| It will|
|00002690| 20 6e 6f 74 20 62 65 20 | 63 6f 6d 70 69 6c 65 64 | not be |compiled|
|000026a0| 20 69 6e 74 6f 20 74 68 | 65 20 63 6f 64 65 20 69 | into th|e code i|
|000026b0| 66 20 4e 4f 5c 5f 43 48 | 45 43 4b 49 4e 47 0d 0a |f NO\_CH|ECKING..|
|000026c0| 69 73 20 64 65 66 69 6e | 65 64 2e |is defin|ed. |
+--------+-------------------------+-------------------------+--------+--------+