From: Alain Frisch <alain@frisch.fr>
To: Joost Yervante Damad <joost@damad.be>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Embedding the ocaml runtime in a shared library on amd64/x86_64
Date: Thu, 03 Dec 2009 12:53:28 +0100 [thread overview]
Message-ID: <4B17A6B8.2040700@frisch.fr> (raw)
In-Reply-To: <200912031157.00187.joost@damad.be>
Joost Yervante Damad wrote:
> Reading up on this, I don't think using -fPIC on amd64 has a performance
> penalty since it has the %rip register. Also it appears that gcc by default
> uses indirect addressing via %rip in the generated asm.
I did some benchmarks when switching the ocamlopt AMD64 code generator
to generate PIC code by default (in order to support Dynlink on native
code): the slowdown was indeed very small (in the order of a few percent
for micro benchmarks). Modern processors seem very good for optimizing
indirect calls.
Alain
next prev parent reply other threads:[~2009-12-03 11:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-02 12:33 Joost Yervante Damad
2009-12-02 16:51 ` [Caml-list] " Richard Jones
2009-12-02 22:37 ` Stefano Zacchiroli
2009-12-03 10:56 ` Joost Yervante Damad
2009-12-03 11:53 ` Alain Frisch [this message]
2009-12-03 12:47 ` Stefano Zacchiroli
2010-01-05 12:52 ` [Caml-list] Embedding the ocaml runtime in a shared library on amd64/x86_64 [update] Joost Yervante Damad
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=4B17A6B8.2040700@frisch.fr \
--to=alain@frisch.fr \
--cc=caml-list@inria.fr \
--cc=joost@damad.be \
/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