News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

plain binary restrictions?

Started by fdig, February 04, 2006, 09:56:17 PM

Previous topic - Next topic

fdig

Hi!

Where is the difference between plain binary and eg elf binary?
Do i have any restrictions using only plain binary? Is plain binary more portable but without any bad restrictions?

which could be reason don't using eg. elf but plain binary instead?

thanks

dsouza123

elf is a portable object and binary format for linux and similar OSes.

MASM32 produces Windows 32-bit PE files using coff object files (omf object files are also possible).

fdig

So you can say plain binaries are right thing to make same executable running on different platforms?
i tried linking plain binary ($file binary : MS-DOS executable (COM))
under linux with ld, but it says "file format not recognized".
so far i am searching for good explain of differences between plain binary and elf binary / win32 binary yet.
i can't imagine if "plain binary" is binary format such ELF, COM or some art of compiling "layer".

regards

hutch--

fdig,

PE and ELF are just different object module formats. Various flavours of unix use different executable file formats and don't natively run msdos or windows files unless they have an additional layer that will recognise it. I have seen dos files run on linux and there is a wine emulator that is supposed to be getting better but they are finally diferent OS versions without much similarity so you cannot expect files from one to work on another unles there is some form of emulation software available on the target box that will run it.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

zooba

Have a look at this blog entry on The Old New Thing. He describes some of the base differences between executable binaries. :U

Mincho Georgiev

Mybe only the emulators are
Quoteright thing to make same executable running on different platforms
Or compile twice your program /for 2 different platforms/ .

fdig

Ok, i got it.
It's easiely - that's because of it's name - clear asm. No part of ELF / PE object file container (and surely not linked).

regards