delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/17/12:02:56

Date: Tue, 17 Mar 1998 19:01:39 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Yoav Shadmi <yoav AT nettaxi DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: order of bytes written to files...
In-Reply-To: <350E6F64.2ECC@nettaxi.com>
Message-ID: <Pine.SUN.3.91.980317185848.19045N-100000@is>
MIME-Version: 1.0

On Tue, 17 Mar 1998, Yoav Shadmi wrote:

> If I'm not mistaken the COFF binaries (produced by DjGPP) have
> big-endian byte ordering (i.e. the most significant byte/word comes 
> first) in them, while most x86 binaries (Like those produced by Borland 
> C) use the little-endian ordering.

If I understand correctly the original message, the order of bytes in the 
COFF binaries themselves has nothing to do with the problem.  The 
original message described a program which, when compiled with Borland 
and DJGPP produced different results writing integer values to a binary 
file.  The format of the executable file has nothing to do with that.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019