News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

labelName db 100000h dup(?)

Started by catm, July 30, 2006, 01:02:41 PM

Previous topic - Next topic

catm

the fallowing code:


....
.data?
labelName db 100000h dup(?)
....



use the masm32 ml 6.14 to compile the code,is will costs a very very long time (ml 8.0 also)

the code:
....
.data?
labelName db 20000h dup(?)

takes nearly double time of code:
...
.data?
labelName db 10000h dup(?)


the code:
...
.data?
labelName db 100000h dup(?)

not only takes 9 times more but 100+(i have no time to wait)

any buddy can tell me how to declare a buffer have  more than 100000h bytes in data or data? segment?

hutch--

Its a known oddity in MASM as it is rarely used. Dynamic memory allocation is a better choice in almost every instance.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

zooba

Agree with Hutch, however IIRC you can assemble to OMF (use the /OMF assembler command) instead of COFF to get around it.

For something that big you should really just use the virtual memory functions (VirtualAlloc/Lock/Free/etc).

Cheers,

Zooba :U

LechooY

Randy Hyde has write on this bug in his book.  :U