From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Erroneous code generation from GNAT or GCC?
Date: Tue, 30 Apr 2013 23:28:38 +0200
Date: 2013-04-30T23:28:38+02:00 [thread overview]
Message-ID: <op.wwdhx005ule2fv@cardamome> (raw)
In-Reply-To: lyr4hrrg7y.fsf@pushface.org
Le Tue, 30 Apr 2013 21:06:09 +0200, Simon Wright <simon@pushface.org> a
écrit:
> I was wondering what you meant by using constraints "a", "b", "c", "d"
> .. I now see [3] that these are i386 constraints for the a..d registers
> respectively, no wonder they gave wierd results on x86_64 where they
> mean something quite different!
They do exists with 64 bits instructions too. a is eax; b is ebx, etc, for
32 bits mode, and a is rax, b is rbx, etc, for 64 bits mode. There is also
ax/ah/al, ax/bh/bl, etc, as sub‑parts of the above, except ax, bx, etc, is
for 16 bits only, but ah, al, bh, bl are still a accessible in 32 bits
mode — I don't know if it's still the case in 64 bits mode.
--
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University
next prev parent reply other threads:[~2013-04-30 21:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-27 21:08 GNAT not generating any code for sub‑program: known bug? Yannick Duchêne (Hibou57)
2013-04-27 22:22 ` Yannick Duchêne (Hibou57)
2013-04-27 23:48 ` Yannick Duchêne (Hibou57)
2013-04-28 7:14 ` Simon Wright
2013-04-28 17:52 ` Yannick Duchêne (Hibou57)
2013-04-28 19:27 ` Yannick Duchêne (Hibou57)
2013-04-28 20:46 ` Simon Wright
2013-04-28 20:43 ` Simon Wright
2013-04-28 22:35 ` Erroneous code generation from GNAT or GCC? Yannick Duchêne (Hibou57)
2013-04-28 22:49 ` Yannick Duchêne (Hibou57)
2013-04-28 23:52 ` Yannick Duchêne (Hibou57)
2013-04-29 1:35 ` Yannick Duchêne (Hibou57)
2013-04-30 0:48 ` Yannick Duchêne (Hibou57)
2013-04-30 6:40 ` Simon Wright
2013-04-30 17:04 ` Yannick Duchêne (Hibou57)
2013-04-30 19:06 ` Simon Wright
2013-04-30 21:28 ` Yannick Duchêne (Hibou57) [this message]
2013-04-30 22:22 ` Simon Wright
2013-05-01 18:19 ` J-P. Rosen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox