Date: Tue, 17 Mar 1998 19:01:39 +0200 (IST) From: Eli Zaretskii To: Yoav Shadmi cc: djgpp AT delorie DOT com Subject: Re: order of bytes written to files... In-Reply-To: <350E6F64.2ECC@nettaxi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.