delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/09/02/01:39:58

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=9Xn/NXc+oKZce+aX6PAB+6Ih4VY7AVFjqriHg+JjObw=;
b=Ligmqj3gT4Ue2pKwtbeKfqLgEUZpd6FBGdOxGvIfP3e/BHa0XV8QKEFWiTSHh5GQ3B
fbU9yccUp0lt3p3kg8YDpO+eMg3nH3v5hzBfVAz3tz52wdbZFpYOgVXMlm6qnSUrGaDD
rF8vp1lz0zU1wL1DIdXrLErzoIvwt0rXB/SAAjhoNW4ObDk270O9/I+i88yC/tWJVqH4
eDmejiZ8fLM3jp1UWEDFnpxYhyLapZMd7uPwpxgbJv+Syp9INfIsOBq72cx6iz/R7kW3
q89MLOGW23tcHgenUawbGxJAUZVrs7zw5NDXdr3xTgDCoUfDR3zO0VqjWuBwMTeo7Vfi
ddXQ==
MIME-Version: 1.0
X-Received: by 10.202.56.135 with SMTP id f129mr17751581oia.37.1441170644203;
Tue, 01 Sep 2015 22:10:44 -0700 (PDT)
In-Reply-To: <805416689.150187.1441167671558.JavaMail.yahoo@mail.yahoo.com>
References: <CAA2C=vBjWACN4ZNsYTeCWXOr9vU9s2s23ZaXvLuCgE=OEWK1Vg AT mail DOT gmail DOT com>
<805416689 DOT 150187 DOT 1441167671558 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com>
Date: Tue, 1 Sep 2015 22:10:44 -0700
Message-ID: <CAB9Rao94An6A=Znrg0Um05dgr8UNcwX53p9oDCEdfgENyN_34w@mail.gmail.com>
Subject: Re: different binary output with 32- and 64-bit hosted compilers
From: "Louis Santillan (lpsantil AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
To: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

The cross compilers will.  See Andrew Wu's binaries [0].


[0] https://github.com/andrewwutw/build-djgpp/releases

On Tue, Sep 1, 2015 at 9:21 PM, Peter Bailie (prbailie AT yahoo DOT com) [via
djgpp AT delorie DOT com] <djgpp AT delorie DOT com> wrote:
> I'm not sure but from your email is there a djgpp that runs on a 64 bit
> operating system?   The current djgpp source files that I have will not run
> on my windows 7 64 bit operating system.  Thank you for any info you can
> give me.
>
>
>
> On Tuesday, September 1, 2015 8:22 AM, "Ozkan Sezer (sezeroz AT gmail DOT com) [via
> djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> wrote:
>
>
> 32-bit (i686-linux fedora-9) and 64-bit (x86_64-linux fedora-20) hosted
> djgpp-targeting compiler generates different output for some sources.
> This happens with djgpp source itself too, and it isn't a nice thing
> and was not an expected thing for me. Did the following with gcc-3.4.6:
>
> Compiled djgpp-cvs with a 32- and 64-bit hosted toolchain (gcc-3.4.6
> and binutils-2.25.1), then did:
> diff -urp --exclude=*.d --exclude=id_*.o --exclude=stub* \
>   --exclude=*.tex --exclude=*.exe --exclude=djasm.c \
>   32/src 64/src > 64.diff
> ... which results in this:
>
> Binary files 32/src/debug/fsdb/expr.o and 64/src/debug/fsdb/expr.o differ
> Binary files 32/src/libc/ansi/stdio/doprnt.o and
> 64/src/libc/ansi/stdio/doprnt.o differ
> Binary files 32/src/libc/ansi/stdlib/strtoll.o and
> 64/src/libc/ansi/stdlib/strtoll.o differ
> Binary files 32/src/libc/compat/stdlib/rand48.o and
> 64/src/libc/compat/stdlib/rand48.o differ
> Binary files 32/src/libc/posix/sys/stat/lfilelen.o and
> 64/src/libc/posix/sys/stat/lfilelen.o differ
> Binary files 32/src/libc/posix/unistd/lseek.o and
> 64/src/libc/posix/unistd/lseek.o differ
> Binary files 32/src/libm/math/llroundl.o and 64/src/libm/math/llroundl.o
> differ
> Binary files 32/src/libm/math/lroundl.o and 64/src/libm/math/lroundl.o
> differ
> Binary files 32/src/libm/math/roundl.o and 64/src/libm/math/roundl.o differ
> Binary files 32/src/libm/math/trunc.o and 64/src/libm/math/trunc.o differ
>
> So I added -save-temps to the relevant sources' EXTRA_CFLAGS in the
> makefiles and repeated the experiment, and ran diff like:
> diff -urp --exclude=*.o --exclude=*.i --exclude=*.d --exclude=id_*.o \
>   --exclude=stub* --exclude=*.tex --exclude=*.exe --exclude=djasm.c \
>   32/src 64/src > 64x.diff
>
> ... which generated the attached output (Attached: 64x.diff.gz)
>
> Didn't try with any other gcc version (at least not yet).
> Can anyone reproduce?
>
> --
> O.S.
>
>

- Raw text -


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