mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Jorge Almeida <jjalmeida@gmail.com>
To: musl@lists.openwall.com
Subject: Re: -m32
Date: Mon, 29 May 2017 22:07:47 +0100	[thread overview]
Message-ID: <CAKpSnp+RSZuSc80mkyTQmfDXY5aoyubVfmNvjPJZR7vpXuRQJg@mail.gmail.com> (raw)
In-Reply-To: <em239897ab-fef5-49a6-9639-2ac3b38788d5@elzian>

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!

Regards

Jorge


  reply	other threads:[~2017-05-29 21:07 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   ` Jorge Almeida [this message]
2017-05-29 21:23     ` -m32 Matias Fonzo
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=CAKpSnp+RSZuSc80mkyTQmfDXY5aoyubVfmNvjPJZR7vpXuRQJg@mail.gmail.com \
    --to=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).