how to build Java frontend for LLVM?

hi all

i check out https://llvm.org/svn/llvm-project/java/trunk
but i can not find any document to built it.
Who knows how to built?
BTW: I have successfully built C/C++ frontend for LLVM.
Thx!

-Joey

Unfortunately it is far far far behind LLVM head and hasn’t been maintained for quite a while. Perhaps vmkit is more useful to you? http://vmkit.llvm.org

-Chris

thx, but i meet a problem in configuing the pnet-0.8.0.
the error info:

checking for treecc… no
treecc is required to build and can be obtained from
http://www.southern-storm.com.au

how to fix this problem? thx!

-Joey

/*****************************************/

I haven’t built those pieces myself, so take this all with a grain of salt.

It looks like you need another tool, treecc, to build pnet. The referenced website looks to have expired (advertising parking page there now); however, google turns up http://www.freshports.org/lang/treecc which looks like it might at least be a place to start.

Regards,
Jim

Hi Joey,

The .Net support in vmkit has moved to an experimental state and much of the development in vmkit currently targets the Java frontend. So you can skip configuring pnet and only use the JVM in vmkit with GNU Classpath. However, if you're still interested in running .net apps, you can use mono instead of pnet (which in my experience will be easier to configure) and "patches are welcome" :slight_smile:

Nicolas

kqyang wrote:

Jim Grosbach wrote:

I haven't built those pieces myself, so take this all with a grain of salt.

It looks like you need another tool, treecc, to build pnet. The referenced website looks to have expired (advertising parking page there now); however, google turns up FreshPorts -- lang/treecc: Treecc is designed to assist in the development of compilers which looks like it might at least be a place to start.

If you need it, the treecc program is, coincidentally, in the LLVM test suite in MultiSource/Applications/treecc.
:slight_smile:

Not that I'm recommending pnet in this discussion (I haven't read the entire thread); just thought I'd point out the above factoid.

-- John T.