Speelgoedmannetje wrote:
bloodline wrote:
I doubt a human could make code as efficient as a compiler on a modern CPU... Modern CPU's have hidden register renaming schemes, instruction scheduling, caching policies... the list is endless... I doubt you could know all the optimization rules now!
Ehm, I see it totally different.
Compilers have can compile anything, they're made to expect everything, so they have to exclude anything else, so to say.
Your code will always be completely different from compiler code because the compiler isn't and cannot be aware of what you want.
While you are!
Yeah, I understand what you are saying. But the whole RISC idea eliminates your options, you only really have a limited number of ways to implement any particular algorithm... This allows the chip designers to optimize the CPU's operation.
Compilers and CPUs are note developed in isolation anymore. They are both working to the same goal... more efficient execution.
Ok, there is the argument that the compiler does have to generalize... But after looking at the source code for Micropolis (the original SimCity), I have no idea how it could even be written in ASM! Working in a high level language gives you far more power over complex programming!
Yes, the compiler can make things a hell of a lot faster according to mathematic rules and special instructions. But it can't make the code more straightforward.
Modern CPUs aren't meant to be programmed directly any more.
Anyway, to drag this back on topic... No, I would hate to have to go back to the 8bit days... For me working in C++ using Apple's Xcode IDE is far more comfortable.