1. Virtual procesor

------=_NextPart_000_0007_01C0B7CC.E5E6E660
	charset="iso-8859-1"

Hi all

I'v got an idea for program that woud change history of computers.
Coud it bee posible to make a program that woud act like a procesor? So =
you coud play Qake 3 on 486 for example.
Iz is not necesary that the program woud bee made in EU.
You think that I am crazy. I am yust asking.



Lep Pozdrav
Jan

------=_NextPart_000_0007_01C0B7CC.E5E6E660
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
change=20
history of computers.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Coud it bee posible to make a program =
that woud act=20
like a procesor? So you coud play Qake 3 on 486 for =
example.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Iz is not necesary that the program =
woud bee made=20
in EU.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>You think that I am crazy. I am yust=20
asking.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Lep Pozdrav</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Jan</FONT></DIV>
------=_NextPart_000_0007_01C0B7CC.E5E6E660--

new topic     » topic index » view message » categorize

2. Re: Virtual procesor

This is what a virtual machine is more or less.  Java's is the most =
famous, but there have been a couple virtual machines designed in Euphoria =
as well.
A virtual machine has the advantage of being able to write programs that =
are 100% portable without modification to any platform that runs the VM =
(virtual machine).  It also allows for functional enhancements over what =
the host processor may be capable of (byte codes for string math, for =
example).
The main disadvantage of VMs is their speed.  A host processor must spend =
several more cycles processing an instruction through the VM than if it =
handled the same instruction directly.  While it's theoretically possible =
to write a VM that would allow you to play MMX games on a 486 or other =
platform, the slowness of the VM in performing each MMX instruction on =
such a platform would make it not worth playing.

HTH,
Michael J. Sabal


>>> alojz.hancic at siol.net 03/28/01 02:25PM >>>
I'v got an idea for program that woud change history of computers.
Coud it bee posible to make a program that woud act like a procesor? So =
you coud play Qake 3 on 486 for example.
Iz is not necesary that the program woud bee made in EU.
You think that I am crazy. I am yust asking.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Virtual procesor

> Hi all
>
> I'v got an idea for program that woud change history of computers.
> Coud it bee posible to make a program that woud act like a procesor? So you
> coud play Qake 3 on 486 for example.
> Iz is not necesary that the program woud bee made in EU.
> You think that I am crazy. I am yust asking.
>
>
>
> Lep Pozdrav
> Jan

You mean a virtual machine? Been done, many times (that's how JAVA
works) :)
You can't make your computer faster by using a virtual machine, the
virtual machine still has to run on the host processor, so sorry, your
just gonna have to get a better computer to play quake 3 ;)

Thomas Parslow (PatRat) ICQ #:26359483
Rat Software
http://www.rat-software.com/
Please leave quoted text in place when replying

new topic     » goto parent     » topic index » view message » categorize

4. Re: Virtual procesor

Uh...
I proposed to code that a couple of days ago, IF
people showed support...
No one did, so...

But yeah it's possible,
Q3 would run like a snail on a 486, though...
But it's doable...


Mike The Spike

--- alojz.hancic at siol.net wrote:
> 
>
>
> 
> Hi all
> 
> I'v got an idea for program that woud change history
> of computers.
> Coud it bee posible to make a program that woud act
> like a procesor? So you coud play Qake 3 on 486 for
> example.
> Iz is not necesary that the program woud bee made in
> EU.
> You think that I am crazy. I am yust asking.
> 
> 
> 
> Lep Pozdrav
> Jan
> 
>
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: Virtual procesor

Thomas Parslow wrote:

>You can't make your computer faster by using a virtual machine

I recall that, in certain circumstances, the virtual machine code actually 
runs faster than native. Typically, there's some clever optimizer that's 
looking at the instruction blocks, and figuring out optimal branching and 
other stuff that's beyond my comprehension.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

6. Re: Virtual procesor

Hmmm..
Nah...
That's impossible...
Even with the best of optimisations, it will always
run slower...
Especially in Euphoria...

Mike The Spike
--- David Cuny <euphoria_coder at HOTMAIL.COM> wrote:
> > 
>
> > 
> Thomas Parslow wrote:
> 
> >You can't make your computer faster by using a
> virtual machine
> 
> I recall that, in certain circumstances, the virtual
> machine code actually 
> runs faster than native. Typically, there's some
> clever optimizer that's 
> looking at the instruction blocks, and figuring out
> optimal branching and 
> other stuff that's beyond my comprehension.
> 
> -- David Cuny
> 
> 
>
> 


>

new topic     » goto parent     » topic index » view message » categorize

7. Re: Virtual procesor

MTS wrote:

>Even with the best of optimisations, [a virtual machine] will always
>run slower...

Take a look at HP's Dynamo:


The short version:

   "Dynamo creates straight line code from what may
    have been intricate control flow, and Dynamo can
    optimize fragments across boundaries that a static
    compiler cannot."

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

8. Re: Virtual procesor

Hi all

I think you miss understanded me. I was traying to ask you if it is posible
to write a program that woud bee like a procesor so you coud swich off the
real procesor and use the virtual one.



Lep Pozdrav
Jan

new topic     » goto parent     » topic index » view message » categorize

9. Re: Virtual procesor

On Wed, 28 Mar 2001 17:07:16 -0800, David Cuny <euphoria_coder at HOTMAIL.COM>
wrote:

>Thomas Parslow wrote:

>>You can't make your computer faster by using a virtual machine

>I recall that, in certain circumstances, the virtual machine code actually 
>runs faster than native. Typically, there's some clever optimizer that's 
>looking at the instruction blocks, and figuring out optimal branching and 
>other stuff that's beyond my comprehension.

I've heard the same thing - but I also seem to recall that this can only
happen in cases where you're 'emulating' a slow processor on a fast one,
which is just the opposite of what the person who started this thread wants
to do.

--
Jeff Zeitlin
jzeitlin at cyburban.com
(ILink: news without the abuse. Ask via email.)

new topic     » goto parent     » topic index » view message » categorize

10. Re: Virtual procesor

Well, one thing is for sure...
If what David says was true,
then Intel is in the wrong bussiness and should be
coding virtual Pentium IV's that run on 486s instead
of spending a decade engineering faster chips...

See what I mean?
You can't just do post-link optimisations on machine
code, interpret it, and expect it to run anywhere near
the speed of non-interpreted unoptimised code being
executed by the processor.

A virtual machine is fun for many things.
For one, imagine a 'pcall()' for Euphoria, wich
interprets each machine code.
That way, with future support for non-intel platforms,
your machine code still works.

And that day might be here sooner than you expect...

Mike The Spike

--- jzeitlin at cyburban.com wrote:
> > 
>
> >
> >
> > 
> On Wed, 28 Mar 2001 17:07:16 -0800, David Cuny
> <euphoria_coder at HOTMAIL.COM>
> wrote:
> 
> >Thomas Parslow wrote:
> 
> >>You can't make your computer faster by using a
> virtual machine
> 
> >I recall that, in certain circumstances, the
> virtual machine code actually 
> >runs faster than native. Typically, there's some
> clever optimizer that's 
> >looking at the instruction blocks, and figuring out
> optimal branching and 
> >other stuff that's beyond my comprehension.
> 
> I've heard the same thing - but I also seem to
> recall that this can only
> happen in cases where you're 'emulating' a slow
> processor on a fast one,
> which is just the opposite of what the person who
> started this thread wants
> to do.
> 
> --
> Jeff Zeitlin
> jzeitlin at cyburban.com
> (ILink: news without the abuse. Ask via email.)
> 
> 
>
> > 
> >
> > 


>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu