LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2001, 04:31 PM   #1
mindsurfer
LQ Newbie
 
Registered: Sep 2001
Location: Canada
Posts: 8

Rep: Reputation: 0
GCC + Athlon


Hi, can anybody tell me what are the cflags for an Athlon 1G? Thanks very much!
 
Old 12-05-2001, 06:15 PM   #2
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
well... i've never heard of flags for different chip architectures... although it makes sense that they should exist...

does anyone else have any light to shine on this one? i feel like i should know this
 
Old 12-06-2001, 01:09 PM   #3
mindsurfer
LQ Newbie
 
Registered: Sep 2001
Location: Canada
Posts: 8

Original Poster
Rep: Reputation: 0
Got it..

gcc-2.95
CFLAGS = -s -static -O3 -fomit-frame-pointer -Wall
-mcpu=pentiumpro \
-march=pentiumpro -malign-functions=4 -funroll-loops \
-fexpensive-optimizations -malign-double
-fschedule-insns2 \
-mwide-multiply

gcc-3.x
CFLAGS = -s -static -O3 -fomit-frame-pointer -Wall \
-mcpu=athlon \
-march=athlon -malign-functions=4 -funroll-loops \
-fexpensive-optimizations -malign-double \
-fschedule-insns2 \
-mwide-multiply

Thanks to guys at AMD support and the source article (somewhat dated) at : http://aboutlinux.com/art_k7opt1_a.html.

Good luck.

Last edited by mindsurfer; 12-06-2001 at 01:10 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
Is it an ATHLON, or ATHLON-THUNDERBIRD ? qwijibow Linux - General 5 07-27-2004 06:33 AM
GCC for athlon?. ras123 Linux - Software 4 05-03-2004 12:57 PM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 10:23 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration