Skip to main content

Questions tagged [gcc]

GCC is the GNU Compiler Collection. It's the de facto standard C compiler on Linux and supports many other languages and platforms as well.

290 votes
7 answers
453k views

Advanced compilers like gcc compile code into machine readable files according to the language in which the code has been written (e.g. C, C++, etc). In fact, they interpret the meaning of the code ...
Googlebot's user avatar
  • 3,253
63 votes
9 answers
14k views

A friend of my family asked me for a bit of help as he learns to program (in the C language). As we were talking, he expressed frustration about having a hard time understanding the error messages his ...
einpoklum's user avatar
  • 2,808
31 votes
3 answers
17k views

I need some opinion. GCC was always a very good compiler, but recently it is losing "appeal". I have just found that on Windows GCC does not have std::thread support, forcing Windows users to use ...
CoffeDeveloper's user avatar
27 votes
4 answers
14k views

What are the pros and cons of GCC vs clang/LLVM?
yodie's user avatar
  • 704
23 votes
5 answers
22k views

I'm learning C++ and I'm using g++ on Linux for practicing. I want to know if people working as programmers use g++ -pedantic flag and also its importance in real world. What about other compilers, ...
user803563's user avatar
20 votes
2 answers
18k views

GCC is the C compiler. Glibc is the C library. However, isn't it an absolute necessity for a compiler and the standard library bundled together as a C implementation? For example, the C library ...
Michael Tsang's user avatar
13 votes
3 answers
12k views

Since 4.8 release, the C++ compiler GCC (the G++ part of it) is written not in C anymore, but in C++ itself. I have a hypothetical question on this. I wonder how to compile the C++ code of GCC on a ...
danijar's user avatar
  • 846
12 votes
6 answers
3k views

Anyone knows a solution that works something like this: #include <stdio.h> #include <gcc.h> /* This .h is what I'm looking for. */ int main (void) { /* variables declaration (...) */ ...
WhyWhat's user avatar
  • 223
11 votes
2 answers
19k views

I noticed that if I declare a global variable multiple times the compiler does not even output a warning. However if I declare a local variable in a function multiple times, for example, the gcc ...
yoyo_fun's user avatar
  • 2,297
10 votes
1 answer
4k views

I think title says it all :) Is there any particular practical reason (I guess it's mostly historic, but I'm unable to find it on my own) why GCC uses AT&T/GAS syntax? Note: I know this is just ...
Vyktor's user avatar
  • 211
9 votes
2 answers
3k views

I am learning C (still very much a beginner) on Linux using the GCC compiler. I have noticed that some libraries, such as the library used with the math.h header, need to be linked in manually when ...
james's user avatar
  • 193
8 votes
1 answer
16k views

I am curious about the Difference between direct and indirect function() calls Could anyone help in the diff analysis ? The c source code could be found at subroutine_direct.c and ...
kevin's user avatar
  • 197
8 votes
2 answers
885 views

I started to work on several C projects that are building using gcc. I believe this choice was made for several reasons: Had to cross-compile for arm very early on (I think). Performance is the first ...
nathdwek's user avatar
  • 271
7 votes
3 answers
2k views

I understand that linking to a program licensed under the GPL requires that you release the source of your program under the GPL as well, while the LGPL does not require this. The terminology of the (...
DavidJFelix's user avatar
7 votes
2 answers
3k views

I have a legacy C code on my hands, and I am given the task to filter dead/unused symbols and paths from it. Over the time there were many insertions and deletions, causing lots of unused symbols. I ...
Anjum Kaiser's user avatar

15 30 50 per page