Главная страница


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)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Athlon и GCC   Andrey Semenuk   24 Mar 2003 02:26:11 
 Athlon и GCC   Igor Zubkov   27 Mar 2003 11:09:18 
 Re: Athlon и GCC   Valentin Nechayev   27 Mar 2003 23:20:48 
 Athlon и GCC   Andrey Semenuk   30 Mar 2003 02:02:29 
 Re: Athlon и GCC   Anton Kozhapenko   30 Mar 2003 13:55:26 
 Athlon и GCC   Andrey Semenuk   30 Mar 2003 15:25:14 
 Athlon и GCC   Sergey Sholokhov   31 Mar 2003 01:36:12 
 Re: Athlon и GCC   Michael Shigorin   01 Apr 2003 19:05:33 
Архивное /ru.linux/33493e82cecb.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional