CrazyEngineers
  • GCC vs Turbo C

    yorha 2b

    Member

    Updated: Oct 26, 2024
    Views: 2.4K
    So,
    I am new in this programming thing ... being an EC engineer i was never too much involved in Languages.
    But recently i wanted to learn all programming languages anyhow ...
    so i started with C ... Never been a fan of Windows, so i wanted to do all this coding & learning it in Fedora Linux. Somehow, while trolling GCC vs TC in CE Forums, I found one of fellow CEan wrote that GCC is for advanced level programming & TC is for newbie ... To be honest, I found GCC very convenient.

    I just need reviews and guide from veteran programmers about ... is it okay that i stick with GCC compiler .. or should i opt TC compiler.
    & please elaborate the difference between GCC & TC compilers.

    Any help and criticism are welcome ! 😀
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • yorha 2b

    MemberJul 12, 2012

    no one ?? 😔 😭
    Are you sure? This action cannot be undone.
    Cancel
  • [Prototype]

    MemberJul 14, 2012

    Of course GCC is totally fine. You'll find that in almost all the free linux distro and what not. There's nothing like compiler for advance & compiler for newbie. Until the your program is syntactically correct, compiler used is of least concern. Yes, every compiler offers certain compiler specific features (ever seen that #pragma ?), but those are seldom used as they hurt the portability of the program.

    TC is outdated if you ask me, while gcc is still under active development, so its good idea to stick to it. As a short answer to your question, it doesn't matter which compiler you use. If you know the language itself, your programs will compile regardless of compiler its thrown at.

    Though, I would advice to not be a "wanna be" cool programmer(trying to write code in notepad) and download an IDE for coding. It really helps a lot in learning & further coding. You can get the Code::Block IDE for free, bundled with gcc.

    We all know no one likes to work in blue screen with white font when you great graphical interfaces available..😉

    Hope that answers you question.

    Best Regards.
    Are you sure? This action cannot be undone.
    Cancel
  • yorha 2b

    MemberJul 14, 2012

    [Prototype]
    Of course GCC is totally fine. You'll find that in almost all the free linux distro and what not. There's nothing like compiler for advance & compiler for newbie. Until the your program is syntactically correct, compiler used is of least concern. Yes, every compiler offers certain compiler specific features (ever seen that #pragma ?), but those are seldom used as they hurt the portability of the program.

    TC is outdated if you ask me, while gcc is still under active development, so its good idea to stick to it. As a short answer to your question, it doesn't matter which compiler you use. If you know the language itself, your programs will compile regardless of compiler its thrown at.

    Though, I would advice to not be a "wanna be" cool programmer(trying to write code in notepad) and download an IDE for coding. It really helps a lot in learning & further coding. You can get the Code::Block IDE for free, bundled with gcc.

    We all know no one likes to work in blue screen with white font when you great graphical interfaces available..😉

    Hope that answers you question.

    Best Regards.
    Thank you very much, man
    Helps a lot 😀
    Are you sure? This action cannot be undone.
    Cancel
  • KenJackson

    MemberJul 16, 2012

    I'm trying to guess what they meant by saying GCC is for advanced level programming. Yes, it is, but I don't see how that rules out a beginner. The difficulty with developing code is converting the algorithm in your mind into code. The best any tool can do is to just work and not become a distraction.

    I guess they meant that TurboC came with an IDE (didn't it?). But you can always download and use an IDE like <a href="https://www.eclipse.org/" target="_blank" rel="nofollow noopener noreferrer">The Community for Open Innovation and Collaboration | The Eclipse Foundation</a>, #-Link-Snipped-#, <a href="https://www.codeblocks.org/" target="_blank" rel="nofollow noopener noreferrer">Code::Blocks - Code::Blocks</a> or <a href="https://www.codelite.org/" target="_blank" rel="nofollow noopener noreferrer">www.codelite.org</a>. Though contrary to what [Prototype] advised above, I dislike all IDEs, preferring to work in <a href="https://www.gnu.org/software/emacs/" target="_blank" rel="nofollow noopener noreferrer">GNU Emacs - GNU Project</a>.

    The problem with all IDEs is that they're all a little different. As you jump from project to project, you often have to switch IDEs, so you may have to use different keys to move the cursor or highlight text. I don't want to exert ANY thought to how to edit. I want it to just happen when I think about it. That's why I use emacs.
    Are you sure? This action cannot be undone.
    Cancel
  • Invalid User

    MemberOct 7, 2015

    gcc is fine but try below program
    o/p will different in Turbo C and GCC
    #include"stdio.h"
    main()
    {
    int a=1,b=1,c=2,d=1,e=1,f=1,g=1,h=1;
    a=++a + ++a + ++a;
    b=++b + ++b + b++;
    c=++c + c++ + ++c;
    d=++d + d++ + d++;
    e=e++ + ++e + ++e;
    f=f++ + ++f + f++;
    g=g++ + g++ + ++g;
    h=h++ + h++ + h++;
    printf("%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f,g,h);
    }
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register