Is there a difference between compiling for the Linux terminal or for the IDE?

5

I've been programming in C in linux for a semester already, and I always come across people who call themselves better programmers because they compile and run the program through terminal . However, in the face of several searches, I have always found articles on the Internet saying that IDE was made to help the programmer, to make the time that he would compile all the time and running in the terminal improve a bit. strong>

In my humble experience with both, I really found it much easier to just compile and run through IDE . But how am I starting in this area, I would like to know about you the difference? Is it better to compile for the terminal? If so, why?

Note: I use codeblock.

    
asked by anonymous 17.12.2015 / 17:27

2 answers

6

I think it's important to know how it works in the terminal, but unless you use very specific commands to compile, there's no need.

Every IDE was made to speed up and help the work of the programmer, many of which allow you to pass parameters before compilation.

There are several factors that differentiate a good and a "bad" programmer, writing a gcc prog.c -o prog is not that different from pressing play in the IDE.

    
17.12.2015 / 17:45
2

The difference is more human than physical. A compiled program in an IDE may even suffer from a few differences due to the "generic" IDE compiler parameters however most people do not know many parameters of their compilers to add something and here comes the human difference of programming without IDE: the knowledge of the tools that the IDE uses, the compilation process and link editing.

But life is short and the market is restricted. Reading the GCC and Linker documentation can be a waste of time and money.

I just needed to learn more about code generation tools when something went wrong or an IDE was too expensive and a custom alternative was possible, so I like the lightweight and terminal IDE mix like Code :: Blocks + Guake suspended) to program embedded systems and discard the Eclipse base IDEs and I do not have money for an IAR.

    
18.12.2015 / 20:14