mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: 32 bit musl?
Date: Thu, 6 Oct 2016 17:32:37 -0400	[thread overview]
Message-ID: <20161006213237.GV19318@brightrain.aerifal.cx> (raw)
In-Reply-To: <3174575.Lm5ZMoHjL3@krypton>

On Thu, Oct 06, 2016 at 09:21:29AM +0200, Jens Staal wrote:
> onsdag 5 oktober 2016 kl. 18:20:55 CEST skrev John Mudd:
> > I upgraded to a 64 bit development box. I've assumed I would just need to
> > use -m32 option and I could still build 32 bit apps on my 64 bit machine. I
> > tried it but it tries to mix 32 & 64 bit code. I guess I was naive.
> 
> Slightly off-topic but out of curiosity: Would musl theoretically be possible 
> to build/use on 16-bit "Linux" (ELKS) with ia16-gcc?

No. There may be a number of individual components you could use on
such a system, but musl implements, and as a whole makes assumptions
that will necessarily be true on, a POSIX-conforming (and somewhat
Linux-flavored) system. In particular POSIX requires 32-bit int. Even
if you had a 16-bit x86 target with 32-bit int, you would need an arch
target for it matching the ABI and things like how TLS works (but I
wonder if anyone ever even figured out TLS on ELKS).

Rich


  reply	other threads:[~2016-10-06 21:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-05 22:20 John Mudd
2016-10-05 23:02 ` Rich Felker
2016-10-06  0:24 ` Shiz
2016-10-06  0:33   ` Rich Felker
2016-10-06  7:21 ` Jens Staal
2016-10-06 21:32   ` Rich Felker [this message]
2016-10-09  1:55 ` John Mudd
2016-10-09  9:36   ` Laurent Bercot
2016-10-09 14:29   ` John Mudd
2016-10-09 14:44     ` Szabolcs Nagy
2016-10-09 15:10       ` Bobby Bingham
2016-10-09 16:08         ` 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=20161006213237.GV19318@brightrain.aerifal.cx \
    --to=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).