|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Igor Zubkov 2:465/239.13 27 Mar 2003 11:09:18 To : Andrey Semenuk Subject : Athlon и GCC -------------------------------------------------------------------------------- Mar 24 01:26 03, Andrey Semenuk wrote to All: AS> Hичего не понимаю. В info gcc ясно написано: Я тоже ;) AS> `-mcpu=CPU-TYPE' AS> Assume the defaults for the machine type CPU-TYPE when AS> scheduling AS> instructions. The choices for CPU-TYPE are `i386', `i486', AS> `i586', `i686', `pentium', `pentiumpro', `k6', and `athlon' AS> _[skip]_ AS> `-march=CPU-TYPE' AS> Generate instructions for the machine type CPU-TYPE. The AS> choices AS> for CPU-TYPE are the same as for `-mcpu'. Moreover, specifying AS> `-march=CPU-TYPE' implies `-mcpu=CPU-TYPE'. У меня: `-mcpu=CPU-TYPE' Tune to CPU-TYPE everything applicable about the generated code, except for the ABI and the set of available instructions. The choices for CPU-TYPE are `i386', `i486', `i586', `i686', `pentium', `pentium-mmx', `pentiumpro', `pentium2', `pentium3', `pentium4', `k6', `k6-2', `k6-3', `athlon', `athlon-tbird', `athlon-4', `athlon-xp' and `athlon-mp'. AS> Hо почему тогда получается вот это: AS> cc -c -O3 -march=athlon -fpic -DFLINTSTONE -DLINUX -Wall AS> -fwritable-strings AS> -I/usr/local/src/firebird-1.0.2.908/interbase/include -DPROD_BUILD AS> array.c gcc -march=athlon -o test test.c ls -l -rwxr-xr-x 1 root root 3890 Мар 27 10:10 test AS> cc1: bad value (athlon) for -march= switch AS> Блин. AS> andrey@pitkairn:/usr/local/src/firebird-1.0.2.908$ gcc -v AS> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs AS> gcc version 2.95.4 20011002 (Debian prerelease) [root@merlyn root]# gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/specs Configured with: ../gcc-3.2.1/configure --prefix=/usr --enable-shared --enable-threads=posix --with-slibdir=/lib --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.2.1 AS> И с 2.95.4, и c 3.0.4 одна и та же фигня. Что я делаю не так? AS> Откомпилю пока с -march=k6 Смени gcc на 3.2.x должно заработать. AS> Andrey Regards, Igor Registered Linux From Scratch User #7301 --- * Origin: sorry за орфаграфию (c) (2:465/239.13) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/33493e82cecb.html, оценка из 5, голосов 10
|