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

So I see many of you around here use

Name: Anonymous 2014-11-18 17:53

assembly. Is it just trollin' for /prog/, or do you actually perform your general-purpose programming in assembly? Is it really feasible to be a productive programmer by using just ASM?

Name: Cudder !MhMRSATORI 2014-11-19 4:38

>>12
That doesn't even take any additional instructions with x87.

Assuming next-pointer is first, which saves an instruction or two... and the head is in esi...

linked-list of doubles:
fldz
fooloop:
test esi, esi
jz done
lodsd
fld qword [esi]
faddp
mov esi, eax
jmp fooloop
done:


vs

linked list of ints:
fldz
fooloop:
test esi, esi
jz done
lodsd
fild dword [esi]
faddp
mov esi, eax
jmp fooloop
done:


Why the fuck you'd want to use a linked list for 4 or 8-byte things is the real problem here, but that's what you wanted so that's what you got...

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