Mail Archives: djgpp/2015/09/02/11:53:34
> Date: Wed, 2 Sep 2015 18:18:56 +0300
> From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
>
> On 9/2/15, Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com]
> <djgpp AT delorie DOT com> wrote:
> >> Date: Wed, 2 Sep 2015 10:18:24 +0300
> >> From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]"
> >> <djgpp AT delorie DOT com>
> >>
> >> > -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.
> >>
> >> I have a source that gives the following asm output difference
> >>
> >> --- g_weapon.s
> >> +++ ../../g_weapon.s
> >> @@ -4526,7 +4526,7 @@
> >> .long 1065353216
> >> .p2align 3
> >> LC5:
> >> - .long -1717986918
> >> + .long 2576980378
> >> .long 1069128089
> >> .p2align 2
> >> LC13:
> >
> > They are again the same bit pattern, only represented as a signed or
> > unsigned value.
> >
> >> ... and results in different *.o.
> >
> > Can you disassemble the *.o files and show the differences?
> >
>
> See attached tarball. The source in question is here:
> https://bitbucket.org/neozeed/q2dos/ (see: game/g_weapon.c )
Looks like the only difference is some alignment issue, perhaps the
64-bit compiler wants to align stronger.
Could someone who feels more at home with assembly please take a look?
DJ?
- Raw text -