AMD K6 best compiler optimization flags?

AMD K6 best compiler optimization flags?

Post by Philip Bro » Sun, 29 Nov 1998 04:00:00



This isn't really linux specific, but since I got no answer in the gcc groups:

Can anyone tell me what's the best way to use gcc to optimize for an AMD cpu?
(specifically, K6)

would I just use gcc -mpentium?
how does that compare to a "real" pentium at the same speed?

[I haven't bought the system yet. I want to know what the extra $200 would
 get me]

--
[trim the no-bots from my address to reply to me by email!]
 --------------------------------------------------
"initiating.. 'getting the hell out of here' maneouver" - Lennier, babylon5

 
 
 

AMD K6 best compiler optimization flags?

Post by Emmanuel CARJA » Thu, 03 Dec 1998 04:00:00



> This isn't really linux specific, but since I got no answer in the gcc groups:

> Can anyone tell me what's the best way to use gcc to optimize for an AMD cpu?
> (specifically, K6)

I use pgcc with my K6-2 system using the -march=amdk6 -mcpu=amdk6
flags. But I really don't known what are the improvements as i didn't
ran any bench.
Quote:

> would I just use gcc -mpentium?
> how does that compare to a "real" pentium at the same speed?

A little bit less efficient on the floating point unit as usual.

--
As long as there are ill-defined goals, bizarre bugs, and unrealistic
schedules, there will be Real Programmers willing to jump in and Solve
The Problem, saving the documentation for later.

 
 
 

AMD K6 best compiler optimization flags?

Post by Philip Bro » Fri, 04 Dec 1998 04:00:00




>> This isn't really linux specific, but since I got no answer in the gcc groups:

>> Can anyone tell me what's the best way to use gcc to optimize for an AMD cpu?
>> (specifically, K6)
>I use pgcc with my K6-2 system using the -march=amdk6 -mcpu=amdk6

Interesting.... I'm assuming pgcc is just a trivial variant of gcc.
Perhaps gcc 2.8.1 supports -mamdk6? but that isn't mentioned in
the "info" files.

Or.... maybe not. I just grepped the source.

What is pgcc?

--
[trim the no-bots from my address to reply to me by email!]
 --------------------------------------------------
"initiating.. 'getting the hell out of here' maneouver" - Lennier, babylon5

 
 
 

AMD K6 best compiler optimization flags?

Post by Jose Ure? » Sat, 05 Dec 1998 04:00:00




> What is pgcc?

an Intel Pentium Enhanced/optimized gcc compiler

can  someone clarify this, but I in the back of my head I think I read about it first
in one of the Intel pages,
was Intel involved in creating this compiler

 
 
 

AMD K6 best compiler optimization flags?

Post by Emmanuel CARJA » Mon, 14 Dec 1998 04:00:00





> > What is pgcc?

> an Intel Pentium Enhanced/optimized gcc compiler

> can  someone clarify this, but I in the back of my head I think I read about it first
> in one of the Intel pages,
> was Intel involved in creating this compiler

pgcc is a patched version of egcs optimized for pentium processors. It
usualy introduce a gain in speed of 5% to 30%.

Home page: http://goof.com/pcg/index.html

Manu.
--
As long as there are ill-defined goals, bizarre bugs, and unrealistic
schedules, there will be Real Programmers willing to jump in and Solve
The Problem, saving the documentation for later.

 
 
 

1. AMD K6-2 Compiler Optimization

Evening,

Anyone know if there are any plans (or if someone has done this
already...) to produce a compiler that will produce code optimized for
the AMD-K6 II especially its 3d-Now extensions?

I think sometimes people forget the processors that exist other than
intel/alpha/motorola.

The K7 will really need an optimized compiler to make it sing as none
(correct me if i am wrong) will make use of the extra 2 FPU's built in
as things currently stand.

--
Richard Horton
remove the obvious to email me.

2. Turning off Shell Beeps

3. Any advantages running AMD K6 vs. AMD K6-2 w/3DNow!

4. List sym-links that point to dirs

5. hp-ux C compiler flags vs hp-aix C compiler flags

6. gcc 2.7.2

7. AMD K6 & optimizations?

8. RH5.0 install using Sanyo H94A CDROM

9. Optimizations for AMD K6 233?

10. Optimizations / FreeBSD 5.0 /AMD K6-2

11. Compiler optimization flags question...

12. Compiler option suggestions for best optimization under Athlon?

13. compiler target for AMD K6-2?