Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I'm considering upgrading from Mandrake 10.0 to a custom-compiled Gentoo box. I need some advice as to what parameters and flags i should pass into the g++ (or maybe ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2004
    Posts
    43

    Kernel Compilation advice needed


    Hello,

    I'm considering upgrading from Mandrake 10.0 to a custom-compiled Gentoo box. I need some advice as to what parameters and flags i should pass into the g++ (or maybe even icc ) command, given my system specs. Here they are:

    Intel P4 530 3.0GHz (1MB L2 cache, 800FSB, HyperThreading, etc.)
    Integrated GMA 900 (915G chipset) graphics
    512MB DDR-400 RAM
    80GB SATA hard drive
    Asus P5GDC-V mobo (PCIe)
    Integrated network hardware

    What adds to my confusion is that Knoppix 3.4 shows my processor as an i586, whereas mandrake 10.0 shows it as a i686. Moreover, both distros show two identical processors, even though i don't have a dual processor setup (I think this is due to HyperThreading though). Whats the optimum g++ command for my system? Thanks.

    P.S: I want it fully optimised for speed. Memory is definitely not an issue here.

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Here is the page that you'll want to check out:

    Using the GCC compiler

    You'll definately want these in your CFLAGS:

    Code:
    -O3 -pipe -mcpu=pentium4 -msse -msse2 -mmmx -fomit-frame-pointers
    Beyond that, check out all the optomization options on the site to which I linked you. Also check out section 5.e. of the Gentoo Installation guide (x86).
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Just Joined!
    Join Date
    Oct 2004
    Posts
    43
    thank you very much for the incredibly helpful link, sarumont!!!

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •