[Issue 7720] asm silent wrong code generation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 17 17:21:29 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7720


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com


--- Comment #1 from yebblies <yebblies at gmail.com> 2012-03-18 11:21:41 EST ---
It's not that simple.  IIRC "mov EAX, globalThreadLocal" moves the offset of
globalThreadLocal into EAX.  While this obviously isn't what you expected, this
is valid and useful.  How else would you get the offset?

After all, you're using the inline assembler.  The compiler will never be able
to protect you against writing incorrect assembly.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list