|
|
nemesis wrote:
> Look up Stalin Scheme. A heavily agressive optimizing compiler for
> Scheme that quite a few times generates C code that beats hand written C
> code. If you look at the C source it outputs, you'll be shocked by how
> badly it treats C as truly portable assembly. Lots of structs and loop
> unrolls. Worthy of the name.
Sure. It generates code you wouldn't dream of spending the time to generate
by hand. But it's still not going to be faster than the best C that can be
written for that platform. (That's kind of a "duh, no kidding" statement,
sure.)
Contrast with something that generates machine code natively, which might
output code that your C compiler would never output, for example.
If your front-end outputs C, you're never going to out-perform the C code it
generates. If your C compiler can't take advantage of the GPU to do math or
can't hook into interrupt vectors directly or ..., then your language isn't
going to do better.
--
Darren New, San Diego CA, USA (PST)
There's no CD like OCD, there's no CD I knoooow!
Post a reply to this message
|
|