flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > fasm1 compilation process (memory point of view) |
| Author |
|
|
Tomasz Grysztar 05 Dec 2025, 14:53
You may find some information in my old unfinished guide, although only the preprocessor stage got covered in detail.
|
|||
|
|
Tomasz Grysztar 05 Dec 2025, 15:02
For the areas of fasm's internals that were not covered by these few chapters, there may still be something to dig out in the oldest threads on these forums, like this description of parsed source tokens.
|
|||
|
|
AsmGuru62 05 Dec 2025, 15:28
Is there any limits for the amount of code files included into FASM main file?
Please consider this main source specified on command line: Code: format PE GUI 4.0 entry start stack 4000h, 4000h include 'Win32W.Inc' include 'Macros.Inc' include 'Macro\If.Inc' ; --------------------------------------------------------------------------- section '.data' data readable writeable include 'Globals.Inc' ; --------------------------------------------------------------------------- section '.code' code readable executable include 'Module_001.Asm' include 'Module_002.Asm' ... include 'Module_999.Asm' ; --------------------------------------------------------------------------- ; PROGRAM ENTRY POINT ; --------------------------------------------------------------------------- align 32 start: ... Lets assume I have included some (a thousand) files. Are they limited in memory being consumed? Process has 2Gb for user code and data. Or, the memory specified on command line IS memory taken by FASM for included files and for data taken by Assembler itself? Is there anything like a disk cache where included files may be stored? Or, maybe each file is included and processed and then released? |
|||
|
|
revolution 05 Dec 2025, 15:58
All included files must fit into memory.
The memory limit is set by the -m argument and is limited to not more than 4GB. For some OSes the limit is lower, e.g. for Windows it can't be more than 2GB in normal boot mode. |
|||
|
|
AsmGuru62 05 Dec 2025, 18:37
Thanks, I was just curious.
The largest EXE file I ever made was around 128Kb. Included files count was around 80 of them, no more than few Mb in total room. |
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.