delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/17/03:55:45

Date: Tue, 17 Mar 1998 10:54:19 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Matthias Ho Chui Shiong <chui DOT shiong DOT ho AT sap-ag DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: order of bytes written to files...
In-Reply-To: <350EC38F.BD6@sap-ag.de>
Message-ID: <Pine.SUN.3.91.980317105358.17844Q-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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