News for hackers. Stuff that matters.
Re:8-Bit Scheme: What if the C64 was a Lisp Machine? by Retric on Sunday May 27, 2012 @10:38AM (#4030160)
It's not that hard to find cases in C where x=a+b; y=c+d; is slower than x=a+b; y=c+d;. What that happens has very little to do with C you really do need to dig down a level to understand what's going on. That said, the C compiler was optimized for a range of diffrent CPU's all with their own preferences so it will swap some instructions around to help you along, but it's not prefect which is IMO some of the oddities's associated with C.

68000 assembly is vary different from x86-64. x86-64 has a huge instruction set with a lot of legacy crap, multiple execution units even on a single core chip, does out of order instructions etc. Just poke around http://sandpile.org/ for a few minutes and you will probably learn something new. Then read up on L1 cache which is a vary strange beast that's fast etc.

There are no comments on this comment yet.