Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 6 Oct 2016 17:32:37 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: 32 bit musl?

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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.