Date: Tue, 17 Mar 1998 10:54:19 +0200 (IST) From: Eli Zaretskii To: Matthias Ho Chui Shiong cc: djgpp AT delorie DOT com Subject: Re: order of bytes written to files... In-Reply-To: <350EC38F.BD6@sap-ag.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 17 Mar 1998, Matthias Ho Chui Shiong wrote: > when i write the long value 49478 to a binary file using borland as > the compiler, the hexa > content of the file turn out to be 46 C1 00 00 which is out I want. > > However when I compile the same program under RHIDE with only > compiler option -m486, the > result written to the binary file is 00 00 46 C1. This is most probably some problem in your program. Please post here the shortest program that reproduces this behavior.