News for hackers. Stuff that matters.
Re:Java's Atomic and volatile, under the hood on x86 by wtracy on Sunday November 18, 2012 @02:43AM (#4800170)
I did a double take when I saw the generated assembly reference %r8d.

Apparently this is a register that was added with AMD64. I guess that's what I get for not keeping up with x86 assembly over the last five years.

Re:Java's Atomic and volatile, under the hood on x86 by 0x0 on Sunday November 18, 2012 @08:03AM (#4800514)
That's not valid in standard 32bit x86 assembly, is it? So in fact this is actually x86_64 / amd64 assembly, almost a different architecture.

Edit: It is not valid according to http://www.codeproject.com/Articles/45788/The-Real-Protected... - so headlining with "x86" is misleading at best.

Re:Java's Atomic and volatile, under the hood on x86 by technogeek00 on Sunday November 18, 2012 @08:16AM (#4800532)
Correct the %r8 - %r15 registers were added by the x86_64 architecture and are 64-bit in length just as the others are now. They are commonly used for passing arguments to functions.
Re:Java's Atomic and volatile, under the hood on x86 by mjb on Sunday November 18, 2012 @11:47AM (#4800880)
The memory semantics are standard x86, but you are right that the registers are from x86_64 (and 64 bit mode at that). I'll update the article to clarify that point.
Re:Java's Atomic and volatile, under the hood on x86 by wolf550e on Sunday November 18, 2012 @04:34PM (#4801757)
At what point do we just call x86_64 "x86"? Do you for example have any x86 hardware that doesn't support x86_64? If so, what is it and what is it used for?

from http://en.wikipedia.org/wiki/X86-64

>> The first AMD64-based processor, the Opteron, was released in April 2003.

>> The first processor to implement Intel 64 was the multi-socket processor Xeon code-named Nocona in June 2004.

>> Intel's official launch of Intel 64 (under the name EM64T at that time) in mainstream desktop processors was the N0 Stepping Prescott-2M. All 9xx, 8xx, 6xx, 5x9, 5x6, 5x1, 3x6, and 3x1 series CPUs have Intel 64 enabled, as do the Core 2 CPUs, as will future Intel CPUs for workstations or servers. Intel 64 is also present in the last members of the Celeron D line.

>> The first Intel mobile processor implementing Intel 64 is the Merom version of the Core 2 processor, which was released on 27 July 2006.