From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10596 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: 32 bit musl? Date: Thu, 6 Oct 2016 17:32:37 -0400 Message-ID: <20161006213237.GV19318@brightrain.aerifal.cx> References: <3174575.Lm5ZMoHjL3@krypton> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1475789592 7349 195.159.176.226 (6 Oct 2016 21:33:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2016 21:33:12 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-10609-gllmg-musl=m.gmane.org@lists.openwall.com Thu Oct 06 23:33:04 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1bsGHZ-00082e-Tr for gllmg-musl@m.gmane.org; Thu, 06 Oct 2016 23:32:50 +0200 Original-Received: (qmail 7772 invoked by uid 550); 6 Oct 2016 21:32:50 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 7751 invoked from network); 6 Oct 2016 21:32:49 -0000 Content-Disposition: inline In-Reply-To: <3174575.Lm5ZMoHjL3@krypton> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10596 Archived-At: 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