8.5 Memory Management and CodeView

CodeView for MS-DOS (CV) requires at least two megabytes of memory. The memory must be managed by a Virtual Control Program Interface (VCPI) server, DOS Protected-Mode Interface (DPMI) server, or extended memory (XMS) manager. These drivers manage memory at addresses above 1 megabyte on an 80286, 80386, or 80486 machine. CodeView loads itself and the debugging information for the program into high memory. In this way, CodeView uses only approximately 17K of conventional MS-DOS memory.

CodeView can use the following memory managers:

A VCPI server such as EMM386.EXE or EMM386.SYS. With a VCPI server, your program is also able to use EMS memory. To use this memory manager you must have a command in your CONFIG.SYS file such as:

DEVICE=C:\DOS\EMM386.EXE ram

A DPMI server such as MSDPMI.EXE. This server is installed by the Microsoft C/C++ SETUP.

An Extended Memory Standard (XMS) driver such as HIMEM.SYS. To use this memory manager you must have a command in your CONFIG.SYS file such as:

DEVICE=C:\DOS\HIMEM.SYS

For more information about using memory managers, see your memory manager's documentation. When you make new entries in your CONFIG.SYS file, remember to reboot your system so that your changes take effect.