flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 29 Mar 2009, 02:47
If you use format PE or format MZ then the output defaults to .exe
It is all in how you set the format. |
|||
![]() |
|
magicyte 29 Mar 2009, 03:03
I don't quite understand your reply... How do I set this 'pe' or 'mz' format for the compiler?
|
|||
![]() |
|
LocoDelAssembly 29 Mar 2009, 03:42
|
|||
![]() |
|
magicyte 29 Mar 2009, 04:59
Thank you both! However, I noticed it makes the .exe considerably larger for such a small purpose. Is this supposed to happen?
|
|||
![]() |
|
DOS386 29 Mar 2009, 05:03
> Is there any possible way of changing the default output file from .com to .exe in fasm?
Theoretically YES: format binary as "EXE" (but .COM default is only with use16 + org $0100 - so no Win32 anyway). > I program in win32 mostly all of the time Then you don't have this problem, you will use format PE only and it does default to EXE. Note that format MZ is not a Win32 executable, and .COM even less. > make a version with the default file as a selection in the IDE... NO. SSOO http://flatassembler.net/docs.php?article=design > noticed it makes the .exe considerably larger larger than what ? > Is this supposed to happen? Again, format PE is obligatory for Win32 programming, except you use format binary to brew your PE manually or use a linker. And NO, there is no way to make a PE Hello World below 1 KiB without very bad hacks. PE in the only executable format natively supported in Win32. Last edited by DOS386 on 29 Mar 2009, 05:14; edited 5 times in total |
|||
![]() |
|
LocoDelAssembly 29 Mar 2009, 05:08
Yes, because the COM files only include what your source has whereas the "format MZ" also includes information of the MZ executable format itself.
However, what OS are you targeting? Do you what a DOS executable or a Windows executable? If the latter is the case then your only option is "format PE" (and the extra options, check manual), it makes an EXE but this one needs Windows to run and under DOS it will say "this program requires Windows to run". |
|||
![]() |
|
LocoDelAssembly 29 Mar 2009, 05:12
Quote:
But take in mind that fasm will format it as plain binary instead the expected MZ format. |
|||
![]() |
|
DOS386 29 Mar 2009, 05:23
> instead the expected MZ format.
For Win32 programming you need Win32 examples, so things like org 100h or int 21h or pop ds are a strong sign that you picked wrong examples. ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.