flat assembler
Message board for the users of flat assembler.

flat assembler > Examples and Tutorials > Planned file format tutorials


A tutorial for which format would you like me to write first?
MZ, start with the basics
22%
 22%  [ 2 ]
PE, the popular option
44%
 44%  [ 4 ]
ELF, it does not have as many tutorials
11%
 11%  [ 1 ]
COFF object, there is even less written about this one
11%
 11%  [ 1 ]
Mach-O, it is hard to even get a good specification for it
0%
 0%  [ 0 ]
OMF, just so that some support for it is finally written (at least for fasmg)
0%
 0%  [ 0 ]
Other?
11%
 11%  [ 1 ]
Total Votes : 9

Author
Thread Post new topic Reply to topic
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6873
Location: Kraków, Poland
As a warm-up before perhaps writing a general introduction to assembly language with the assistance of fasmg I consider writing a series of small tutorials explaining various executable and object formats.

The main tool used during the tutorials would be fasmg, for its capability to generate everything we would ever need, including x86 code with relocations. Generators for various formats already exist for fasmg, but the point of the tutorials would be to write them from scratch, learning as much about the format as possible during the process.

I would like to write at least one, to see how well would it be received, and then decide whether to continue with the series. What format would you like to see explained this way?
Post 10 Jul 2018, 21:31
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15871
Location: 162173 Ryugu
Since PE is the most commonly used format, then this is the place to start IMO. Some of the less used parts can be safely ignored, also IMO.

MZ is "simple" of course, but many people can't easily run the 16-bit programs on their 64-bit OSes.
Post 11 Jul 2018, 01:14
View user's profile Send private message Visit poster's website Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 159
Location: Russian Federation, Sochi
I can`t say anything against PE as first one. So maybe elf be second (in case of elf: libraries are more interest then executables itself). And Mach-O third.
Post 11 Jul 2018, 05:31
View user's profile Send private message Send e-mail Reply with quote
Ali.A



Joined: 08 Jan 2018
Posts: 86
Other: .sys (device driver)
Post 11 Jul 2018, 20:01
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6873
Location: Kraków, Poland
Ali.A wrote:
Other: .sys (device driver)
Device drivers nowadays use PE format, nothing else.

Well, I could also put LE (which was used for Win9x device drivers among other things) on the list next to OMF. Both are mostly irrelevant today.
Post 11 Jul 2018, 20:28
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 © 2004-2018, Tomasz Grysztar.

Powered by rwasa.