delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/09/02/02:15:16

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: different binary output with 32- and 64-bit hosted compilers
Date: Wed, 2 Sep 2015 06:02:37 +0000 (UTC)
Organization: Aioe.org NNTP Server
Lines: 28
Message-ID: <ms63dr$3k4$1@speranza.aioe.org>
References: <CAA2C=vBjWACN4ZNsYTeCWXOr9vU9s2s23ZaXvLuCgE=OEWK1Vg AT mail DOT gmail DOT com> <83d1y2cf7e DOT fsf AT gnu DOT org> <CAA2C=vCu9fjcEDr_3_FLMXoRzuvmXw57zRkwchbYRD1SpqS4NA AT mail DOT gmail DOT com>
NNTP-Posting-Host: WLZdEp4S2PR09rkVF8ILdg.user.speranza.aioe.org
X-Complaints-To: abuse AT aioe DOT org
User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.2.0-4-amd64 (x86_64))
X-Notice: Filtered by postfilter v. 0.8.2
Bytes: 2003
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> wrote:
...
> Binary files 32/src/debug/fsdb/expr.o and 64/src/debug/fsdb/expr.o differ
> diff -urp '--exclude=*.d' '--exclude=*.i' '--exclude=id_*.o'
> '--exclude=stub*' '--exclude=*.tex' '--exclude=*.exe'
> '--exclude=djasm.c' 32/src/libc/ansi/stdio/doprnt.s
> 64/src/libc/ansi/stdio/doprnt.s
> --- 32/src/libc/ansi/stdio/doprnt.s     2015-09-01 20:57:08.000000000 +0300
> +++ 64/src/libc/ansi/stdio/doprnt.s     2015-09-01 21:06:18.258481451 +0300
> @@ -4788,85 +4788,85 @@ _NAN_REP.3610:
>         .ascii "NAN\0"
>         .p2align 4
>  _powtenneg:
> -       .long   -858993459
> -       .long   -858993460
> +       .long   3435973837
> +       .long   3435973836


-858993459 and 3435973837 is the same number on a 32-bit
two-complements machine (you'll get the same bit pattern in the
memory). Likewise -858993460 and 3435973836.

I say all the others are as well but I haven't verified that.


-- 
MartinS

- Raw text -


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