flat assembler
Message board for the users of flat assembler.
Index
> Windows > Section Alignment |
Author |
|
roticv 30 Oct 2004, 07:35
Actually it is
2,4,6,8,10, ... vs 2,4,8,16,32,64,... |
|||
30 Oct 2004, 07:35 |
|
Reverend 30 Oct 2004, 11:13
I am not completely sure, but I think that it is about power of 2. But there is another problem. On win95/98 these values are constant and are equal to 512 for FileAlignment and 4096 for SectionAlignment. Files compiled with other values, won't work on other than NT platforms. So if you want to remain compatible with older versions of windows, you should stay with these values. But we have a small advantage. Because as you know, if we have even only one byte in section, it will pad it with zeroes to these 512 needed by the FileAlignment. But, we can truncate these zeroes if they are in the last section. Such file will work fine on all windowses
|
|||
30 Oct 2004, 11:13 |
|
vid 01 Nov 2004, 21:50
yes, they must be power of two (which are also multiples of two )
|
|||
01 Nov 2004, 21:50 |
|
Kain 04 Nov 2004, 04:25
Thanks for the replies.
My understanding now is that it must be: 2^n Where n = { 1 .. 13 } |
|||
04 Nov 2004, 04:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.