Chapter 5 Managing Memory in C++

Chapter 4, “Managing Memory in C,” describes how you can most efficiently use memory to optimize your C program. This chapter describes how to manage memory in your C++ program.

This chapter explains:

How memory models apply to classes

How to control the addressing of dynamically created objects

How to control the placement of member functions using the __based keyword

You should be familiar with the C++ language before reading this chapter (see the C++ Tutorial and the C++ Language Reference manuals for information on the C++ language). You should also have read the material in Chapter 4, “Managing Memory in C.”

The material covered in this chapter is relevant only to 16-bit programs.