Re:Bootable Minecraft clone written partly in x86 Assembly
by vidarh on Monday June 17, 2013 @01:18PM
(#5894457)
My major introduction to C was hand optimizing a large C library compiled to M68000 assembly, while complaining incessantly about how shitty the compiler was, as I could at the time easily strip the code down to <40% of original size almost only be removing unnecessary usage of temporary registers... But these days C compilers generate tolerable code in most cases..
[ Parent
| on HN ]
Re:Bootable Minecraft clone written partly in x86 Assembly
by mrmekon on Monday June 17, 2013 @01:36PM
(#5894569)
I'm always amazed by the strange assembly generated by modern compilers. LLVM will auto-vectorize a routine into this awesome NEON SIMD masterpiece... and then throw in a bunch of completely redundant stack loads/stores and refuse to use any registers except r0 and r1! 0_o
You can tell where the devs with Ph.Ds in compiler design are putting all of their effort :)
Re:Bootable Minecraft clone written partly in x86 Assembly
by vidarh on Monday June 17, 2013 @01:57PM
(#5894724)
That's true. I guess my perspective has also changed in that I don't need every cycle to be used carefully any more - on that 7.16MHz Amiga, deleting those instructions mattered a lot more.. :)
I think that's also affecting where the optimization effort goes to a great extent - it's more likely to be invested on the type of code people are more likely to use in critical inner loops to be run in places that might saturate large numbers of cores...