Click here to Skip to main content
15,884,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalto disable incremental linking Pin
zon_cpp14-Jan-08 20:40
zon_cpp14-Jan-08 20:40 
GeneralRe: to disable incremental linking Pin
Cedric Moonen14-Jan-08 21:31
Cedric Moonen14-Jan-08 21:31 
GeneralRe: to disable incremental linking Pin
zon_cpp15-Jan-08 1:18
zon_cpp15-Jan-08 1:18 
GeneralRe: to disable incremental linking Pin
David Crow15-Jan-08 2:53
David Crow15-Jan-08 2:53 
GeneralRe: to disable incremental linking Pin
zon_cpp15-Jan-08 1:19
zon_cpp15-Jan-08 1:19 
GeneralRe: to disable incremental linking Pin
Mark Salsbery15-Jan-08 6:39
Mark Salsbery15-Jan-08 6:39 
Generalabout dwAllocationGranularity of SYSTEM_INFO Pin
George_George14-Jan-08 20:19
George_George14-Jan-08 20:19 
GeneralRe: about dwAllocationGranularity of SYSTEM_INFO Pin
Matthew Faithfull14-Jan-08 21:42
Matthew Faithfull14-Jan-08 21:42 
George_George wrote:
Does it mean that when memory manager deals with real memory allocation, it will always allocate 65535 bytes at a time


Yes.

George_George wrote:
when we new[256], it will allocate 256 bytes from the 65535 allocated raw bytes to application


Yes, unless there isn't a big enough free block then it will allocate another 64K bytes.

George_George wrote:
what benefit will we get if we know this parameter? For example, how do we allocate memory will utilize the system at most to achieve best performance?


All that it really tells you is that any such parameter is a compromise. Different applications would benefit from different values but the system can only have one default. A database app might benefit from large allocation chunks while a performance monitoring app might want smaller chunks.
There's not much you can do about this short of writing your own more sophisticated memory manager which is what you get in the .NET Runtime. I've written a prototype 'bucket' based manager which uses a virtual stack to compromise between the garbage collection cost of .NET and the heap fragmentation cost of the OS. It's not anywhere near publishable form at the moment but one day I hope it will be. There are 3rd party memory managers already out there, Google for Leap Heap for example if you're interested.

Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: about dwAllocationGranularity of SYSTEM_INFO Pin
George_George14-Jan-08 23:09
George_George14-Jan-08 23:09 
Questionhow can draw wave form in audio files? [modified] Pin
Le@rner14-Jan-08 20:00
Le@rner14-Jan-08 20:00 
AnswerRe: how can draw wave form in audio files? Pin
Cedric Moonen14-Jan-08 21:05
Cedric Moonen14-Jan-08 21:05 
GeneralRe: how can draw wave form in audio files? Pin
Le@rner14-Jan-08 21:14
Le@rner14-Jan-08 21:14 
GeneralRe: how can draw wave form in audio files? Pin
Cedric Moonen14-Jan-08 21:22
Cedric Moonen14-Jan-08 21:22 
GeneralRe: how can draw wave form in audio files? Pin
Le@rner14-Jan-08 22:25
Le@rner14-Jan-08 22:25 
GeneralRe: how can draw wave form in audio files? Pin
Iain Clarke, Warrior Programmer15-Jan-08 5:01
Iain Clarke, Warrior Programmer15-Jan-08 5:01 
GeneralRe: how can draw wave form in audio files? Pin
Le@rner15-Jan-08 19:28
Le@rner15-Jan-08 19:28 
AnswerRe: how can draw wave form in audio files? Pin
Hamid_RT14-Jan-08 23:28
Hamid_RT14-Jan-08 23:28 
GeneralRe: how can draw wave form in audio files? Pin
Le@rner14-Jan-08 23:39
Le@rner14-Jan-08 23:39 
GeneralRe: how can draw wave form in audio files? Pin
Hamid_RT15-Jan-08 4:12
Hamid_RT15-Jan-08 4:12 
GeneralRe: how can draw wave form in audio files? Pin
Le@rner15-Jan-08 19:31
Le@rner15-Jan-08 19:31 
GeneralRe: how can draw wave form in audio files? Pin
Hamid_RT20-Jan-08 3:58
Hamid_RT20-Jan-08 3:58 
Questionhow to use oracle tables using VC++? Pin
megha_gharote14-Jan-08 19:48
megha_gharote14-Jan-08 19:48 
AnswerRe: how to use oracle tables using VC++? Pin
Nitheesh George14-Jan-08 23:45
Nitheesh George14-Jan-08 23:45 
GeneralRe: how to use oracle tables using VC++? Pin
megha_gharote15-Jan-08 23:17
megha_gharote15-Jan-08 23:17 
GeneralRe: how to use oracle tables using VC++? Pin
Amrit Alok16-Jan-08 0:57
Amrit Alok16-Jan-08 0:57 

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.