Creating a Virtual Machine

This is a discussion on Creating a Virtual Machine within the C++ Programming forums, part of the General Programming Boards category; Hey guys, Well me and my team had the idea of creating our own Virtual machine with our own programming ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    47

    Creating a Virtual Machine

    Hey guys,
    Well me and my team had the idea of creating our own Virtual machine with our own programming language. We were gonna design it with an idea of having a "dictionary file" this file would contain the syntax information for our language and Our theory is to create multiple language dictionaries so we could even have a c++ programming language running on a virtual machine which could hopefully elminate the issue with being crossplatform compliant. We even had the idea of making a Visual Basic language interface because I know there are quite a bit of programmers in VB (SADLY) and this could enable the commercial market to build more LINUX based programs that would run on both machine architectures. Anyway I want to come up with the most efficient way possible in doing this. I probably would take the code written and send it through a compiler that would read the dictionary file and put it into a universal code type for the Virtual Machine. If you guys had any ideas it would be much appreciated. How would you guys go about doing it and what would be the most efficient and reliable way. Our team does have an assembly programmer and he might write some external functions to see if he can increase the speed in some areas. Thanks for your help. Also if you guys are interested in joining our programming team on this project my e-mail is cchs495a@hotmail.com and our website is http://darkpenguin.sytes.net
    we will need both linux and windows c++ programmers to pull this off. and you must have some decent knowledge of the language. Please reply to this with your ideas. on how we could do this.
    thanks.

  2. #2
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    if you write standards compliant C++ code, it already is cross platform.

    virtual machines make the language very slow..look at java..

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    47
    I know if you use ansi standards but there is a lot of advanced stuff i plan to use. for example socket programming... you require different dependencies in windows and sometimes it wont come over from linux. or threading. linux uses posex. windows uses somethin else. Even usin the gui is different. Also the newere java vm is gettin soo much better that you can hardly tell the difference in performance. I realize it will be slower but If done right it wont be TOO much slower. So does anyone have any ideas.

  4. #4
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Hehe, VB on something that isn't MS... you might want to read the licensing info before you try something like that.
    Away.

  5. #5
    Registered User
    Join Date
    Jul 2002
    Posts
    47
    lol...true i just meant the BASIC programming language style. MICROSOFT DID NOT INVENT THAT

  6. #6
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    well if you want cross platform gui use GTK.

    the java vm uses something called 'bytecodes' iirc, i guess lots of assembly programming and whatnot involved

    i guess you can make some scripting language with an interpreter for every platform its targetting to run on. at least i think that how java is written too
    Last edited by the Wookie; 10-04-2003 at 06:51 PM.

  7. #7
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    Virtual machines and all of what you have describes outlines Java. Especially in the C++ sense.

    -LC
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

  8. #8
    Registered User
    Join Date
    Jul 2002
    Posts
    47
    I know this idea outlines java. I thought it would be neat however to learn how to go about doing this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Virtual Box
    By ssharish2005 in forum Tech Board
    Replies: 3
    Last Post: 02-12-2009, 04:08 AM
  2. Replies: 48
    Last Post: 09-26-2008, 03:45 AM
  3. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  4. C++ XML Class
    By edwardtisdale in forum C++ Programming
    Replies: 0
    Last Post: 12-10-2001, 10:14 PM
  5. Exporting Object Hierarchies from a DLL
    By andy668 in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 01:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21