|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Dennis Vshivkov 2:5042/7 23 Apr 2001 15:59:44 To : Arkady Zaharov Subject : Re: gcc -------------------------------------------------------------------------------- AZ> Чем отличаются ключики gcc: -march, -mcpu, применительно к x86 ? AZ> Hу вот RedHat собирают с такими ключами: -march=i386 -mcpu=i686. AZ> Мне тут не все ясно. В gcc-3.* gcc ругается на -m[3-6]86. AZ> Говорит надо юзать -march -mcpu. Имеет право. :) $ gcc --version 2.96 info gcc > Invoking GCC > Submodel Options > i386 Options: Intel 386 Options ----------------- These `-m' options are defined for the i386 family of computers: `-mcpu=CPU TYPE' Assume the defaults for the machine type CPU TYPE when scheduling instructions. The choices for CPU TYPE are: `i386' `i486' `i586' `i686' `pentium' `pentiumpro' `k6' While picking a specific CPU TYPE will schedule things appropriately for that particular chip, the compiler will not generate any code that does not run on the i386 without the `-march=CPU TYPE' option being used. `i586' is equivalent to `pentium' and `i686' is equivalent to `pentiumpro'. `k6' is the AMD chip as opposed to the Intel ones. `-march=CPU TYPE' Generate instructions for the machine type CPU TYPE. The choices for CPU TYPE are the same as for `-mcpu'. Moreover, specifying `-march=CPU TYPE' implies `-mcpu=CPU TYPE'. `-m386' `-m486' `-mpentium' `-mpentiumpro' Synonyms for -mcpu=i386, -mcpu=i486, -mcpu=pentium, and -mcpu=pentiumpro respectively. These synonyms are deprecated. Видно, пора пришла эти deprecated synonyms на пенсию отправить. -- /Awesome Walrus <walrus@amur.ru> Brainbench MVP for Linux - http://www.brainbench.com --- tin/1.5.6-20000803/Dust, Linux/2.2.19/i686, 23 days, 22:48:24 * Origin: AVATAR, беспечный ездок (2:5042/7@fidonet.org) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/175615d5ba81d.html, оценка из 5, голосов 10
|