Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
M0 design problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jimmy Zhuo  
View profile  
 More options Apr 1 2012, 11:17 pm
From: Jimmy Zhuo <jimmy.z...@gmail.com>
Date: Mon, 2 Apr 2012 11:17:43 +0800
Local: Sun, Apr 1 2012 11:17 pm
Subject: M0 design problem

Hello All,
I just realized that M0 is stack based. M0 is dedicated to use the least op
to do the work, it's extreme makes it being stack based, not register
based. If the latter is more advanced, then it's a retrogression. Here is
some compares:

M0:
set_imm I0, 0, 123
set_imm I1, 0, 356
add_i     I2, I1, I0

jvm-ish:
push I0, 123
push I1, 123
add   I2, I1, I0
CPU-ish:
mov %eax, 123
add %eax, 356
or
add %eax, %ebx
or
add %eax, [0]   # [0] is memory unit.
or
add [0], %eax   # [0] is memory unit.

In M0, we can't do this:
add_i I2, 123, 356

which should be right way of register based VM, and which parrot currently
does. I don't think parrot current ops implementation is bad, we should
reuse it to implement M0 ops. And I don't want M0 is stack based for easier
JIT too. Any thought or viewpoint?

regards,
Jimmy Zhuo

_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Gernhardt  
View profile  
 More options Apr 1 2012, 11:51 pm
From: Brian Gernhardt <be...@silverinsanity.com>
Date: Sun, 1 Apr 2012 23:51:53 -0400
Local: Sun, Apr 1 2012 11:51 pm
Subject: Re: M0 design problem

On Apr 1, 2012, at 11:17 PM, Jimmy Zhuo wrote:

I have thought it would be nice if M0 had some concept of addressing modes.  Indirect, indexed, and immediate are things that jump to mind quickly.  They could be handled by the core runloop before dispatching off to the ops for simplicity.

~~ Benabik

_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christoph Otto  
View profile  
 More options Apr 2 2012, 6:12 pm
From: Christoph Otto <christ...@mksig.org>
Date: Mon, 02 Apr 2012 15:12:34 -0700
Local: Mon, Apr 2 2012 6:12 pm
Subject: Re: M0 design problem

The big goal of M0 is stupid simplicity, but I also don't want
meaningfully efficient execution to require an optimizing assembler.
Adding addressing modes isn't out of the question.

I'm busier than I should be at the moment, but I'd love to see an
experiment with addressing modes.  If either of you have the time,
please feel free to fork the m0 branch and hack out something on
the Perl interpreter.  This kind of experimentation is exactly
what it's for.

Christoph
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »