When SMARTALLOC Is Disabled
When SMARTALLOC is disabled by compiling a program with the symbol
SMARTALLOC not defined, calls on the functions otherwise redefined by
SMARTALLOC go directly to the system functions. In addition,
compile-time definitions translate calls on the
”actually
…()
“functions into the corresponding library
calls;”actuallymalloc(100)
“, for example, compiles
into”malloc(100)
“. The two special SMARTALLOC functions,
sm_dump()
and sm_static()
, are defined to generate no code
(hence the null statement). Finally, if SMARTALLOC is not defined,
compilation of the file smartall.c generates no code or data at all,
effectively removing it from the program even if named in the link
instructions.
Thus, except for unusual circumstances, a program that works with SMARTALLOC defined for testing should require no changes when built without it for production release.
See also
Possible Next Steps
Go back to Smart Memory Allocation.
Go back to Developer Guide.