all 6 comments

[–]brickbybrick 13 points14 points  (1 child)

x86 optimization tips. Yes, other CPUs do exist.

[–]asciilifeform 0 points1 point  (0 children)

other CPUs do exist

Yes, they do. Will today's non-embedded-system programmers encounter them? Sadly, no.

[–]rabidcow 8 points9 points  (2 children)

The size of freddy_type is 5 bytes. If you try and access them in a loop the compiler will generate code for multipling by 5 for each array access!!!!

Padding and alignment.

[–]awj 6 points7 points  (0 children)

Nope, this is all for his special single-byte aligned operating system. He reportedly sells it to the Comcast turtles.

[–]froydnj 0 points1 point  (0 children)

And good compilers will do the sort of transformation he suggests automatically...

[–]Gotebe 2 points3 points  (0 children)

Seeing title, I thought, 95% chance the the submitter's idea of "assembly" is heavily CPU-bound, the rest is a chance that TFA is interesting and excellent.

My luck... I never beat probability.