Smaller GCC package, only C needed [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Is there a smaller download for GCC if the only language you need to be compiled is C? TCC is a fantastic option for windows, however I need it to compile on several platforms. I also like the fact that GCC is very commonly used.
If there is not a specific download that is smaller, would I be able to weed out the data in the downloaded package that is not needed to compile C? Would there be issues to this approach?

When you build GCC, you must first configure it.
Specifying --enable-languages=c will constrain your build to only the C language.
There are many other options that allow you to tailor GCC to your needs.

Related

Is there a cross platform C/C++ library that gives us CPU and memory usage stats? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking to find a C/C++ library that gives me system stats like CPU usage and memory usage.
Is there one that works cross platform?
I just don't want to have to re-invent the wheel (badly).
You could use
SIGAR API (C++)
This is an open source library that does basically what your looking for,
but unfortunally there is no platform independent function for this.
If you want one for cross-platforms, ACE has a good one that works for a lot of languages! Note that ACE abstracts the OS in general, and might be heavyweight for what you want.
ACE

Is there a c++ compiler or add-on that supports builtin object serialization? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
The biggest pain of using libraries like boost::serialization is that a method needs to be supplied to each class that enumerates its fields. It's easy to make a mistake or forget to keep this method updated.
It seems that object serialization could easily be automated if there was extra support from the compiler. I guess it would be a language extension, but not visible directly to the user, only through a library. Is there a project that does this for gcc or perhaps clang?
Not really
Serialization isn't standardized in C++ (i.e. it's not in a standard library nor in a compiler). You'll need a special library.

Annotating C/C++ code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Recently I got a grasp of Microsoft's Standard Annotation Language (SAL) for annotating C/C++ source codes. This feature can be very helpful for debugging and during development but unfortunately it is not a portable cross-platform library. Is there any standard or open-source tool for annotating C/C++ codes? Is there a similar feature available in gcc?
The closest that I'm aware is GCC's attributes, but other compilers don't support the syntax. GCC attribute syntax does not support as many annotations as SAL, but you may find some of the annotations useful.
Alternatively, if you're using templates, you may want to check out Boost Static Assert, which most compilers support.
Also note that CLANG supports more annotations than GCC, and using CLANG's static analyzer may be closer to what you're wanting.

Fortran development on Windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm not sure if this is a stupid question or not, but I'm thinking of learning to use fortran and was wondering if there a web site where fortran can be freely downloaded for windows, presuming that fortran is free?
Fortran is a language - it is not something you can download. What you can download, though, is a fortran compiler. A compiler is a program that will turn code (written in a language, like Fortran) into machine code (which can then be executed by the operating system).
There are a number of compilers for Fortran. The GNU compiler suite is generally highly regarded (and free and open-source). You can download MinGW (http://www.mingw.org/), which gives you all the libraries and GNU compilers necessary to run a Fortran application on windows.
A basic tutorial on how to compile and run Fortran code in MinGW is available at http://www.stat.sc.edu/~habing/courses/740/mingw.html

What tools would people recommend for looking at gcc/linux object files? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to look at the code generated by the g++/gcc compiler on linux. I'm assuming there are tools that can reverse engineer .o files and let me look at what's in there at a level a bit higher then machine instructions?
I may also be missing a compiler option to simply generate something human readable before the object files are compiled? If so what is this compiler option?
Do you want something like objdump (part of binutils)? That will disassemble code for you, and if there are debug symbols left, it'll show them too.
The gcc options -S -fverbose-asm cause it to output assembly language with annotations in comments.