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.
Regards, Mayur
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
On Fri, Oct 19, 2001 at 04:04:32PM +0530, 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.
man gcc
regards
On Fri, 19 Oct 2001, 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
man gcc /^ *-D /^ *-I /^ *-W /^ *-O /^ *-f /^ *-m /^ *-o /^ *-c
will explain all you need to know.
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.