mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rob Landley <rob@landley.net>
To: musl@lists.openwall.com
Cc: musl@lists.openwall.com
Subject: Re: Build system adjustments for subarchs
Date: Thu, 15 Aug 2013 07:33:09 -0500	[thread overview]
Message-ID: <1376569989.2737.34@driftwood> (raw)
In-Reply-To: <20130814010617.GA16011@brightrain.aerifal.cx> (from dalias@aerifal.cx on Tue Aug 13 20:06:17 2013)

On 08/13/2013 08:06:17 PM, Rich Felker wrote:
> Hi,
> 
> I'm looking for some ideas on a problem in the build system: how to
> cleanly share asm between subarchs. The problem is this: ARM, and
> possibly other archs in the future, has multiple dimensions of
> subarch: little-endian(default) vs big-endian, and
> fpu-agnostic(default) vs hardfloat. The asm requirements are:
> 
> - MOST asm is shared by all subarchs.
> 
> - A small amount of asm (for now, just memcpy) is endian-specific but
>   has nothing to do with floating point ABI.
> 
> - A fairly significant amount of asm in the future will be hard-float
>   specific (optimized math functions and floating point environment)
>   but has nothing to do with endianness.

If there's no actual overlap it sounds like you're describing search  
paths you stick stuff at the front of. Have hardfloat specific .S bits  
in one dir, differently endian stuff in another dir, and the truly  
agnostic stuff with default versions of everything in a third, then  
thread a search path through 'em.

> What I don't like about this approach is that the logic for the names
> to use in steps 1-3 has to go either in the configure script or the
> makefile. The makefile is not intended to have this sort of arch
> logic, but instead to derive the logic from the source tree structure.

How you get a makefile to do _anything_ is not my department. (Horrible  
language, make. Imperative or declarative, PICK ONE.)

Rob

      parent reply	other threads:[~2013-08-15 12:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14  1:06 Rich Felker
2013-08-14  1:16 ` Rich Felker
2013-08-14  1:42 ` Luca Barbato
2013-08-14  1:53   ` Rich Felker
2013-08-14  2:25 ` Rich Felker
2013-08-14  3:42   ` Rich Felker
2013-08-14  4:02     ` Rich Felker
2013-08-14 15:09       ` Szabolcs Nagy
2013-08-14 15:15         ` Rich Felker
2013-08-14 15:28           ` Luca Barbato
2013-08-15  0:55 ` Strake
2013-08-15  1:48   ` Rich Felker
2013-08-15 12:33 ` Rob Landley [this message]

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=1376569989.2737.34@driftwood \
    --to=rob@landley.net \
    --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).