flat assembler
Message board for the users of flat assembler.

Index > Main > newbie question about "flat binary"

Author
Thread Post new topic Reply to topic
asinine



Joined: 15 Feb 2004
Posts: 3
asinine
This may be a stupid question, but fasm outputs "flat" binaries. What's a flat binary compared to a normal one? Does it have anything to do with flat vs. segmented memory models?
Post 15 Feb 2004, 00:41
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
yes, it means it's default and only memory model of FASM is flat (pure 32bit).
It is much better than MASM's fooling with useless memory models.
Post 15 Feb 2004, 14:59
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Ralph



Joined: 04 Oct 2003
Posts: 86
Ralph
I would say it has less to do with the memory format and more with the 'philosophy' of fasm if you can call it that. Fasm can easily handle multiple segments, be they physical memory segments or segment based binary formats. Fasm does not worry about specific environment requirements, and thus lets you assemble a single instruction, or even none at all without complaining. Thus you can produce 'flat' binary files that contain no header, segment information, etc, which is great because it makes porting/integrating fasm a lot easier and gives you the ability to write small proof-of-concept code, boot sector code, code for different operating systems, position-independant-code, etc.
Post 15 Feb 2004, 21:59
View user's profile Send private message Reply with quote
asinine



Joined: 15 Feb 2004
Posts: 3
asinine
Thanks for the info guys. It's helped clear thing up for me.
Post 15 Feb 2004, 23:08
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.