CEMM

CEMM, for Compaq Expanded Memory Manager was the first so-called PC "memory manager" for Intel 80386 CPUs, able to transform "XMS" extended memory into "EMS" expanded memory by using the virtual memory features and the virtual 8086 mode of the CPU.

It was present in Compaq DOS 3.31, in 1987.

In 1986, Compaq was the first vendor to ship a PC compatible computer with a 386 CPU, the Deskpro 386, and it was natural for them to develop solutions leveraging the specific features of their new hardware and in this case allowing existing EMS-compatible DOS programs to access all the memory.

Alas, interesting features often come with less interesting drawbacks. Although CEMM was called an "expanded memory manager", it was really a tiny, protected mode, single tasking operating system kernel, also called a virtual machine monitor (VMM). It had to catch all the interrupts and all the exceptions, and to reflect them to the virtual machine where DOS ran. This slowed the machine down a little, increased the latency of interrupts and changed the behavior of DOS programs trying to execute invalid machine instructions. Implementing a VMM was not CEMM's raison d'etre, but EMS emulation required paging, and paging required protected mode. The only way to run existing real-mode DOS and BIOS code was therefore through a VMM.

Because CEMM put the CPU into protected mode, other programs (DOS extenders) could not do this anymore by themselves. A special API, the VCPI, had to be developed to allow running DOS extender programs. The first CEMM compatible with VCPI was 4.0, provided with Compaq DOS 4.01.

Compaq filed for a patent on the technology in 1987. The patent was granted in 1990 and probably expired in 2007. Compaq was the creator of this technology and the first company to use it. However, over time, QEMM and 386MAX became the standard packages. Windows/386 and later releases contained a built-in expanded memory manager (EMM386) available during Windows sessions and otherwise used for running multiple DOS virtual machines. MS-DOS 4.01 (in 1989) and DR-DOS 5.0 (in 1990) popularized the technology outside of the Windows context. Microsoft's EMM386 implementation was based on CEMM.

See also

External links