Hello, I'm Cristian an italian developer, sorry for my english but is
not my first language.
Long time ago I wrote a compiler
(
http://freeforumzone.leonardo.it/discussione.aspx?idd=2925995 )
I founded very useful to allow one specific command on my compiler :
asm
what this command do?
it simply output the assembly code in the assembly file I generate,
in this way I can extend the language simply creating some basic
functions that call assembly language,
then once i have that function i could use it on my language.
How this command (or a command that can call external c functions) can
be useful into your project?
In this way you can write some basic routine to , for example, draw on
the screen , catch the input etc..
since someone already wrote these routine in assembly or in c, it
would be only a cut and paste
in this way you can have full psp speed graphics and the power of a
object oriented language!
I don't know how your vm interpreter work, but if you can precompile
I think you should think at it for a second.
if you're worried for the real java compiler thinking that it cant
understand the syntax, than you can easily work around this using a
dummy class that define asm.
example :
void foo(){
new Asm("Asm code");
}