>On 2001-12-08 16:37:05, Stefan wrote:
>I want to know how does an flat binary object look.
Like a regular binary file... lots of 1's and 0's
>Is it something similar with COM format?
Kind of, I suppose. In actuality, a flat binary
has no format. If you're familiar with assembly
language, think of a flat binary as your assembly
language file, translated exactly into machine
language. The only formatting you'll have is that
which you put into your assembly code yourself.
>I am asking because I didn't find any documentation about flat binary!
'cuz most OS developers just assume people know about
the flat binary "format"
I'm guessing you wanna jump to a flat binary
produced by a C/C++ compiler?
Unfortunately, you can't do this _per se_, because
flat binary files have no entry point. You're gonna
have to write some assembly language that'll
call your entry point (perhaps _main) and link that
with the C/C++ file, and output it to a binary.
If your assembly langauge code is first on the
command line, it'll be first to be outputted into
the binary, and so it'll be save to jump directly
to the beginning of the binary to execute it.
>Anybody ... help!!!
>Thanks
Well, hopefully that makes sense. I'm incredibly
tired and delerious right now, so... just smack me
if I screwed something up
jeff