caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] bootstrapping for ocaml's compiler
@ 2012-09-03 19:41 bob zhang
  2012-09-04  9:16 ` Andrej Bauer
  2012-09-04  9:42 ` Stéphane Glondu
  0 siblings, 2 replies; 3+ messages in thread
From: bob zhang @ 2012-09-03 19:41 UTC (permalink / raw)
  To: Caml List

[-- Attachment #1: Type: text/plain, Size: 429 bytes --]

Hi List,
   Can anyone tell me that ocaml's native code bootstrapping system can
reach a fixpoint or not?
I am doing my own compiler using ocaml as backend,* I found something
weird: the byte-code *
*compiler can always reach a fix-point, the native-code can reach a
fix-point sometimes, sometimes not.*
*Is this expected behavior or not? Is there any randomized algorithm used
in ocamlopt?*

   Many thanks!

-- 
Regards
-- Bob

[-- Attachment #2: Type: text/html, Size: 586 bytes --]

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

* Re: [Caml-list] bootstrapping for ocaml's compiler
  2012-09-03 19:41 [Caml-list] bootstrapping for ocaml's compiler bob zhang
@ 2012-09-04  9:16 ` Andrej Bauer
  2012-09-04  9:42 ` Stéphane Glondu
  1 sibling, 0 replies; 3+ messages in thread
From: Andrej Bauer @ 2012-09-04  9:16 UTC (permalink / raw)
  To: bob zhang; +Cc: Caml List

Are there timestamps in the compiled native code?
Are hash values for polymorphic variants seeded with external source?
What else could happen?

On Mon, Sep 3, 2012 at 9:41 PM, bob zhang <bobzhang1988@gmail.com> wrote:
> Hi List,
>    Can anyone tell me that ocaml's native code bootstrapping system can
> reach a fixpoint or not?
> I am doing my own compiler using ocaml as backend, I found something weird:
> the byte-code
> compiler can always reach a fix-point, the native-code can reach a fix-point
> sometimes, sometimes not.
> Is this expected behavior or not? Is there any randomized algorithm used in
> ocamlopt?
>
>    Many thanks!
>
> --
> Regards
> -- Bob

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

* Re: [Caml-list] bootstrapping for ocaml's compiler
  2012-09-03 19:41 [Caml-list] bootstrapping for ocaml's compiler bob zhang
  2012-09-04  9:16 ` Andrej Bauer
@ 2012-09-04  9:42 ` Stéphane Glondu
  1 sibling, 0 replies; 3+ messages in thread
From: Stéphane Glondu @ 2012-09-04  9:42 UTC (permalink / raw)
  To: bob zhang; +Cc: Caml List

Le 03/09/2012 21:41, bob zhang a écrit :
>    Can anyone tell me that ocaml's native code bootstrapping system can
> reach a fixpoint or not?
> I am doing my own compiler using ocaml as backend,*/I found something
> weird: the byte-code /*
> */compiler can always reach a fix-point, the native-code can reach a
> fix-point sometimes, sometimes not./*
> */Is this expected behavior or not? Is there any randomized algorithm
> used in ocamlopt?/*

What are you comparing?

The underlying toolchain might use randomized algorithms. For example,
GCC can be configured to embed a freshly generated UUID in each
executable it produces. What should be compared is the assembly output
(-S output).


Cheers,

-- 
Stéphane

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

end of thread, other threads:[~2012-09-04  9:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-03 19:41 [Caml-list] bootstrapping for ocaml's compiler bob zhang
2012-09-04  9:16 ` Andrej Bauer
2012-09-04  9:42 ` Stéphane Glondu

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).