Results 1 to 39 of 39

Thread: The Best C++ Compiler?

  1. #1

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134

    The Best C++ Compiler?

    Is it MSVC++? That's what I'm about to use (using Dev C++ right now, lockups!!!), I just need to know what'll give me the most bang for my buck/dl time.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  2. #2
    denniswrenn
    Guest
    Dev C++ is free, so I recomend that if you don't have much money, but Visual C++ has all kinds of cool stuff, like resource editors and such... Borland C++ Builder is pretty good too, but I don't like the interface...

    If you have the money, I think you should buy MSVC++.

  3. #3

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Oh I've got MSV. Studio 6 so I have it already.. just wanted to know if I needed to buy borland. Dev C++ seems to suck pretty badly.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    denniswrenn
    Guest
    Don't buy Borland unless there is something specific in it that you need, I prefer VC++ to it.

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I prefer VC++, although egcs (GCC/G++) is pretty damn good, and I'm not sure which is actually better.

    Visual C++ has the nicest IDE I've ever seen, 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

  6. #6
    denniswrenn
    Guest
    I think he may be talking of IDE's... The only difference I see between different compilers is Borland's really ****s up the function names in DLLs... Mike, what makes egcs so good? Is it run from the command line? And, where can I get it?

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    The GNU compiler runs from the command line, as all Unix-derived tools do It's in DJGPP and a few other packages (Cygwin for one). It's extremely popular.

    www.cygwin.com
    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

  8. #8
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    The thing which I like about about vc++ is that when you are programming windows, it completes the parameter for you and it also shows a tooltip corresponding to certain function!
    Baaaaaaaaah

  9. #9
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Hehe mine doesn't do that. Still on VC++5 here so I have to know it all from memory, or use the PSDK constantly
    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

  10. #10
    denniswrenn
    Guest
    Completes the parameter for you? Huh? Don't quite understand what you mean there...

  11. #11
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    IntelliSense like in VB5 and VC++6.
    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

  12. #12
    denniswrenn
    Guest
    Oh, you mean when you partially type in a variable name and hit Tab or Space or something?

    VC++6.0 also has a drop down list of all the members of a class, when you type the dot(.) after an instance of a class.

  13. #13
    wossname
    Guest
    Sorry this is a bit off topic, but has anyone on this forum actually tried to create either a new programming language or a compiler (for an existing language)?

    I'd love to create a simple new language, but I have neither the brains nor the insight as to what is required. I bow to those who create compilers! Surely that is the hardest thing to program?

  14. #14
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    New languages are usually created to fulfil a specific "niche" requirement now. I don't think many people bother creating general-purpose languages anymore because C, C++, Pascal, and Basic seem to have it cornered now.

    Writing a compiler has got a lot easier because at least we have compilers to start from For example, the VC++ compiler is written in C++
    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

  15. #15
    denniswrenn
    Guest
    Originally posted by parksie
    New languages are usually created to fulfil a specific "niche" requirement now. I don't think many people bother creating general-purpose languages anymore because C, C++, Pascal, and Basic seem to have it cornered now.

    Writing a compiler has got a lot easier because at least we have compilers to start from For example, the VC++ compiler is written in C++
    Yeah, it must've been a ***** writing the first Assembler....

  16. #16
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Although at that time they were used to coding things by hand instruction by instruction.
    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

  17. #17
    denniswrenn
    Guest
    Yeah, but it still must not've been fun...

  18. #18
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I suppose not It's an iterative process, making compilers. You write a proto-assembler in machine code, and progressively make more and more complex assemblers using the one you've just created. Then, you write a compiler in ASM, and the process keeps going
    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

  19. #19
    denniswrenn
    Guest
    Originally posted by parksie
    I suppose not It's an iterative process, making compilers. You write a proto-assembler in machine code, and progressively make more and more complex assemblers using the one you've just created. Then, you write a compiler in ASM, and the process keeps going
    I don't think anybody's going to try to make any serious compiler in VB though, *giggle*

  20. #20
    wossname
    Guest
    I agree, I think its getting crazy the amount of complexity in things like Visual Studio, how do MS keep track of it all....oh yeah thats right, they write a program to keep track of it. Uh oh, now we've got more complexity, "hey, someone please page the MetaProgramming department, we need a new program to keep tabs on the program that kept tabs on VStudio". etc...

    Urgh, I get the feeling that Bill Gates found the last great opportunity in this world and pounced on it bigtime. Lucky *****rd. Whats left for us?

  21. #21
    wossname
    Guest
    hey, dont get me wrong, i wasnt thinking of a full scale mega language, just an interpreter or something like that (dare I say it, something akin to *.bat files!!).

  22. #22
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Umm...pork scratchings
    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

  23. #23
    denniswrenn
    Guest
    pork scratchings?

    I don't want to know what you do in your free time Mike...

  24. #24
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    He asked what was left for us
    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

  25. #25
    Zaei
    Guest
    It is extremely easy to write an interpreted language in VB, because of all the nice little string functions.

    Writing a compiler isnt as hard as it sounds. You just have to know how to turn whatever kind of code into assembly. Then just take the next step, and convert each ASM instruction into binary (which is already done for you, because each instruction has a corresponding bytecode). If you really want to know what it is like, there is a Script Tutorial over at Flipcode, which takes you from designing the language to writing the compiler for it.

    Z.

  26. #26
    Zaei
    Guest
    oh, yeah... MSVC++6.

    Z.

  27. #27
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    On the very first computers they programmed using physical components, one per instruction. I'd prefer having VC++6 around though It's fun thought writing your own languages, or make emulators for them, i've made for both epsilon and befunge
    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.

  28. #28

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Well thanks, but by the 3rd post I had installed MSVC++6 so I'm pretty much set, thanks for the help. If only there was a VB->C++ compiler .

    Although you can't really translate per say VB to C++ or vise versa, because of all the different thingeys and such. God pointers are the best
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  29. #29
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Finally...someone else who likes pointers I love 'em...dead nice

    Make sure you install SP5 *now* though - it's very important for VC++ (much more so than VB). It fixes problems with the libraries and headers that can really cripple your development.
    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

  30. #30
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    i'm deeply in love with pointers

    too it's the next best thing after virtual inheritance and templates
    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.

  31. #31
    Zaei
    Guest
    Who DOESN'T like pointers? Although there was some guy on the GameDev forums wondering what they were good for o.0. People are strange...

    Z.

  32. #32

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I mean it's ALMOST like using ByRef, but VB's psuedo-pointers are no match for true pointers. The only instance in VB I've actually used pointers in is GetLockedArray. I'm pretty sure that's a pointer.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  33. #33
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Strings and Arrays in UDT's can be used as fake pointers
    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.

  34. #34
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    VC++
    VC++
    VC++
    VC++
    VC++
    VC++
    VC++
    VC++
    VC++
    VC++
    VC++
    VC++
    VC++
    VC++
    VC++

    Tho i only have SP3

  35. #35
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Heh. VC++5 no service pack - because I'm too lazy to wait for all 150MB or so to download (it's free but takes too long).
    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

  36. #36
    denniswrenn
    Guest
    I think I've got SP5... either that or no SP.. I downloaded SP5, but I can't remember if I installed it...

  37. #37

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Right now I'm waiting for a book to learn (not just from a refrence manual !!) actual C++. So I was wondering what book should I get?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  38. #38
    denniswrenn
    Guest
    Sams Teach Yourself C++ in 21 Days... There are also several others in the FAQ that are great as well..

  39. #39
    New Member
    Join Date
    Apr 2001
    Location
    Norway
    Posts
    12

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