View previous topic :: View next topic |
Author |
Message |
gcasillo l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/14717487483f98396f61d5f.png)
Joined: 23 Sep 2003 Posts: 739 Location: Cincinnati, Ohio, USA
|
Posted: Wed Oct 27, 2004 6:26 am Post subject: Will programs compiled w/ -march=pentium3 run on pentium4's? |
|
|
My laptop died on me last week. It is a 1.6GHz P4. I compiled everything with "-march=pentium4." Naturally, the backup I was issued is a 600MHz P3. PITA, but since I keep almost all of my data backed up and most of my work is on servers, I decided to reinstall from stage 1 and compile everything with "-march=pentium3."
When my P4 laptop returns, I'd like to pick up where I left off. Will my programs compiled with pentium3 run on it? Or will I get a bunch of "Invalid instruction" errors again and have to start over? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gcasillo l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/14717487483f98396f61d5f.png)
Joined: 23 Sep 2003 Posts: 739 Location: Cincinnati, Ohio, USA
|
Posted: Thu Oct 28, 2004 6:12 am Post subject: |
|
|
I guess its time to try and see what happens. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kaffeen Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/53096610341742a1b5f9e7.jpg)
Joined: 27 Jan 2004 Posts: 139 Location: The Frozen North
|
Posted: Thu Oct 28, 2004 6:33 am Post subject: |
|
|
According to make.conf.example, the code should not work if you try to use it on a Pentium 3 if it was compiled with -march=pentium4. The text from make.conf is :
Quote: | # -march=<cpu-type> means to take full advantage of the ABI and instructions
# for the particular CPU; this will break compatibility with older CPUs (for
# example, -march=athlon-xp code will not run on a regular Athlon, and
# -march=i686 code will not run on a Pentium Classic. |
Edit: I misunderstood you and got it backwards. -march=pentium3 will work with a Pentium4, just not vice versa. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|