mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rob Landley <rob@landley.net>
To: Rich Felker <dalias@libc.org>, musl@lists.openwall.com
Cc: 0pf@nommu.org
Subject: Re: [0pf] musl/SH-FDPIC progress
Date: Sun, 13 Sep 2015 18:45:49 -0500	[thread overview]
Message-ID: <55F60AAD.9010004@landley.net> (raw)
In-Reply-To: <20150911190522.GW17773@brightrain.aerifal.cx>

On 09/11/2015 02:05 PM, Rich Felker wrote:
> As noted in the commit message, a patch on the musl side is needed to
> get actual working binaries. I'll post a version of this (not
> appropriate for upstream) soon.

Did you ever write more documentation beyond:

http://www.aerifal.cx/~dalias/binfmts.html

I should add a link to that from the web page, but I dunno if there's
more. I'd like to get a section on nommu.org comparing binflt, static
pie, and fdpic.

Jeff Dionne commented on your toolchain:

> The only issue is he seems to be exclusively targeting fdpic.  The
> issue is you loose a few registers.   I don't know what gcc will do
> performance wise in that case, we need to test.  Hopefully we don't
> need a 'fall back' to bFLT, or something.
>
> A few % hit in an embedded system is a lot...

To which I don't know how to respond. Register starvation mostly seems
to crop up on x86 (where they have horrible behind the scenes hardware
hacks with register renaming and multiple register profiles and so on to
get decent performance out of a lousy assembly design). But sh2 has 16
general purpose registers, which is much less constained...

I'd say "get 'em both out and benchmark them" but the binflt toolchain
I've got (cutting an aboriginal linux release as we speak by the way) is
gcc 4.2.1+binutils 2.17, and yours is something like 8 years later so
the whole code generation backend is basically redone. Not remotely
apples to apples there.

And then there's llvm and you said you got libfirm working? What's
involved in making a libfirm toolchain, trying to build a system with
it, and getting j2 code generation out of it?

Rob


  parent reply	other threads:[~2015-09-13 23:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-11  1:48 Rich Felker
2015-09-11 19:05 ` [0pf] " Rich Felker
2015-09-12  3:29   ` Rich Felker
2015-09-13 23:45   ` Rob Landley [this message]
2015-09-14  1:36     ` Rich Felker
2015-09-14 23:10     ` Rich Felker
2015-09-22  5:27 ` Updated " Rich Felker

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=55F60AAD.9010004@landley.net \
    --to=rob@landley.net \
    --cc=0pf@nommu.org \
    --cc=dalias@libc.org \
    --cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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