flat assembler
Message board for the users of flat assembler.
Index
> Windows > Is my understanding about PE's File Alignment correct? |
Author |
|
revolution 13 Aug 2024, 10:53
The Windows loader has some restrictions that you need to comply with.
You are correct that the formal PE spec can accommodate different alignments, but the standard Windows loader doesn't accept all of those configurations. |
|||
13 Aug 2024, 10:53 |
|
uu 13 Aug 2024, 11:09
revolution wrote: The Windows loader has some restrictions that you need to comply with. Thank you for the answer, I will only take my chance during size coding competition. |
|||
13 Aug 2024, 11:09 |
|
revolution 14 Aug 2024, 02:08
There is also the native PE format.
Code: ~ cat test.asm format pe TYPE entry $ ret ~ fasm -d TYPE=native test.asm flat assembler version 1.73.31 (16384 kilobytes memory) 1 passes, 448 bytes. ~ fasm -d TYPE=gui test.asm flat assembler version 1.73.31 (16384 kilobytes memory) 1 passes, 1024 bytes. ~ fasm -d TYPE=console test.asm flat assembler version 1.73.31 (16384 kilobytes memory) 1 passes, 1024 bytes. ~ |
|||
14 Aug 2024, 02:08 |
|
uu 14 Aug 2024, 05:11
revolution wrote: There is also the native PE format. Small, but native is generating .SYS file, which is driver I think. |
|||
14 Aug 2024, 05:11 |
|
revolution 14 Aug 2024, 05:35
Tell the competition organiser to run your code as a kernel mode driver.
Nothing can possibly go wrong. |
|||
14 Aug 2024, 05:35 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.