[Mono-list] Might Have Found A Way To Get GCC .NET !
Fri, 23 Aug 2002 18:00:24 +0300
> From what they say
> it's practically impossible to compile code from the GCC AST to stack
> based code.
AFAIK, both egcs-jvm & picoJava backend for GCC use operand stack to simulate
register-based machine on top of a stack-based one.
This usually maps one reg-based instruction onto 4 and more stack opcodes.
It's possible then to apply bytecode optimizer to the resulting code (to help interpreters
and real stack CPUs, perhaps less important for JITted code).