Results 1 to 6 of 6
  1. #1
    Jarob22 is offline Member
    Join Date
    Mar 2011
    Posts
    12
    Rep Power
    0

    Default Writing a virtual machine in Java

    Hey there,

    I've just finished my second year in an EECS degree, done a few of my own projects, and want to try something a little more challenging -writing a virtual machine. I've never done this before, so tried to google for a while, but all I was getting was intros to THE java virtual machine and nothing about actually writing a VM in java. I know it won't be fast, but Java is the only language I know well enough to try this at the moment.

    Anyone got any resources/help/links to set me up?

    Cheers.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,449
    Rep Power
    25

    Default

    Not sure what you mean by a virtual machine. Do you mean simulating a machine at the machine code level with opcodes, program counters, registers, interrupts, etc?

  3. #3
    Jarob22 is offline Member
    Join Date
    Mar 2011
    Posts
    12
    Rep Power
    0

    Default

    Yea :) like that.

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,449
    Rep Power
    25

    Default

    I saw a project like that posted on the net. It was done by a professor as a learning aid for his students.
    Don't remember the name.

    I've written some simple ones years ago and long ago in grad school.

  5. #5
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default

    You could check out some of the free open-source emulators that are out there, like zsnes. I think most of them are written in C++, but even if you don't know it well, you should be able to get an idea of how they work.
    Get in the habit of using standard Java naming conventions!

  6. #6
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default

    ...or better yet, start with something simpler. I know there are emulators out there for things like the Commodore 64 and the original GameBoy (based on the relatively simple Z80 processor). My kid brother had to write a 8088 emulator for a class he took... I'm sure there are some student projects out there you could find.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. Difficulty with Java RE/Virtual Machine on Windows 7
    By deejaycruiser in forum New To Java
    Replies: 1
    Last Post: 03-08-2011, 07:45 AM
  2. Could not create Java Virtual Machine
    By cr6 in forum New To Java
    Replies: 0
    Last Post: 02-16-2011, 10:40 PM
  3. calling java virtual machine
    By many in forum New To Java
    Replies: 5
    Last Post: 12-01-2008, 10:06 PM
  4. Virtual machine of java.
    By Albert in forum Advanced Java
    Replies: 1
    Last Post: 07-05-2007, 08:48 PM
  5. C# Java Virtual Machine 1.0.1
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-25-2007, 07:47 AM

Tags for this Thread

Posting Permissions

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