[Tutor] Re: [Jython-users] Python to native compilation via java?
Steven M. Castellotti
scastell@sas.upenn.edu
Mon, 18 Jun 2001 16:41:27 -0500
A very good question! However, don't forget that if the software you're
writing is GPL'd, there might be a restriction on compiling it together
with jython, due to a conflict between the GPL and jython's license.
VanL wrote:
>
> Hello,
>
> (Cross-posted by request from the python-tutor mailing list)
>
> I was reading about the new gcc 3.0 release, and something that caught
> my eye:
>
> """
> The GNU Compiler for the Java Programming Language
> What is GCJ?
>
> GCJ is a portable, optimizing, ahead-of-time compiler for the Java
> Programming Language. It can compile:
>
> * Java source code directly to native machine code,
> * Java source code to Java bytecode (class files),
> * and Java bytecode to native machine code.
>
> Compiled applications are linked with the GCJ runtime, libgcj, which
> provides the core class libraries, a garbage collector, and a bytecode
> interpreter. libgcj can dynamically load and interpret class files,
> resulting in mixed compiled/interpreted applications.
> """
>
> Would code get any significant speedup by going jython -> .class files
> -> native? Is it possible? And does jython compile under gcj?
>
> Thanks,
>
> Van
--
Steve Castellotti
Systems Programmer
School of Arts and Sciences, University of Pennsylvania