View previous topic :: View next topic |
Author |
Message |
dongfangxunlei n00b

Joined: 30 Jan 2013 Posts: 40
|
Posted: Tue Jun 25, 2013 9:11 am Post subject: i686 use gcc-x32 |
|
|
Hello,everyone!
I have found that gcc with x32 abi is faster than i686 amd amd64.But some softwares do not support x32 abi.So I want to install a x32 gcc in i686 system.Just the compiler and its depends such as glibc is x32 abi,all other packages will be i686.
How should I do?  |
|
Back to top |
|
 |
erikm l33t

Joined: 08 Feb 2005 Posts: 634
|
Posted: Thu Jul 25, 2013 8:17 am Post subject: |
|
|
I'm not sure I understand precisely what you want, but here are a few pointers:
- Some applications are indeed faster when built as 32-bit on a multilib amd64 system, but most are faster as 64-bit (albeit somewhat larger and slower to load). The difference is usually negligibly small, though.
- Even if you built an application as 32-bit, the CHOST would still be i686. Using an older CHOST (e.g. i386) is guaranteed to slow the application down significantly (~ 10%, if my memory serves).
- Many if not most packages in the amd64 repository are ports from 32-bit code, and so in general work well when built as 32-bit. Doing so is just usually not the point of an amd64 system - if you truly want everything 32-bit, set portage to accept "x86" packages instead.
- Assuming that you are correct, and 32-bit is faster, building only the compiler and toolchain as 32-bit would not speed any applications up, only compiles, and even them negligibly, since package build phases usually are not efficient enough to be truly CPU-limited.
In short, if I have understood you correctly, I believe you are mistaken in your beliefs, and recommend that you do nothing at all. |
|
Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 10763 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Jul 25, 2013 11:34 am Post subject: |
|
|
Missing the point. X32 != 32-bit x86. Some reading for you.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
 |
erikm l33t

Joined: 08 Feb 2005 Posts: 634
|
Posted: Thu Jul 25, 2013 11:49 am Post subject: |
|
|
Ah, I see, thanks!
That certainly looks like something I'd keep my toolchain lightyears away from, though ... . My recommendation is unchanged, that is. |
|
Back to top |
|
 |
Jerry_McBride n00b

Joined: 23 Mar 2004 Posts: 10
|
Posted: Sat Dec 27, 2014 7:32 pm Post subject: |
|
|
These are old posts... but I've just become interested in this topic.
I manage a couple of 32 bit based servers and I would like to compile only 32 bit applications, etc. Including the tool chain. How does one compile a 32bit only tool chain and then applications? |
|
Back to top |
|
 |
xaviermiller Bodhisattva


Joined: 23 Jul 2004 Posts: 8723 Location: ~Brussels - Belgique
|
Posted: Sat Dec 27, 2014 7:44 pm Post subject: |
|
|
in that case, take a i686 stage3 _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
 |
Jerry_McBride n00b

Joined: 23 Mar 2004 Posts: 10
|
Posted: Tue Dec 30, 2014 12:53 am Post subject: |
|
|
The gcc is multilib... |
|
Back to top |
|
 |
|