Re: Bad performance on alpha? (make buildworld)

From: Charles Swiger (cswiger_at_mac.com)
Date: 02/25/04

  • Next message: Chuck Swiger: "Re: Bad performance on alpha? (make buildworld)"
    Date: Tue, 24 Feb 2004 20:17:07 -0500
    
    

    On Feb 24, 2004, at 3:26 PM, Nikos Ntarmos wrote:
    > IIRC the 600MHz EV56's performance wrt integer operations (such as
    > compiling) is somewhere in the vicinity of a 400MHz P-II, so the
    > difference you see in turn-around times when buildworld'ing isn't
    > quite that big. If the operations were identical, you should see
    > better times when building on the alpha. However, also take into
    > account that compiling (and optimizing) for a RISC CPU, apart from
    > generating larger binaries, is AFAIK supposedly more difficult than
    > compiling (and optimizing) for a CISC CPU.

    I'm afraid you've got this backwards. :-)

    The primary attributes of RISC architectures, namely lots of registers,
    a relatively simple but orthagonal instruction set, and a relatively
    fast clock rate / CPI ~= 1.0 / a short pipeline make it far easier for
    the compiler to generate and optimize code.

    CISC architectures make the compilers job much harder because they tend
    to require lots of register spills, they tend to have very long
    pipelines which involve hazards and require a lot of instruction
    reordering to avoid stalling the pipeline to often. The amount of CPU
    clocks it takes per instruction (CPI) often varies on CISC as is
    generally much larger than ~1.0, and sometimes varies from CPU model to
    CPU model making it far more difficult to determine the "fastest"
    instruction sequence.

    At a broader level, RISC closely matches the intermediate code model
    compilers work with than CISC does, which makes it easier to generate
    target code from the intermediate code. Often, on RISC there is little
    difference between the two, just as there is less difference between
    optimized and unoptimized code, whereas on CISC there is a lot more
    work to be done in order to get optimized code working with comparible
    efficiency.

    -- 
    -Chuck
    _______________________________________________
    freebsd-performance@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"
    

  • Next message: Chuck Swiger: "Re: Bad performance on alpha? (make buildworld)"

    Relevant Pages

    • Re: Tuning make.conf
      ... I have seen in the ..../examples/etc/make.conf that one of the possible "CPUTYPE" is core2 which looks to me as the right one but a geekier friend of mine that lives inside gentoo-linux told me that this option is unknown is gcc 4.2 and will be working from gcc4.3, so he told me to use "prescott". ... And what do I have to set to make gcc aware of the type of CPU I have? ... Disabling unnecessary services or installing apps you often use without support for X and Y will give you much better performance than messing with CFLAGS and such. ... Also, makeopts and -pipe just make _compiling_ faster, not the applications themselves!!!. ...
      (freebsd-questions)
    • Re: Mac mini OK for development?
      ... While the cpu was pegged at ... newer GCC versions might not choke so badly on MySQL. ... compiling, but I'm having a hard time seeing this with Activity Monitor. ... As long as you have enough RAM to prevent swapping, ...
      (comp.sys.mac.programmer.help)
    • Re: Help needed with GTK+2.0
      ... > I was trying to get started with GTK+2.0 by compiling the example ... > source provided in GTK tutorial. ... This tells you the cpu hit an instruction it doesn't recognize. ...
      (comp.unix.programmer)
    • Re: Low/Jerky performance in FreeBSD 7
      ... The mouse starts to be jerky when compiling, window updates/redraws are slow and bump the CPU usage up to 100%. ... I start a kernel compile and the console mouse becomes jumpy. ...
      (freebsd-questions)
    • Re: Low/Jerky performance in FreeBSD 7
      ... The mouse starts to be jerky when compiling, window updates/redraws are slow and bump the CPU usage up to 100%. ... I start a kernel compile and the console mouse becomes jumpy. ...
      (freebsd-performance)