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 2016-01-01 13:10

>>12
Then how the fuck do Intel's compiler and all the Asm programmers manage to do it? Blaming the architecture for your shitty codegen is just a poor excuse for your stupidity being at fault. I've elaborated before on this board and the old one, it seems the majority of compiler writers are stuck in some sort of academic cargo-cult especially around things like register allocation and instruction selection. Maybe when they stop acting like mindless sheep, so will their compiler output.

http://bbs.progrider.org/prog/read/1438215413
http://bbs.progrider.org/prog/read/1436562973

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