Posts

Showing posts from November, 2005

GCC options you should know

Using the GNU Compiler Collection (GCC) isn't for the faint of heart or those used to the friendlier Windows IDEs. There are a huge number of command line options available for GCC. This article brings you the most commonly used and most useful options. Writing a thousand line code is better than having to debug it. The mistakes can vary from a missing ";" error to major errors of logic. At the end of the day, code that refuses to run is merely a temp file waiting to be deleted! Given below are the most often used gcc options. Though a lot more exist, these are the most commonly used ones (26 to be specific) and can make debugging easier. For more information refer to the man pages type "man gcc" at the command line. GCC offers a host of options, some even for the AMD-K62 processor. The common syntax is gcc [option] [filename]. All options listed below are case sensitive. The option -v differs completely from -V . Also options may be put together in pairs. So, -