[Asterisk-Users] Re: speex

James H. Cloos Jr. cloos at jhcloos.com
Mon May 17 20:45:25 MST 2004


>>>>> "brian" == brian k west <brian at bkw.org> writes:

brian> I toyed with -msse and -mmmx and others too but couldn't put
brian> any of those in. :P

The options -msse, -msse2, -mmmx et al are all implied by the
relevant -march options.  uname only reports i686, so you have to use
some other construct to get things like -march=pentium3 (implies -msse
and -mmmx), -march=pentium4 (also implies -msse2) etc for k7 and k8.
On amd64 when compiling -m64 almost everything useful is already
implied (k8 does not support -msse3 and the intel amd64 chips lack
one thing that -march=k8 implies).

Similarly, -O3 implies -funroll-loops.  

Since there is no portable way to automatically decide -march for
pentium3, pentium4, k7, k8, et al the starndard practice is to
specify them manually at configure or compile time.

Perhaps the top Makefile should have an

MARCH=

line that defaults to $(shell uname -m) but can be changed once by
the user and is propagated down to all subdirs in a useful way
(including as part of CFLAGS for all configure calls).

Then one could either edit the top Makefile or run make MARCH=....

-JimC



More information about the asterisk-users mailing list