Creating a binary?

Lars Ivar Igesund larsivar at igesund.net
Tue Aug 15 13:46:01 PDT 2006


Peter Thomassen wrote:

> Hi,
> 
> when compiling file.d using dmd, file begins like this:
> 
> ELF Header:
>   Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
>   Class:                             ELF32
>   Data:                              2's complement, little endian
>   Version:                           1 (current)
> 
> I think this is the reason why D programs are that big ... why aren't
> binaries created?
> 
> Peter

Ehm, this seems like the pretty printed version of an ELF header (which is
stored binary btw), much like the one produced by analytical programs like
readelf. All ELF binaries (whether executables, shared libs or object
files) start like this.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource & #D: larsivi



More information about the Digitalmars-d-learn mailing list