mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Matias Fonzo <selk@dragora.org>
To: Jorge Almeida <jjalmeida@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: -m32
Date: Mon, 29 May 2017 18:23:53 -0300	[thread overview]
Message-ID: <20170529182353.475df513@rafaela> (raw)
In-Reply-To: <CAKpSnp+RSZuSc80mkyTQmfDXY5aoyubVfmNvjPJZR7vpXuRQJg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1329 bytes --]

Hola Jorge,

On Mon, 29 May 2017 22:07:47 +0100
Jorge Almeida <jjalmeida@gmail.com> wrote:

> On Mon, May 29, 2017 at 9:08 PM, Laurent Bercot
> <ska-dietlibc@skarnet.org> wrote:
> >> I tried to compile a "hello world" program (on a x86_64 system)
> >> with the -m32 flag of gcc:  
> >
> >
> >  AIUI, musl doesn't support multi-arch, and considers that x86 and
> > x86_64 are two different architectures. You cannot use the musl-gcc
> > wrapper for this, you need a cross-toolchain actually targetting
> > your 32-bit arch.  
> 
> Thanks, Laurent. I want to run my binaries on a 64bit system, and I
> would prefer to take advantage of its capabilities. But I have no use
> for  64 bit pointers, which, in my case, are responsable for a large
> size overhead. Since the m32 flg is not supported, I suppose the
> target should be x32, which the musl site says is experimental (maybe
> that information is outdated?)
> >
> >  Fortunately, these are easy to make with the musl-cross-make
> > tool.  
> I'll try and see if I'm able to grokk it!

Yes. musl-cross-make is an option.  If you are looking for an already
made x32 -- from time to time I publish pre-built cross-compilers based
on musl, check:

http://gungre.ch/dragora/mirror/current/compilers/darkcrusade_2017Jan05/


Regards,
Matías


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 966 bytes --]

  reply	other threads:[~2017-05-29 21:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-29 18:22 -m32 Jorge Almeida
2017-05-29 20:08 ` -m32 Laurent Bercot
2017-05-29 21:07   ` -m32 Jorge Almeida
2017-05-29 21:23     ` Matias Fonzo [this message]
2017-05-29 22:41       ` -m32 Jorge Almeida
2017-05-30  0:17         ` -m32 Rich Felker
2017-05-30  8:26           ` -m32 Jorge Almeida

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=20170529182353.475df513@rafaela \
    --to=selk@dragora.org \
    --cc=jjalmeida@gmail.com \
    --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).