flat assembler
Message board for the users of flat assembler.
Index
> Main > resulting binary size is weird |
Author |
|
r22 22 Sep 2014, 11:16
The "R" in "RB" stands for "reserved". If it appears at the end of the data section it will be initialized at runtime, however, when there is defined data after it, this forces it to be initialized at compile time.
Code: ;;2 bytes compiled rb 1 db 'h' Code: ;;1 byte compiled db 'h' rb 1 |
|||
22 Sep 2014, 11:16 |
|
gens 22 Sep 2014, 18:04
nice explained, thx
hmm i have 15 includes 6'th is ply.inc where that 100MB reserve is defined model.inc is last and is where a macro defined in ply.inc is used thou the reserved memory declaration is separate from the macro so ply.inc is 6'th and there are plenty of db, dd, dq and such in includes after it but fasm still puts it last and makes a 22k binary but if i put model.inc as anything but last it will be 100MB, even thou the data is separate from the macro i thought includes are flat too |
|||
22 Sep 2014, 18:04 |
|
shutdownall 22 Sep 2014, 18:45
I guess it is depending on sections.
If following includes are only code this would maybe not affect the data section. |
|||
22 Sep 2014, 18:45 |
|
gens 22 Sep 2014, 20:20
almost all of them are
------------- data ------------- macros ------------- so when i include them in a readable/writeable section i get the data there and macros where ever i use them |
|||
22 Sep 2014, 20:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.