This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Getting started with GCJ


Michael J McGonagle wrote:

>So, from this, how would I be able to compile these objects into the
>same binary? Would this require a means of storing all the generated *.o
>files in a directory structure (similar to the package tree), and then
>linking them all together in the final stage?
>

Note that with newwer GCJ versions you can compile as many .java files 
as you like into one .o file. So you can compile an entire foo.bar 
package with something like "gcj -c foo/bar/*.java -o foo-bar.o". This 
also gets you much faster compile times, at the expense of making 
partial rebuilds based on dependencies harder.

regards

Bryce.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]