OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 2:54 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Regarding For Assembly Language
PostPosted: Fri Jan 15, 2021 1:26 pm 
Offline
Member
Member

Joined: Fri Nov 22, 2019 5:46 am
Posts: 590
nexos wrote:
PeterX wrote:
bzt wrote:
Now where did you get that? FASM can generate lot more kind of object files than NASM. Look up "format" directive in the documentation.

http://flatassembler.net/docs.php?artic ... _manual#14 says:
Quote:
Currently the only available choice is "format binary"

I hope this is outdated and false.

Greetings
Peter

I think that manual you pointed to is for fasmg.

Thanks forcorrecting me. You are right, it is about "Fasm g"
The correct manual is this:
http://flatassembler.net/docs.php?article=manual#2.4
which says what bzt said (PE, COFF, ELF).


Top
 Profile  
 
 Post subject: Re: Regarding For Assembly Language
PostPosted: Sat Jan 16, 2021 12:53 pm 
Offline
Member
Member
User avatar

Joined: Thu Oct 13, 2016 4:55 pm
Posts: 1584
PeterX wrote:
Thanks forcorrecting me. You are right, it is about "Fasm g"
The correct manual is this:
http://flatassembler.net/docs.php?article=manual#2.4
which says what bzt said (PE, COFF, ELF).
Yes, and just for the records, fasmg can output in many formats too (probably even more than fasm). From the doc
Quote:
The only built-in instruction that resides in that namespace is the "binary", but additional ones may be defined in form of macroinstructions.
That's because fasmg's philosophy is that it has only the very essence of an Assembler, and provides everything else (instruction sets as well as output formats) through macros. Here's a tutorial on how to add new output formats to fasmg, exampled with PE+ and ELF. (Just for the records, fasmg is shipped with several include files for many output formats, and you can download many more. Here's the include file generating MachO and Android Dalvik bytecode for example)

Cheers,
bzt


Top
 Profile  
 
 Post subject: Re: Regarding For Assembly Language
PostPosted: Thu Jan 21, 2021 1:27 am 
Offline
Member
Member
User avatar

Joined: Thu Jun 04, 2009 11:12 pm
Posts: 281
Hi Ankit,
viewtopic.php?f=13&t=37193
Was a good discussion with some off topic posts.
Fasm is a respected and well documented assembler. However, I would say do whatever that fits your boat.
--Thomas


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 27 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group