Gentoo Archives: gentoo-performance

From: Andrea Pretto <prettz_it@×××××.it>
To: gentoo-performance@l.g.o
Subject: Re: [gentoo-performance] gcc optimizations
Date: Thu, 01 Jul 2004 09:17:54
Message-Id: 20040701091749.83445.qmail@web25102.mail.ukl.yahoo.com
In Reply to: Re: [gentoo-performance] gcc optimizations by Paul Ingelbrant
1 Gcc cannot to preview the contents of "if{ ... }".
2 In this case there is a single instruction, but in
3 others cases the if statement can contain a lot of
4 instructions.
5 The I think gcc deals the "if" mechanically, and it
6 don't look for particular "if" with one istruction as
7 in your example.
8
9 After that, there is not a flag or a special
10 opitmization that favourite use of cmov in asm code,
11 cmov it's only a instruction.Than you can use it
12 "manually" in inline assembler.
13
14 --- Paul Ingelbrant <pi@×××××.se> ha scritto: >
15 Quoting Andrea Pretto <prettz_it@×××××.it>:
16 >
17 > > The flag -mmmx ( like -msse -m3dnow etc...)
18 > activate
19 > > some extensions for C language.
20 > >
21 > > See this:
22 > >
23 >
24 http://gcc.gnu.org/onlinedocs/gcc-3.3.3/gcc/X86-Built-in-Functions.html#X86%20Built-in%20Functions
25 > >
26 > > So, those flag activate these built-in functions.
27 >
28 > I see.
29 >
30 > But what's the matter with the cmov instruction?
31 > Should be reasonably "simple"
32 > for gcc to use it automatically...
33 >
34 > --
35 > gentoo-performance@g.o mailing list
36 >
37
38
39
40
41
42
43 ____________________________________________________________
44 Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo!
45 http://companion.yahoo.it
46
47 --
48 gentoo-performance@g.o mailing list