Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

Compiling on dual core system

I am trying to get the Nios II IDE working on my new laptop which has a Core2 DUO CPU on board. When compiling the IDE seems to only start one compiler task though.

Does anyone know how to set it to use both cpu cores when doing the compilation as this would speed it up quite a bit. I dont see why it isnt obvious as compiling source is one of those tasks that parallelises really well.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If you're using Windows, I'd advocate running 'make -j2 -s' from a Command Shell after you've built, initially from within the IDE. There might be some way to turn this switch on, automatically, within the IDE that I'm not aware of...

    On Linux, this should work, but I'm not sure if the Cygwin environment (used in Windows) allows you to do this. Also, keep in mind that the largest source of "slowness" when using Windows is that Cygwin layer. Linux doesn't have this problem and is, therefore, significantly faster.

    Regards,

    - slacker
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Ah, right, Ive just added -j2 to the build command which seemed to give me two instances of make, but your right it didnt really speed things up, the process hogging all the cpu during build was java.exe with make using around 5% or so.

    Im thinking of running quartus and Nios IDE under Ubuntu which ive got on my laptop, will the 64bit version of Quartus etc. be much faster than the 32bit version im running on windows XP at the moment?

    Regards

    Neil

    --- Quote Start ---

    originally posted by slacker@Apr 5 2007, 09:40 AM

    if you're using windows, i'd advocate running 'make -j2 -s' from a command shell after you've built, initially from within the ide. there might be some way to turn this switch on, automatically, within the ide that i'm not aware of...

    on linux, this should work, but i'm not sure if the cygwin environment (used in windows) allows you to do this. also, keep in mind that the largest source of "slowness" when using windows is that cygwin layer. linux doesn't have this problem and is, therefore, significantly faster.

    regards,

    - slacker

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=22844)

    --- quote end ---

    --- Quote End ---