So one day I was brainstorming what to research next, and I wanted to know about gcc options to help me with my code for everyday (everycompile) use. So I was reading this thread, and I came across one of Salem's posts:I thought it was pretty cool, mainly because I didn't know what it was saying. So I decided to:Code:$ gcc -W -Wall -ansi -pedantic -O2 hello.cI found out thatCode:man gcc (this is a way in Linux to call for help files for a specific program)
-W is for enabling warnings
-Wall for all warnings
-ansi for strict C semantics
-pedantic required by -ansi
-O2 for pretty good optimizations
So my main question is, is this the preferred way to compile C code for everyday use?