caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Abstract Machine Instructions
@ 2005-08-25  3:08 Tom Hawkins
  2005-08-26  8:22 ` [Caml-list] " David MENTRE
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Hawkins @ 2005-08-25  3:08 UTC (permalink / raw)
  To: caml-list

To gain a better understanding of the bytecode compiler, I am 
reimplementing OCaml's abstract machine.

I'm using tools/dumpobj to produce instruction listings of pre-compiled 
programs.  Does the results from dumpobj accurately reflect the 
instruction stream fed to byterun/interp.c?  Dumpobj is not compiled 
with the standard installation -- is it still in sync with the rest of 
the system?  Or is there a better tool to produce an instruction listing?

And on the topic of instructions, what does the following mean?

   763  PUSHGETGLOBAL <0>(1, <0>(3, <0>(4, <0>(7, 0))))

Thanks!

-Tom


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Abstract Machine Instructions
  2005-08-25  3:08 Abstract Machine Instructions Tom Hawkins
@ 2005-08-26  8:22 ` David MENTRE
  2005-08-26 15:32   ` Tom Hawkins
  0 siblings, 1 reply; 3+ messages in thread
From: David MENTRE @ 2005-08-26  8:22 UTC (permalink / raw)
  To: Tom Hawkins; +Cc: caml-list

Hello,

2005/8/25, Tom Hawkins <tom@confluent.org>:
> And on the topic of instructions, what does the following mean?
> 
>    763  PUSHGETGLOBAL <0>(1, <0>(3, <0>(4, <0>(7, 0))))

Maybe the following doc could be of some help ?
http://cristal.inria.fr/~lebotlan/docaml_html/english/english004.html
http://cristal.inria.fr/~lebotlan/docaml_html/english/index.html

I hope it helps,
Yours,
d.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Abstract Machine Instructions
  2005-08-26  8:22 ` [Caml-list] " David MENTRE
@ 2005-08-26 15:32   ` Tom Hawkins
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Hawkins @ 2005-08-26 15:32 UTC (permalink / raw)
  To: caml-list

David MENTRE wrote:
> Hello,
> 
> 2005/8/25, Tom Hawkins <tom@confluent.org>:
> 
>>And on the topic of instructions, what does the following mean?
>>
>>   763  PUSHGETGLOBAL <0>(1, <0>(3, <0>(4, <0>(7, 0))))
> 
> 
> Maybe the following doc could be of some help ?
> http://cristal.inria.fr/~lebotlan/docaml_html/english/english004.html
> http://cristal.inria.fr/~lebotlan/docaml_html/english/index.html

Perfect!  I had no idea such documentation existed.

Thanks.

-Tom

> 
> I hope it helps,
> Yours,
> d.
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-26 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-25  3:08 Abstract Machine Instructions Tom Hawkins
2005-08-26  8:22 ` [Caml-list] " David MENTRE
2005-08-26 15:32   ` Tom Hawkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).