I found this line in code generated by the MSVC compiler from Visual Studio 2008, while trying to figure out what seems to be a compiler bug:
movss dword ptr [this], xmm2
Although I do not think it is related to the bug I was looking for, I was like what the bleep? Storing a float value (completely unrelated to this
btw) in [this]
?
What exactly does that line do? Because I sure can't make sense of it! Or is the disassembly view playing tricks on me?
Providing some more assembly and/or source code would really help, but I see at least two possibilities:
this
is not a this pointer, but just a random register pointing to some memory area. The disassembler named it such because it was used as a this pointer previously in the function or for some other reason.
this
does point to a class instance, and the class has a floating-point field as a first member and no virtual methods.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With