Results 1 to 17 of 17

Thread: good compiler

  1. #1

    Thread Starter
    Addicted Member Flip's Avatar
    Join Date
    Jun 2002
    Location
    Burke, VA
    Posts
    247

    good compiler

    what is a good compiler to use for C++? I'm a beginner, so i need something that doesn't automate it too much because i want to learn it. I have Visual C++, but i don't get how it works, probably because i don't really know how C++ works yet. The price doesn't matter...
    Last edited by Flip; Dec 4th, 2002 at 09:11 PM.
    The "company" website My homepage: nerisoft.com
    scars heal but glory is forever

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Visual C++ 7, or GCC 3.2.1.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Addicted Member Flip's Avatar
    Join Date
    Jun 2002
    Location
    Burke, VA
    Posts
    247
    i'll look into it
    The "company" website My homepage: nerisoft.com
    scars heal but glory is forever

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    gcc is the most standards compliant, but for a programming newbie this doesn't really matter. It's not very easy to get to run in windows as it was written for Unix systems.

    Visual C++ is not as standards compliant but it comes with a complete IDE. Also the Professional and Enterprise Edition house the best available compiler when it comes to optimizing. In the Standard Edition optimizations are disabled (grrr...!!!!)

    The best compiler for Intel-specific optimizing would be the one by Intel, but I don't know about standards compliance.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Oh, and you shouldn't mention software piracy on such forums. You IP is logged by the mechanism and the forum is open for everyone to read.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    The nice thing about Intel's is that it's a drop-in replacement within MSVC, which is a definite plus if you're using that environment. Otherwise, it's just a compiler like any other.

    CB: Standards do have an impact on new users as well, as they rapidly become non-new users

    I never managed to get GCC working natively under Windows, I guess I never managed to understand the all-important "specs" file. Cygwin works very well though.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The only person I know who explores the regions where VC++7 fails the standard but gcc does not is keda. And that's not something new users will do for several years.

    Didn't know that about Intel's. Maybe I should get it...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  8. #8

    Thread Starter
    Addicted Member Flip's Avatar
    Join Date
    Jun 2002
    Location
    Burke, VA
    Posts
    247
    What piracy ??
    The "company" website My homepage: nerisoft.com
    scars heal but glory is forever

  9. #9
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Originally posted by CornedBee
    In the Standard Edition optimizations are disabled (grrr...!!!!)
    Hehe... Microsoft slipped up there. The optimization options are removed from the GUI, but #pragma optimize still works fine.

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    OMG! man is back!
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  11. #11
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    yup, we haven't heard the last from our young guru
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  12. #12
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

  13. #13
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Really? Gotta try this immediatly!
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  14. #14
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Hmmm...

    I added this at the top of my cpp file, but the assembly output is not a single line shorter...

    #pragma optimize("agt", on)

    Are you sure this works?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  15. #15
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Originally posted by CornedBee
    Hmmm...

    I added this at the top of my cpp file, but the assembly output is not a single line shorter...

    #pragma optimize("agt", on)

    Are you sure this works?
    #pragma optimize("gsy", on) worked for me, IIRC. Not sure though
    I don't use Standard edition anymore anyways.

  16. #16
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Yeah, I just don't want to pay ~€350 mostly for apps I don't use (VB.NET, VC#, ...) and I don't have a company to buy it for me.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  17. #17
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Seems YDRC...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width