Re: Do you understand .exe file format? by mayayana
mayayana
Mon Jan 07 07:48:36 PST 2008
It's hard to know how they're different from looking
at them in Notepad. A PE file (portable executable,
which includes EXE, DLL, OCX) has a structure that
starts with a very complex header, defining information
about how and where the file runs, and also includes a sort
of index of the file's contents. But that data is mainly
present as byte groups representing numeric values.
You can't just read it. It has to be deciphered. Most of
the rest of the file typically consists of native code
instructions, the actual code instructions that run when
you run an EXE. That's also not readable in any normal
sense.
Near the end of an EXE file there's usually a Resource
Table which can contain bitmap images, icons, strings,
etc. If two EXEs are identical in function it's likely that
the larger one has extra resources that the first doesn't
have (though that's not guaranteed).
It may be that all you can find out for sure is that the
author of the EXE is very sloppy about setting versions
on their product. :)
> I have down loaded two versions of tidy.exe (they are from different
sites)
>
> One is about 300K and the other is about 100K long.
>
> The program has the option of asking for the version.
>
> They each reply the same version!
>
> I looked with notebook and each start out with about 10 lines of
gibberish.
>
> Then the smaller one has about 10 blank lines followed by many gibberish
> lines.
>
> The larger one has about 30 blank lines followed by many gibberish lines.
>
> They appear to run the same.
>
> Can you explain what might cause the difference in the files?
>
>
>
> Thanks in advance
>
>