Results 1 to 2 of 2

Thread: Java Bytecode to Assembly Code: Practicality?

  1. #1
    Senior Member
    Join Date
    Oct 2005
    Posts
    106

    Java Bytecode to Assembly Code: Practicality?

    OK, I was back home for the holidays and was fortunate to talk to a programmer working at NASA's Jet Propulsion Lab. We were talking about using assembly code when memory space is precious.

    I asked him "Why not code in Java bytecode by hand (as opposed to having Java code compiled to it), then use the GNU Java Compiler to translate it to whatever machine you need?"

    I've been thinking about that for a long time now and I'm curious: is this a practical idea at all? If so, why don't people do it?

    Cheers!
    "The Texan turned out to be good-natured, generous and likeable. In three days no one could stand him." Catch 22 by Joseph Heller.

    Buddies? I have no buddies...


    Give the BSD daemon some love (proud FreeBSD user)

  2. #2
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    It's easier to do it in C and then compile it for the architecture you need. Why go to all the trouble of creating Java bytecode by hand and compile it..

    If done properly C is pretty source compatible between architectures. Just look at the linux kernel and the BSD sources.
    Oliver's Law:
    Experience is something you don't get until just after you need it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •