On Oct 19, 2001 at 16:04, Mayur Joshi wrote:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.10/include -Wall \ -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer \ -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 \ -march=i686 -DMODULE -c -o dummy.o dummy.c
I would like someone to explain all the arguments given to gcc. I have not done much of C/C++ under *nix systems, though I know some of them.
If you man gcc you will probably find that -D sets a symbol as defined, -I gives an include path, -W sets warnings (all is all warnings), -O is optimizing, -f is I think some assembly coding stuff, -m is machine dependent stuff, -c is compile only, -o is output filename.
man gcc will tell you the right stuff.