+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Ultimate Member BFlurie's Avatar
    Join Date
    Oct 2001
    Location
    Hagerstown, Maryland
    Posts
    3,221

    Linux compilation opt-flag?

     
    A minor issue 'cause I can't see much difference with compiling opt-flags, but would a K6-3 w/on-board cache be best modeled as an i586, i686, or perhaps even an Athlon?

    I use the K6 flag for the kernel, which works fine, but gcc-2.95 doesn't define the K6 flag for general program source compiling, so I have to choose something else.
    Last edited by BFlurie; December 25th, 2002 at 01:28 AM.

  2. #2
    Ultimate Member pbharris's Avatar
    Join Date
    Oct 2001
    Location
    Chicago, IL
    Posts
    2,514
    hello,
    for my k6 i use CFLAGS="-march=i586"

    edit! forgot closing quote mark!
    Last edited by pbharris; December 24th, 2002 at 03:52 PM.
    Odds are very good there are several spelling mistakes in this post.

  3. #3
    Ultimate Member BFlurie's Avatar
    Join Date
    Oct 2001
    Location
    Hagerstown, Maryland
    Posts
    3,221
    I wonder if the i586, i686, k6, etc. flag in itself does anything or is only an identifier. Perhaps the only real "tweaks" are the flags like -- fomit-frame-pointer, pipe, preferred-stack-boundary=2, etc.

  4. #4
    Where's the beef? Scott Tiger's Avatar
    Join Date
    Mar 2002
    Location
    Southwest, VA
    Posts
    3,586
    Supposedly there's some preformance to be gained by compiling for you chip architecture but that's just what I've heard. This:

    export CFLAGS="-O2 -march=i686 -fomit-frame-pointer -malign-functions=4 -mpreferred-stack-boundary=2"
    export CXXFLAGS=$CFLAGS

    Is what I've put into my .bash_profile so that when I compile it builds this way for all source packages.

    Merry Christmas..
    Where's Lunch?

  5. #5
    Ultimate Member BFlurie's Avatar
    Join Date
    Oct 2001
    Location
    Hagerstown, Maryland
    Posts
    3,221
    Mine's similar. Whatcher CPU?

  6. #6
    The Mad Redhatter storm2k's Avatar
    Join Date
    Oct 2001
    Location
    NJ
    Posts
    3,552
    ok, i have an athlon xp... could i put into my profile -march=athlon and get this supposed speed increase?

    i'd also LOVE to get rpm rebuilds to better work with that... they don't too well unfortunately...

  7. #7
    Ultimate Member Praetorian's Avatar
    Join Date
    Oct 2001
    Location
    Arizona
    Posts
    2,538
    -march="i686" would be correct, I think.

  8. #8
    Member
    Join Date
    Oct 2001
    Location
    australia
    Posts
    445
    go here for people obsessed with compiler flags

  9. #9
    The Mad Redhatter storm2k's Avatar
    Join Date
    Oct 2001
    Location
    NJ
    Posts
    3,552
    see that's confusing me. have they depreciated the -march athlon thing nowadays?

    where's otheos when you need him? :P he knows all about this stuff...

  10. #10
    Member
    Join Date
    Jul 2002
    Location
    edit - gone north
    Posts
    218
    edit
    Last edited by Centurion; April 16th, 2003 at 12:56 PM.
    Centurion - From Canada

  11. #11
    Member quux's Avatar
    Join Date
    Nov 2002
    Location
    Hamburg
    Posts
    244
    *** all that we C or Scheme is
    but a dream within a dream ***

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews