Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > push ebx utility in SSE2 asm...
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 26th March 00:08
olivierl
External User
 
Posts: 1
Default push ebx utility in SSE2 asm...



There is a bug in VC6 with optimizations. I ran into this annoying
problem quite a few times now (Don't know if it's fixed in .net).

What happens is that if you use a __declspec(align) directive anywhere
above the inline assembly, and reference a global variable in the
assembly code, VC seems to sometimes 'forget' that ebx was modified,
and doesn't save/restore it.

This can lead to highly unpredictable results that only happen in
release builds, and a crash will occur only if a caller to the
function with inline asm was actually using the ebx register at that
time.

I doubt MS will release a service pack for this, so it's something
you'll have to live with. Try not using ebx, or save/restore it.
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666