flat assembler
Message board for the users of flat assembler.
Index
> Windows > Alternative to rd? |
Author |
|
DOS386 06 Dec 2008, 07:25
bot wrote:
Depends from EXE type and OS. Put it into EXE's reserved area (AKA "B.S.S." ) or hog the memory with appropriate allocation features of the OS. |
|||
06 Dec 2008, 07:25 |
|
ManOfSteel 06 Dec 2008, 11:29
If this is for Windows, use one of the following APIs: GlobalAlloc, HeapAlloc, LocalAlloc, VirtualAlloc.
And the thread should be moved to the Windows forum. |
|||
06 Dec 2008, 11:29 |
|
LocoDelAssembly 06 Dec 2008, 14:19
If it is really Windows (in which case I'll move this to the Windows forum), then what you did is correct already, BUT you must make sure that "HashSpace rd 1048576" is the last thing in the source or PE section, if it is not then depending on whether the next lines of code define initialized data (or CPU instructions) or uninitialized data on the section the "rd 1048576" will act as "dd 1048576 dup (0)" or "rd 1048576" respectively.
|
|||
06 Dec 2008, 14:19 |
|
bot 06 Dec 2008, 19:19
I had moved it around and found that the big file size problem was magically solved but not understood why, thanks for your explanation Loco.
|
|||
06 Dec 2008, 19:19 |
|
baldr 07 Dec 2008, 13:12
bot,
No magic here, addition of uninitialized bytes in the PE section does increase VirtualSize but not necessarily increase SizeOfRawData for that section, hence file size (increase can occur when the section has initialized bytes somewhere after the aforementioned uninitialized bytes, as LocoDelAssembly mentioned). |
|||
07 Dec 2008, 13:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.