Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

It's 2016 and COMPILERS ARE STILL STUPID

Name: Cudder !cXCudderUE 2015-12-31 22:29

Just analysing a device driver for hardware few months old... as usual, it's as bloated as a week-old dead pig overall but then I come across pieces like this:

shl ecx, 4
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd
mov ecx, edx
and ecx, 3
rep stosb


:facepalm:

Name: Cudder !cXCudderUE 2018-01-21 17:02

It's 2018 and COMPILERS ARE STILL STUPID

xor ecx, ecx
xor ebp, ebp
mov cx, [edi]
mov bp, [edi+2]
add edi, 2
xor eax, eax
add edi, 2
mov ax, [edi]
add edi, 2


This compiler has apparently never heard of movzx or movsx.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List