Thread: is there any serious problem??

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    73

    is there any serious problem??

    I have read in many posts here, that Turbo C is bad and people using it should change their compiler and so on...

    As far as my knowledge goes any compiler should be able to compile C code we have written then it what way do they differ....

    Does the execution time depend on Compiler??? I use TC myself and i am comfortable till now except that it crashes sometimes.
    Does your compiler affect the way of programming??? i tried using VisualStudio but i am not able to acquaint to it easily...
    Can anyone provide me help regarding VS please... I m not able to even include a header file in it...

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Yes it does matter, technology changes, whuch usually means in terms of compilers; problems are discovered, new techniques for optimization are found, things become more stable. Turbo C was replaced with Turbo C++ in 2005. And depending on what version you're using -- it's probably 16bit and designed a billion years ago.

    Your computer probably isn't 20 years old, so why would you use an ancient compiler?

    Personally, I'm not a huge fan of IDEs -- however it is nice to have everything "there". Haven't used VS since 6.0 so I can't help you there If you know C you should be able to work it out.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Yes, the compiler can have a dramatic effect on the code generated, which in turn affects execution time.

    Turbo C is also a 16-bit compiler, so it won't allow you to use more than 640KB of memory. It may not be a limit to you right now, but it is certainly easier to just have a 1MB array or malloc 25MB of memory when you need it, rather than having to work around a hard limit like that.

    Visual Studio can be a bit daunting, but it's not terribly complex to use.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by ElemenT.usha View Post
    Can anyone provide me help regarding VS please... I m not able to even include a header file in it...
    I can certainly help, but that is just not a very helpful description.
    Including is just doing
    #include <myfile>

    If you have PCH, you may need to include "stdafx.h" before everything else, otherwise you will get a compile error saying "reached end of file while looking for precompiled directive; did you forget to include stdafx.h" or something like that.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    73
    thank you elysia .... i was removing the stdafx.h everytime myself..
    how dum of me???

    and yes VS is a bit daunting..
    what would you guys suggest VS or GCC ??? now that i want to move on....

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Visual Studio is a great GUI, and perfect for beginners. There's no need to "move on" from it.
    GCC is inferior to Visual Studio IMHO, because it doesn't support data narrowing warnings.
    You can learn to use Visual Studio. It's really easy.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    > GCC is inferior to Visual Studio IMHO
    Haha, I'll let this one slide because you said IMHO

    I'm not sure "war of the compilers" would benefit anyone.

  8. #8
    Registered User
    Join Date
    Oct 2006
    Location
    Omaha, Nebraska
    Posts
    116
    Quote Originally Posted by ElemenT.usha View Post
    and yes VS is a bit daunting..
    what would you guys suggest VS or GCC ??? now that i want to move on....
    It also kind of depends what OS you're using and preference. Now, granted if you're using windows you do have other choices, but if you want to develop seriously for windows, I'd say you're kind of limited to microsoft's compilers (and IDE if you want).
    And of course if your on the linux/unix side of the spectrum you're probably using gcc and xcode for mac.
    Hope that helps.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  2. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  3. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  4. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  5. beginner problem
    By The_Nymph in forum C Programming
    Replies: 4
    Last Post: 03-05-2002, 05:46 PM