> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>
What do you want to compile? What do you want it to compile to? For
what platform?
If you're creating a compile farm, you really want an environment that
can run gcc natively. That will never be GAE for a million very good
reasons. That said, compilation consumes significant cpu and io
resources and is probably not something you ever want to do on a web
frontend unless you want to risk a painful user experience. Farm it
out to Linode or EC2 or whatnot.
I doubt you're going to find a C cross-compiler implemented in Python
or any of the JVM-based languages. If you really wanted to get crazy
you could try to cross-compile gcc to java bytecode, which should
work, but you'll have to abstract out the i/o libraries to work
without filesystems. A sufficiently dedicated (read: insane) engineer
could probably pull this off with enough effort, but why...
Jeff
If all you want is a compiler frontend (parser, typechecker), you
might be able to get away with porting it to something you can run in
a GAE app. That this code is almost 100% algorithmic and you should
be able to compile it something else, either java (to run on GAE) or
javascript (to run in the browser itself).
I would seriously consider going the javascript route and doing it all
in the browser. Compared to running DOOM in the browser (see
http://www.readwriteweb.com/hack/2011/05/doom-ported-to-javascript-and.php),
running a compiler frontend should be easy. Looks like they used this
tool:
https://github.com/kripken/emscripten/wiki
This actually looks easier (and more fun) than setting up a compile
farm somewhere, plus it would give you a slick user experience. You
could even blog about it and probably get the story picked up by
hacker news.
Jeff