Click to See Complete Forum and Search --> : differences between "cc" & "gcc" compilers
Amun Ra
August 10th, 2004, 10:28 PM
From what I understand the "Unix C Compiler" aka cc is the industry standard & more secure then "GNU C Compiler" aka gcc. What are your thoughts on this? Aparently gcc has a lot of extra extensions. True??? Are they secure? I also heard that the gcc can be made to behave like cc. Is it more secure then cc in this mode.
Anyway.... which one is the way to go??
TheSpecialist
August 11th, 2004, 03:07 AM
Differences in compilers? File extensions? Which one is more 'secure' ? Unless your compiler puts a gun to someone's head then forces it's users to perform secure codeing practices... or if a compiler performs array bounds checking and the other one does not Hummm... but anyways, in any case what I'd really like to know is how does file extensions in any way involve secure codeing practices?
jdenny
August 14th, 2004, 05:31 AM
From what I understand the "Unix C Compiler" aka cc is the industry standard & more secure then "GNU C Compiler" aka gcc. What are your thoughts on this? Aparently gcc has a lot of extra extensions. True???
Of course GCC has a lot of extra extensions, it stands for GNU Compiler Collection (not GNU C Compiler).
GCC is the GNU Compiler Collection, which currently contains front ends for C, C++, Objective-C, Fortran, Java, and Ada, as well as libraries for these languages (libstdc++, libgcj,...). Further frontends are available.
You should know where you can find find the above quote.
Peace always,
<jdenny>
nirvanist6
August 15th, 2004, 08:15 PM
is there also a built in C++ compiler?
Juridian
August 18th, 2004, 10:55 PM
File extensions can be involved in secure coding practices, tho it also touches on server configuration....when dealing with web applications. If you are doing say....an asp 3.0 site utilizing vbscript as your server side scripting language and make include files for utility functions. If you use a .inc file extension as an include, the server generally does not process the script and sends out the code to whoever requested it (unless your configure your server appropriately). However if you change that .inc to .asp, there is no further configuration, your code does not get sent out to the end user, and you have better security.
As far as cc vs gcc and which is more secure, I've never looked into it. You will get more security via proper architecting of the application and good analysis and design than you will by your compiler. Some compilers come with various tools or libraries to try and stop an assortment of problems such as checking for possible buffer overflow problems, clobbering memory in other ways that you shouldn't, bad coding practices, etc. Most of the time however these are external tools or third party tools that simply aid the compiler itself.
TheSpecialist
August 18th, 2004, 11:22 PM
Originally posted here (http://www.AntiOnline.com/showthread.php?threadid=260877#post781373) by nirvanist6
is there also a built in C++ compiler?
Yes, but of course I have installed RedHat. :rolleyes: