Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Alexey Rodriguez <mrchebas@gmail.com>
To: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
Cc: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlopt debugging options
Date: Thu, 18 Jun 2009 16:10:13 +0200	[thread overview]
Message-ID: <4b39c80a0906180710me805f2fh9fc1c60ee041633c@mail.gmail.com> (raw)
In-Reply-To: <A73A55D9-8CB1-4ADD-83F3-4E34FDC495AA@erratique.ch>

2009/6/18 Daniel Bünzli <daniel.buenzli@erratique.ch>:

>
> If you compile with -S they should not be gone in the generated assembly
> file. More explanations here :
>
> http://ocaml-tutorial.org/performance_and_profiling

Thank you! It was my silly mistake after all. I was testing a small
program to see whether functions would be inlined. Ocaml did inline
them and that is why I did not see them! :)

One more question regarding code generation and optimization. Has
anyone in this list used monads in production code? The core library
from Jane Street uses monads, so I suppose they are used over there.
Can people comment on their efficiency (or lack thereof)?

The experiments I am doing are to test whether Ocaml can inline most
uses of bind.

Cheers,

Alexey


  reply	other threads:[~2009-06-18 14:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-23 10:30 Alexey Rodriguez
2009-04-23 10:34 ` [Caml-list] " Mark Shinwell
2009-06-18 13:52   ` Alexey Rodriguez
2009-06-18 13:57     ` Daniel Bünzli
2009-06-18 14:10       ` Alexey Rodriguez [this message]
2009-06-18 14:10     ` Mark Shinwell
2009-06-18 14:11       ` Alexey Rodriguez

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=4b39c80a0906180710me805f2fh9fc1c60ee041633c@mail.gmail.com \
    --to=mrchebas@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=daniel.buenzli@erratique.ch \
    /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