flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Why does FASM use so much memory? Goto page Previous 1, 2 |
Author |
|
windwakr 02 Sep 2009, 05:25
He said
"both fasm for DOS and for Win32 console use the amount based on what is available by default." What is "fasm.exe" out of "flat assembler 1.68 for DOS" then? |
|||
02 Sep 2009, 05:25 |
|
revolution 02 Sep 2009, 05:28
Your settings for the DOS emulator (NTVDM) will dictate how much memory is available to DOS programs.
Win32 console is a 32bit process and can directly query the API for memory availability. |
|||
02 Sep 2009, 05:28 |
|
windwakr 02 Sep 2009, 05:31
Ah, I see. Didn't know the DOS emulated programs didn't have access to all the memory.
Here's the output on the Win32 console one: Code: [BLAH] >fasm test.asm flat assembler version 1.68 (1110194 kilobytes memory) 1 passes, 8043 bytes. |
|||
02 Sep 2009, 05:31 |
|
vid 02 Sep 2009, 10:54
Quote: Anyway, maybe it could be possible to just reserve the address space in Windows and catch the page fault exception in order to allocate new pages in the middle when needed? But I still doubt it would give any advantage, it would probably only decrease the performance and not help with anything. Nice idea. If there was some serious issue with FASM eating too much memory, someone might welcome this as an extra option (command line extra switch). But I am not sure either if there is use for that. |
|||
02 Sep 2009, 10:54 |
|
Borsuc 02 Sep 2009, 14:58
windwakr wrote: Ah, I see. Didn't know the DOS emulated programs didn't have access to all the memory. I had around 700MB free at the time, now it uses almost 2GB Question: does this trash my cache that is in RAM? _________________ Previously known as The_Grey_Beast |
|||
02 Sep 2009, 14:58 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.