Assessing the Quality of GNU C/C++ Compiler for Scientific Applications

  • Context: C/C++ 
  • Thread starter Thread starter TenNen
  • Start date Start date
  • Tags Tags
    Compiler
Click For Summary

Discussion Overview

The discussion revolves around the quality of the GNU C/C++ compiler for scientific applications, exploring criteria for evaluating compilers, and the capabilities of GNU C/C++ in developing various types of applications, including GUI applications in Linux.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants suggest that the quality of a compiler can be judged based on criteria such as object code size, execution speed, and adherence to standards.
  • Others argue that while GNU C/C++ is effective for certain applications, Intel's compiler may produce faster code, raising questions about the importance of speed versus other factors.
  • There is a discussion about the capabilities of GNU C/C++, with some participants asserting that it can compile GUI applications in Linux, while others express uncertainty about its limitations.
  • Participants mention specific libraries like GTK and Qt for developing GUI applications, indicating a preference for these tools in conjunction with GCC.
  • One participant expresses a desire to understand the feasibility of creating non-console applications in Linux using GNU C/C++, specifically asking for examples.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the overall quality of the GNU C/C++ compiler compared to others, and there are differing views on its capabilities regarding GUI application development.

Contextual Notes

Some assumptions about the capabilities of GNU C/C++ and the comparison with Intel's compiler remain unresolved, particularly regarding specific use cases and performance metrics.

TenNen
Messages
97
Reaction score
0
Is gnu C/C++ a good compiler ?
How can we judge whether a compiler is good or bad ?

Thanks in advance
 
Technology news on Phys.org
A good or bad compiler... I'd say its a good one for what i use it for.

If we want to judge it we need criteria. As far as speed goes, intel's kicks its ass every which way. There are many more important factors in many cases though.
What are you using it for?
 
Generally there are only three criteria to judge a compiler by:

1) The size of the resulting object code
2) The speed of the result object code
3) Its adherence to standards and lack of bugs

- Warren
 
Thanks Warren a lot for your help,
Originally posted by Goalie_Ca
If we want to judge it we need criteria. As far as speed goes, intel's kicks its ass every which way. There are many more important factors in many cases though.
What are you using it for?
Since GNU C/C++, as far as I have learned or taught by some people, it can only be used for compiling some programs made in Linux/Unix environment that are equivalent to Console applications in Windows...
But Is it correct ?

Goalie_Ca, have you ever made any non-console applications in Linux, can you please tell me what they are,. just give me some examples, I would be very grateful...
 
You can use gcc to compile anything you want. If you want to compile code that calls the Win32 API, so be it. A compiler does not limit what you can compile.

- Warren
 
I am sorry I wasn't clear, I meant something like GUI applications in Linux...I just wonder if that is possible and would like to know if Goalie_Ca or you or anyone can give me a piece of information...

Thanks a lot Warren
 
Well, if you want to make gui applications in linux then you're pretty much stuck with gcc. Intel's compiler is often considered superior because it produces faster code, but then there's more issues resulting from the fact that its not gcc. :/

GCC is the technology used to compile pretty much everything on a linux system. So yes it will do graphical user interfaces.

I've written some small and simple applications, mostly utilities, to help me convert, and do things as well as the "staple" text editor and hello worlds apps. Most stuff i write is console so i can pipe info in and out without user interaction.

If you wanted to program a gui app in linux then i suggest programming with gtk or qt. GTK is associated with gnome and qt is associated with kde. QT is c++ while GTK is C. They're quite different and it depends on the individual as to which is better. I'm fairly indifferent thus far because i haven't had to do a large app in it yet.

http://doc.trolltech.com/3.3/how-to-learn-qt.html
http://www.gtk.org/tutorial/
 
Last edited by a moderator:
Thanks Goalie_Ca a lot,

I am actually and honestly not trying to build any large applications at all. Large one assembles from small ones, so even when I am doing something great and BIG, questions made never go into BIG things.
How can I ask someone to write me an application simulating the development of a certain cancer cell ? (:-p)
Again, thanks for your links, (smile)
 

Similar threads

Replies
6
Views
4K
  • · Replies 29 ·
Replies
29
Views
4K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 17 ·
Replies
17
Views
4K
Replies
14
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 27 ·
Replies
27
Views
7K
  • · Replies 25 ·
Replies
25
Views
15K
  • · Replies 8 ·
Replies
8
Views
8K
Replies
11
Views
1K