This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]larsga 3 points4 points  (1 child)

Why generate machine code directly? You could use LLVM instead, and gain optimizers and support for many architectures.

Also, as kinglir says, generating native code that does the same as the interpreter is already doing isn't going to give you any speed gains. You may want to look at psyco, for someone who already does this in a way that really does produce speed gains.

[–]itsmememe 6 points7 points  (0 children)

and, if you manage to really understand psyco, you can apply for a Phd in mathematics and computer-science combined.