flat assembler
Message board for the users of flat assembler.
Index
> Windows > Executable size with WinAPI? |
Author |
|
AsmGuru62 10 Jan 2017, 22:29
It is expected.
By default the EXE file is made of sections. Section size is a multiple of say 512 bytes, so 4 sections will make 2Kb, even if each section has few useful bytes inside. You can reduce the EXE size by combining sections. Search the forum - you will find the details. |
|||
10 Jan 2017, 22:29 |
|
jazz 10 Jan 2017, 22:33
Ah, OK. Thank you!
|
|||
10 Jan 2017, 22:33 |
|
Mikl___ 11 Jan 2017, 00:59
jazz,
Code: format PE GUI include 'win32ax.inc' ; import, code, data in the same section invoke MessageBox,NULL,wText,wTitle,MB_OK retn wTitle db 'Iczelion Tutorial #2:MessageBox',0 wText db 'Win32 Assembly with FASM is Great!',0 data import library user32,'USER32.DLL' import user32,\ MessageBox,'MessageBoxA' end data Code: PE-header|code, data, import| zeros |size of exe ---------+------------------+---------+---------- 512 bytes| 169 bytes |343 bytes| 1024 byte
|
|||||||||||
11 Jan 2017, 00:59 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.