The tag has no wiki summary.

learn more… | top users | synonyms

18
votes
3answers
1k views

Is GCC dying without threads support on Windows?

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 ...
0
votes
0answers
5 views

Can I auto join a list of function by C Macro [migrated]

I want to auto join a list of functions begin FUN_BEGIN() & FUN_END() macro, if I write it as: FUN_BEGIN() FUN_DEFINE(f1) { printf("f1\n"); } FUN_DEFINE(f2) { printf("f2\n"); } ...
7
votes
3answers
261 views

Is there a way to use gcc as a library?

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 (...) */ ...
-4
votes
1answer
121 views

GCC compiler for C and other languages [closed]

I have gone through many reference documents about how a GCC compiler optimizes program. But I am not sure how actually a programmer request GCC attempt to optimize a program. Plz help answering this ...
3
votes
2answers
266 views

How do .so files avoid problems associated with passing header-only templates like MS dll files have?

Based on the discussion around this question. I'd like to know how .so files/the ELF format/the gcc toolchain avoid problems passing classes defined purely in header files (like the std library). ...
1
vote
2answers
208 views

GCC: assembly listing for IA64 without an Itanium machine

I need to try the following thing: I would like to compile some simple C code samples and see the assembly listing generated by GCC for IA64 architecture, i.e. I just want to run GCC with the -S ...
5
votes
2answers
421 views

Questions about linking libraries in C

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 ...
1
vote
5answers
3k views

How to write a very basic compiler [duplicate]

Possible Duplicate: Best Online resources to learn about Compilers? What would be the best way to learn about compilers, and executable formats? Advanced compilers like gcc compile codes ...
6
votes
2answers
319 views

Need help eliminating dead code paths and variables from C source code

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 ...
3
votes
3answers
273 views

Does using GCC specific builtins qualify as incorporation within a project?

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 ...
7
votes
3answers
737 views

Mac OS Ⅹ Assembly Language Esoteria

I've been playing around with assembly and object files in general on Mac OS Ⅹ and was wondering if somebody could provide some edification. Specifically, I'm wondering what the extra code GCC ...
7
votes
3answers
981 views

GCC vs clang/LLVM — pros and cons of each

What are the pros and cons of GCC vs clang/LLVM?
3
votes
3answers
1k views

Whether to use -pedantic flag in g++ or not?

I'm learning C++ and I'm using g++ on Linux for practicing. 1) I want to know if people working as programmers use g++ -pedantic flag and also it's importance in real world. 2) What about other ...