flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
tango 26 Oct 2005, 11:32
vid wrote: what's difference between global (GlobalAlloc) and heap (HeapAlloc) memory? does the global memory get bigger performace hit on allocation / resizing or what? Maybe this can help you: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/memory/base/memory_management.asp Microsoft says that HeapAlloc is faster than GlobalAlloc (and has more options)... I've not tested that (about the speed). |
|||
![]() |
|
decard 26 Oct 2005, 12:31
From what I read it seems that heap functions should be used to allocate smaller blocks of memory, while GlobalAlloc - for bigger ones.
Perhaps f0dder could tell much more about this topic... |
|||
![]() |
|
MazeGen 26 Oct 2005, 14:18
I have just found accidentally f0dder's article about it. Maybe it helps.
Go to http://f0dder.has.it/ -> Articles -> Memory allocation ramblings |
|||
![]() |
|
vid 26 Oct 2005, 21:38
thx...
it was about fasmlib. does it need to call GlobalAlloc, or can be all allocation done via HeapAlloc. Does anybody know how do the HLLs treat this? A i know, in DOS and Linux everything is heap. |
|||
![]() |
|
Eoin 26 Oct 2005, 22:11
According to f0dder, Gobal/LocalAlloc both end up using HeapAlloc so you may as well just use it in the first place
![]() P.S. I think Gobal/LocalAlloc are left over from 16bit Windows, pre 9x. |
|||
![]() |
|
SFeLi 27 Oct 2005, 02:41
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.