Using MASM 6.15 in WIN32 console mode.
If in my program I make a memory allocation as

hG DD 16000

along with other stuff the assembly time is prety fast.

But if I change the 16000 to 65000 for instance it takes
about 5 seconds to assemble

If I make the size 1000000 it seems to take forever.

I have 512MB of memory on an 800 MHZ Athlon Processor.
The Task Manager does not indicate anything odd in memory usage.
What could be causing this??
Posted on 2001-12-19 18:55:36 by nolpak

I use MASM32 v6 and it works perfectly. Even more; i can put the value i want.
E.g: hG DD 4294967295d ;that is the maximum value for a dword.
Posted on 2001-12-19 19:34:05 by CodeLover
Also very interesting.

I am writing a program that requires arrays of enormous size.
So I have to dynamically allocate them, but in the process
I did discover that anomaly of Assembler Time that I

In using the Memory Management functions of WIN32
(GlobalAlloc in fact) I also discovered the following

If I put the code to allocate a block of dynamic memory
in a Macro and called that Macro from another Macro,
I got a Memory Error from WIN.

However if I put that very same code in line where I had
been callingit from, no problems.

That also has me stumped.

I am using the latest version of MASM that I downloaded
from this site.


Posted on 2001-12-19 19:48:06 by nolpak
I've had this same problem when using large .data? structures. I don't know what MASM's problem is - it doesn't make since for this to take longer? I'm using MASM 7.0 - so, for now I'm looking at it like a M$ special feature. :)
Posted on 2001-12-20 00:23:04 by bitRAKE
Well, I am glad to see I am not alone, though it would be
better if it didn't happen.

I am able to use Dynamicallyh allocated memory but it akes

a lot of playing around.
Posted on 2001-12-20 07:57:10 by nolpak