[Issue 5591] EBX register not preserved when calling stdcall function pointer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 17 13:26:36 PST 2011


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |INVALID


--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> 2011-02-17 13:23:59 PST ---
This is a misunderstanding of the calling conventions. Examination of the asm
produced by the compiler shows that, indeed, EBX is preserved across all three
functions.

However, the compiler is not obliged to preserve the contents of EBX from
statement to statement within a function, which is what your code is expecting.

This is not a bug.

-- 
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