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

C / C++ / MFC

 
AnswerRe: (Visual Studio) Project build order/dependencies, Should they work ? Pin
honey the codewitch15-Nov-23 9:55
mvahoney the codewitch15-Nov-23 9:55 
GeneralRe: (Visual Studio) Project build order/dependencies, Should they work ? Pin
jschell16-Nov-23 4:50
jschell16-Nov-23 4:50 
QuestionEmbedded and dynamic memory allocation Pin
honey the codewitch15-Nov-23 4:32
mvahoney the codewitch15-Nov-23 4:32 
AnswerRe: Embedded and dynamic memory allocation Pin
Mircea Neacsu15-Nov-23 4:53
Mircea Neacsu15-Nov-23 4:53 
GeneralRe: Embedded and dynamic memory allocation Pin
honey the codewitch15-Nov-23 4:57
mvahoney the codewitch15-Nov-23 4:57 
GeneralRe: Embedded and dynamic memory allocation Pin
Mircea Neacsu15-Nov-23 5:04
Mircea Neacsu15-Nov-23 5:04 
GeneralRe: Embedded and dynamic memory allocation Pin
honey the codewitch15-Nov-23 5:17
mvahoney the codewitch15-Nov-23 5:17 
GeneralRe: Embedded and dynamic memory allocation Pin
Greg Utas15-Nov-23 6:36
professionalGreg Utas15-Nov-23 6:36 
honey the codewitch wrote:
The trouble here is determining the pool size up front without just making it the size of available memory.
One way around this is to allocate in slabs, adding a new slab when needed. A small system might allocate one slab, whereas a bigger one might allocate, say, four.
honey the codewitch wrote:
One thing I am doing is playing hot potato with my RAM to avoid fragmentation. I do not keep little allocations around.
If the memory manager uses buddy allocation and you allocate temporary memory and then free it all before allocating more, fragmentation should be avoided altogether.
honey the codewitch wrote:
Allocations that are kept around are allocated up front.
An excellent strategy that is also important in systems where latency must be predictable.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

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 
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 

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.