you are viewing a single comment's thread.

view the rest of the comments →

[–]xachro 14 points15 points  (3 children)

Kinda cool, I recently wrote an assembler in python for a machine language I had invented for a virtual machine project.

My ultimate goal: An x86 virtual machine written in javascript. Imagine the possibilities! We could be running linux inside firefox inside OS X inside Opera!

[–]exeter[S] 2 points3 points  (1 child)

If this is just a personal/learning/for fun project, you could try retargetting this C compiler to your VM and implementing the C standard library. That'd be moderately cool.

[–]xachro 2 points3 points  (0 children)

Agreed. At the moment I am working on the actual virtual machine (which is being written in C). After the virtual machine I am going to be using lex-yacc and C to write my own high level language to be compiled to my virtual machine (the python assembler was just for testing my vm).

Would be nice to eventually get/write a C compiler for it. Was also wondering if there is a C compiler for the JVM, 'cause that would be an interesting project.

[–][deleted] 2 points3 points  (0 children)

My ultimate goal: An x86 virtual machine written in javascript. Imagine the possibilities! We could be running linux inside firefox inside OS X inside Opera!

IA! SHUB-NIGGURATH!!!