|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
||||
I would use CPUTYPE=athlon in make.conf for that CPU. For gcc 4.2.x, these are your choices for x86/x86_64
http://gcc.gnu.org/onlinedocs/gcc-4....002d64-Options If building kernel, you haven't got a lot of choice for the i386 arch. For that one, in the kernel config you'd have to use: cpu I686_CPU I don't mean to go against the rules here (I agree with that in general), but I don't mind people asking related questions in my threads. (In fact I don't consider it "my thread", I only started it). I spend a lot of time in forums, and sometimes in a thread something will inspire a question and it is practical to ask it there. It isn't necessarily thread hijacking. I believe this to be one of them. The topic did change since my original question... we got into CPUTYPE in make.conf and other make options. |
|
|||
Just wanted to say thanks for all of the helpful information that has been posted in this thread. It really helped me tie together a bunch of the research I was doing before compiling my custom kernel and kept me from having to make posts to ask questions.
|
|
||||
This is best source if you are looking for basic CPUTYPE / CFLAGS:
http://gentoo-wiki.com/Safe_Cflags
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
||||
Quote:
|
|
||||
from gcc.gnu.org manual:
Quote:
Quote:
Also -fomit-frame-pointer does good things on C code, but it may break C++ code, so use only for C.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
||||
It's not that they don't recommend -fomit-frame-pointer for x86_64, it's just that you don't need to specify it because -Oanything enables it. (and apparently doesn't for x86, so they show that you can explicitly do so). Also, just because they are showing something as "safe" for gentoo, doesn't mean there is much point in doing it.
|
|
||||
GCC and Linux kernel is the same in all Linux distribution so Gentoo is no point here, GCC is also on FreeBSD and other UNIX systems, so this flag also works there.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
||||
I wouldn't go too far with that point. Yes, it is the same GCC, but some of gcc's optimizations have on occasion assume some linuxisims.
Optimizations that work on the linux kernel or gnu code may still produce broken code on the BSD tree. That is still a useful list, but don't take it as gospel.
__________________
The only dumb question is a question not asked. The only dumb answer is an answer not given. |
|
||||
Quote:
I always used -fomit-frame-pointer for all Ports and they NEVER been broken, it just disables debuging and you get one register more for other things.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
|||
The frame pointer actually has additional purposes, honesty, you should reconsider using all those optimizations, some levels of optimizations may be dangerous.
In the kernel, inline assembly is often used.. it may even rely on the stack pointer being present. Unless you have a deep intimate knowledge of compiler mechanics and kernel internals.. stop recommending such things vermaden. |
|
||||
Quote:
I would be GLAD to see that quote. I know what I am doing.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FreeBSD 7.2 amd64 no sound | erim | FreeBSD General | 5 | 3rd June 2009 07:54 AM |
strange load problem on freebsd 7.0 amd64 | skynet_tech | FreeBSD General | 3 | 11th September 2008 09:49 PM |
Wine on FreeBSD 7.0 amd64 | BlueJayofEvil | FreeBSD Ports and Packages | 13 | 29th July 2008 12:22 AM |
jdk16 plugins on FreeBSD 7 AMD64 | ninjatux | FreeBSD General | 0 | 26th June 2008 07:55 PM |
FreeBSD 7.0 amd64 make installworld fails. | KernelPanic | FreeBSD Installation and Upgrading | 8 | 11th June 2008 04:34 PM |