differences between "cc" & "gcc" compilers
Results 1 to 6 of 6

Thread: differences between "cc" & "gcc" compilers

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    22

    differences between "cc" & "gcc"

    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??
    \"Cyberspace. A consensual hallucination experienced daily by billions of legitimate operators, in every nation, by children being taught mathematical concepts... A graphic representation of data abstracted from banks of every computer in the human system. Unthinkable complexity. Lines of light ranged in the nonspace of the mind, clusters and constellations of data. Like city lights, receding...\"

  2. #2
    Banned
    Join Date
    Apr 2004
    Posts
    843
    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?

  3. #3
    Senior Member
    Join Date
    Jul 2002
    Posts
    339

    Re: differences between "cc" & "gcc"

    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>
    Always listen to experts. They\'ll tell you what can\'t be done and why. Then go and do it. -- Robert Heinlein
    I\'m basically a very lazy person who likes to get credit for things other people actually do. -- Linus Torvalds


  4. #4
    is there also a built in C++ compiler?
    -n6

  5. #5
    Ninja Code Monkey
    Join Date
    Nov 2001
    Location
    Washington State
    Posts
    1,027
    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.
    "When I get a little money I buy books; and if any is left I buy food and clothes." - Erasmus
    "There is no programming language, no matter how structured, that will prevent programmers from writing bad programs." - L. Flon
    "Mischief my ass, you are an unethical moron." - chsh
    Blog of X

  6. #6
    Banned
    Join Date
    Apr 2004
    Posts
    843
    Originally posted here by nirvanist6
    is there also a built in C++ compiler?
    Yes, but of course I have installed RedHat.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides