From: Christophe TROESTLER <Christophe.Troestler@umh.ac.be>
To: jon@jdh30.plus.com
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] [Bug] Different behavior bytecode/nativecode
Date: Sun, 27 Feb 2005 11:13:14 +0100 (CET) [thread overview]
Message-ID: <20050227.111314.133428119.Christophe.Troestler@umh.ac.be> (raw)
In-Reply-To: <200502270444.51192.jon@jdh30.plus.com>
On Sun, 27 Feb 2005, Jon Harrop <jon@jdh30.plus.com> wrote:
>
> The problem is the conflict of interests between having ocamlc and
> ocamlopt behave identically, and having ocamlopt-compiled code
> achieve good performance. In floating-point code, ocamlopt can
> sometimes generate slightly different results from ocamlc.
> http://caml.inria.fr/caml-list/1147.html
Thanks for the pointer.
> Specifically, your code is numerically unstable
Yes, I know about this but was blind-sighted by the different results
of the two compilers... :( (I checked the values of "cr" where
identical but not with enough precision...)
> ocamlopt is generating x86 code which is partly performed in 80-bit
> registers and partly stored in 64-bit memory locations
Are there general rules about this: does a "let" necessarily put the
result into 64-bit memory (as an assignment in C does) or is it more
complicated (e.g. due to inlining)?
Thanks for quickly finding my mistake!
Regards,
ChriS
next prev parent reply other threads:[~2005-02-27 10:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-27 0:13 Christophe TROESTLER
2005-02-27 2:32 ` [Caml-list] " Kurt Welgehausen
2005-02-27 4:44 ` Jon Harrop
2005-02-27 10:13 ` Christophe TROESTLER [this message]
2005-02-27 11:10 ` Jon Harrop
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050227.111314.133428119.Christophe.Troestler@umh.ac.be \
--to=christophe.troestler@umh.ac.be \
--cc=caml-list@yquem.inria.fr \
--cc=jon@jdh30.plus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox