flat assembler
Message board for the users of flat assembler.

Index > Main > What formats are available?

Author
Thread Post new topic Reply to topic
Ben321



Joined: 07 Dec 2017
Posts: 70
Ben321 01 Aug 2019, 19:11
In addition to outputting EXE and DLL files, is it also possible to output win32 object files (aka COFF files) to be linked via an external linker? In general, where can I find a list of available output formats?
Post 01 Aug 2019, 19:11
View user's profile Send private message Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 798
Location: Russian Federation, Sochi
ProMiNick 01 Aug 2019, 20:59
All existing formats are available: pdf, bmp, mp3, wav, etc. not only executable formats.
If thou asking about predefined formats in fasm1? so they are PE and PE+ (file extension on thour taste EXE, DLL, SCR, ...), pure MZ - (extension too EXE but only DOS header in, no new exe header such as PE inside). then COFF & MSCOFF and their 64 bit versions. then ELF for linux in variations as object or as executable in both 32 & 64 bit variant.
In case of fasmg there is no predefined formats but we could speak about formats that thou will have out of the box (they already realized in fasmg in official package or in topics of this forum).
In addition to fasm1 predefined formats ara machO format for executables and objects but only in 32 bit form. Described in begin of topic pdf, bmp, wav & mp3 are already realized in fasmg too.
java js files realized too.
I missed COM - it is exists in fasm1 & fasmg too.

In case of fasm1 to formats exist one limitation: in one file couldn`t be intermixed sections & segments - so machO couldn`t be realized and rare cases of elf where sections and segments can be mixed can`t be realized too.
But if thou not going to make general macros for building machO - if thou ready to manualy calculate segment & sections offsets - thou could create even machO in fasm1 - but one editing of code could force thou recalculate this things manualy again.

In case of windows thou could create even activeX files with COM objects inside.
Post 01 Aug 2019, 20:59
View user's profile Send private message Send e-mail Reply with quote
Ben321



Joined: 07 Dec 2017
Posts: 70
Ben321 02 Aug 2019, 05:33
So in the FORMAT line at the start of an ASM file intended to be compiled with FASM, what are the available names I can specify for the format. Is there a list of these somewhere?
Post 02 Aug 2019, 05:33
View user's profile Send private message Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 798
Location: Russian Federation, Sochi
ProMiNick 02 Aug 2019, 06:21
subchapter 2.4 formatter directives of file "fasm.pdf" (if thou download fasm - it will be inside too)

format binary - any format that thou build manualy. others are predefined.
Post 02 Aug 2019, 06:21
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8349
Location: Kraków, Poland
Tomasz Grysztar 02 Aug 2019, 07:50
ProMiNick wrote:
subchapter 2.4 formatter directives of file "fasm.pdf" (if thou download fasm - it will be inside too)
Or you can just browse the section 2.4 on this website.
Post 02 Aug 2019, 07:50
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.