You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The decompiler has access to the sizes of the different base types but doesn't really seem to make use of this knowledge. A good example is when a type like long naturally required more than a single register to represent it, the decompiler ends up producing code like CONCATXX(*((int)(long *)&LONG_103065ce + X),(int)*(long *)&LONG_103065ce) because, in this case, two stack pushes are required as 2 registers/memory locations are needed/used. This is exacerbated when addition/subtraction is performed as assembly such as this x86 extract ADD word ptr [g_nSumDo10ms_65d2],0x1; ADC word ptr [g_nSumDo10ms_65d2+X],0x0 produces
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The decompiler has access to the sizes of the different base types but doesn't really seem to make use of this knowledge. A good example is when a type like
long
naturally required more than a single register to represent it, the decompiler ends up producing code likeCONCATXX(*((int)(long *)&LONG_103065ce + X),(int)*(long *)&LONG_103065ce)
because, in this case, two stack pushes are required as 2 registers/memory locations are needed/used. This is exacerbated when addition/subtraction is performed as assembly such as this x86 extractADD word ptr [g_nSumDo10ms_65d2],0x1; ADC word ptr [g_nSumDo10ms_65d2+X],0x0
producesmaking any subsequent arithmetic harder to follow. (In the
C
above I replaced the hex representation of-2
with that value.)Beta Was this translation helpful? Give feedback.
All reactions