View Feed
group-icon
Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12933 Members
Join this group to post and comment.
Abhishek Rawal
Abhishek Rawal • Jul 10, 2012

GCC vs Turbo C

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 ! 😀
Abhishek Rawal
Abhishek Rawal • Jul 12, 2012
no one ?? 😔 😭
[Prototype]
[Prototype] • Jul 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.
Abhishek Rawal
Abhishek Rawal • Jul 15, 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 😀
KenJackson
KenJackson • Jul 17, 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 Eclipse, NetBeans, Code::Blocks or codelite. Though contrary to what [Prototype] advised above, I dislike all IDEs, preferring to work in GNU Emacs.

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.
Invalid User
Invalid User • Oct 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);
}

Share this content on your social channels -