View previous topic :: View next topic |
Author |
Message |
OtonVM Tux's lil' helper
Joined: 30 Dec 2005 Posts: 103 Location: Slovenia
|
Posted: Thu Jun 08, 2006 6:02 pm Post subject: [SOLVED] x86 on amd64 |
|
|
Hello!
A really quick yes/no question: Can I install a pure 32bit system with the amd64 livecd?
Thank you!
Last edited by OtonVM on Thu Jun 08, 2006 6:25 pm; edited 1 time in total |
|
Back to top |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Thu Jun 08, 2006 6:05 pm Post subject: |
|
|
yes! do as if you had an athlon-xp. |
|
Back to top |
|
|
ksp7498 Apprentice
Joined: 08 Jun 2006 Posts: 225 Location: North Carolina - US
|
Posted: Thu Jun 08, 2006 6:12 pm Post subject: |
|
|
^ yeah just do it as an athlon xp and add on sse2 support. -march=athlon-xp -msse2 would work great. _________________ “Isn’t it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?”
– Douglas Adams |
|
Back to top |
|
|
OtonVM Tux's lil' helper
Joined: 30 Dec 2005 Posts: 103 Location: Slovenia
|
Posted: Thu Jun 08, 2006 6:24 pm Post subject: |
|
|
Ok, thank you both! It's just that the i686 livecd fails to detect stuff whareas amd64 works... |
|
Back to top |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Fri Jun 09, 2006 9:06 am Post subject: |
|
|
ksp7498 wrote: | ^ yeah just do it as an athlon xp and add on sse2 support. -march=athlon-xp -msse2 would work great. |
and -msse3 if you have the pni flag in /proc/cpuinfo |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Fri Jun 09, 2006 10:44 am Post subject: |
|
|
No. Need -march=athlon64 -msse3 . With these CFLAGS build 32bit executable but with optimizations for athlon64 _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Fri Jun 09, 2006 11:49 am Post subject: |
|
|
LinuxMan wrote: | No. Need -march=athlon64 -msse3 . With these CFLAGS build 32bit executable but with optimizations for athlon64 |
you're right as "-march=athlon64" is like -"mtune=athlon64 -mmmx msse{,2,3} -m3dnow{,ext}"
Now I fscking wonder if "-mtune={athlon-xp,athlon64}" are similar or if alignements variables changes, and in this case, wich one works best for a 32 bit install (or multilib with -m32). |
|
Back to top |
|
|
OtonVM Tux's lil' helper
Joined: 30 Dec 2005 Posts: 103 Location: Slovenia
|
Posted: Fri Jun 09, 2006 1:41 pm Post subject: |
|
|
For now I put CFLAGS="-O2 -march=athlon-xp -pipe -msse2 -msse3" and I'm pretty happy with them. I have no need for all the optimization on this world. This should be enough and stable. I found many things that didn't compile with athlon64 and I was getting sick of it. That's why I'm doing this in the first place. |
|
Back to top |
|
|
CaptainDangeax n00b
Joined: 15 Mar 2006 Posts: 21 Location: Rennes, France
|
Posted: Sun Jun 11, 2006 5:57 pm Post subject: |
|
|
If you're using a 32bits kernel, DON'T set march=k8 or march=athlon64, you will generate 64bits progs and they won't run. As said before, the best is -march=athlon-xp with the corrects switches. _________________ the map is not the territory.
Military plans are at best 50% reliable; if more, war would only have winners.
Athlon64 X2 4200+, Gigabyte s969 NForce3 Mainboard, 1GB Ram, NVidia 6600 GT 128MB graphic card, Gentoo 2005.1 for X86_64
Last edited by CaptainDangeax on Sun Jun 11, 2006 6:30 pm; edited 1 time in total |
|
Back to top |
|
|
OtonVM Tux's lil' helper
Joined: 30 Dec 2005 Posts: 103 Location: Slovenia
|
Posted: Sun Jun 11, 2006 6:04 pm Post subject: |
|
|
Exactly! |
|
Back to top |
|
|
htranou Tux's lil' helper
Joined: 08 May 2006 Posts: 96
|
Posted: Sun Jun 11, 2006 7:34 pm Post subject: |
|
|
CaptainDangeax wrote: | If you're using a 32bits kernel, DON'T set march=k8 or march=athlon64, you will generate 64bits progs and they won't run. As said before, the best is -march=athlon-xp with the corrects switches. |
Actually, you can. If GCC was built to build for i686 (or whatever x86 you put), it will only build those. I have a 32bit system with march=athlon64, and it works fine.
Though, athlon64 was only introduced in GCC 3.4, but since 3.4 is now in the stable tree... |
|
Back to top |
|
|
|