Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Embedded and dynamic memory allocation Pin
Greg Utas15-Nov-23 6:36
professionalGreg Utas15-Nov-23 6:36 
GeneralRe: Embedded and dynamic memory allocation Pin
honey the codewitch15-Nov-23 9:06
mvahoney the codewitch15-Nov-23 9:06 
GeneralRe: Embedded and dynamic memory allocation Pin
trønderen16-Nov-23 1:34
trønderen16-Nov-23 1:34 
GeneralRe: Embedded and dynamic memory allocation Pin
Greg Utas16-Nov-23 2:54
professionalGreg Utas16-Nov-23 2:54 
GeneralRe: Embedded and dynamic memory allocation Pin
trønderen16-Nov-23 5:04
trønderen16-Nov-23 5:04 
GeneralRe: Embedded and dynamic memory allocation Pin
Greg Utas16-Nov-23 8:44
professionalGreg Utas16-Nov-23 8:44 
GeneralRe: Embedded and dynamic memory allocation Pin
trønderen16-Nov-23 10:23
trønderen16-Nov-23 10:23 
GeneralRe: Embedded and dynamic memory allocation Pin
Greg Utas16-Nov-23 12:50
professionalGreg Utas16-Nov-23 12:50 
Most memory allocated at run-time is actually taken from object pools[^] allocated when the system initializes. Each pool supports a major framework class, and the number of blocks in each pool is engineered based on the system's object model.

The buddy heap[^] is seldom used at run-time. It is used to allocate byte buckets for IP message payloads or when using the framework to implement a standalone application. Most allocation occurs in the pools.

The buddy heap[^] has a queue for its block sizes (powers of 2). Allocation can recursively split a block, and deallocation can recursively merge blocks.

Both memory managers verify that a pointer references a valid block, support debug tools that can be enabled to trace activity, and collect usage statistics.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

AnswerRe: Embedded and dynamic memory allocation Pin
CPallini15-Nov-23 20:12
mveCPallini15-Nov-23 20:12 
GeneralRe: Embedded and dynamic memory allocation Pin
honey the codewitch16-Nov-23 0:41
mvahoney the codewitch16-Nov-23 0:41 
GeneralRe: Embedded and dynamic memory allocation Pin
CPallini16-Nov-23 0:55
mveCPallini16-Nov-23 0:55 
AnswerRe: Embedded and dynamic memory allocation Pin
leon de boer8-Dec-23 20:59
leon de boer8-Dec-23 20:59 
QuestionC++ reflection Pin
jschell15-Nov-23 3:26
jschell15-Nov-23 3:26 
AnswerRe: C++ reflection Pin
Mircea Neacsu15-Nov-23 3:41
Mircea Neacsu15-Nov-23 3:41 
GeneralRe: C++ reflection Pin
jschell16-Nov-23 4:32
jschell16-Nov-23 4:32 
AnswerRe: C++ reflection Pin
honey the codewitch15-Nov-23 4:35
mvahoney the codewitch15-Nov-23 4:35 
GeneralRe: C++ reflection Pin
jschell16-Nov-23 4:39
jschell16-Nov-23 4:39 
GeneralRe: C++ reflection Pin
honey the codewitch16-Nov-23 5:29
mvahoney the codewitch16-Nov-23 5:29 
GeneralRe: C++ reflection Pin
jschell17-Nov-23 5:32
jschell17-Nov-23 5:32 
GeneralRe: C++ reflection Pin
honey the codewitch17-Nov-23 5:34
mvahoney the codewitch17-Nov-23 5:34 
GeneralRe: C++ reflection Pin
jschell20-Nov-23 7:17
jschell20-Nov-23 7:17 
QuestionHow to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
Salvatore Terress12-Nov-23 6:40
Salvatore Terress12-Nov-23 6:40 
AnswerRe: How to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
Richard MacCutchan12-Nov-23 21:52
mveRichard MacCutchan12-Nov-23 21:52 
QuestionRe: How to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
CPallini12-Nov-23 23:05
mveCPallini12-Nov-23 23:05 
AnswerRe: How to "match" multiple occurrences of item in text ? ( Regular expression ) Pin
jschell13-Nov-23 6:33
jschell13-Nov-23 6:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.