Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-31-2009, 10:12 AM   #1
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 313

Rep: Reputation: 34
java machine code

I know what a virtual machine is. I don't really understand why the Java language has to be so intertwined with it, though. I mean couldn't someone make a program that translates C code into byte code for a Java Virtual Machine?

And likewise, isn't there any compiler out there that compiles Java code straight into machine code for a specific system?
Old 04-01-2009, 10:19 AM   #2
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96

The Virtual Machine is there so that the same byte code can be run on any platform without having to recompile. That was kind of the point of Java.

In answer to your two questions:
I'm not aware of a C to Java byte compiler
There are processors available that can execute Java byte code natively, and gcj can compile Java source into machine code.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Machine Language/Code khronosschoty Programming 30 02-03-2009 02:10 PM
Shorten code in java? rabbit2345 Programming 1 02-04-2008 09:43 PM
machine code of BL instruction topworld Programming 1 04-11-2006 05:41 PM
LXer: Wisconsin voting machine code will be open-source LXer Syndicated Linux News 0 01-07-2006 01:31 AM
Windows Native Machine code Paul_Lee Programming 1 07-23-2001 08:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration