• Post Reply Bookmark Topic Watch Topic
  • New Topic

about the kernel compiling  RSS feed

 
ma la
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I don't know if there is any one interesting
in compiling the linux kernel. I have one question. As I know, compiler always put some informatin(known as header) into the obj file and
executable file. Does the kernel have this kind of header? If no, Is there any option for gcc to do it? thx!
 
Guy Allard
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi - You are probably talking about the frame pointer.
Typical options for kernel modules are:
-Wall
-Wstrict-prototypes
-Wno-trigraphs
-O2
-fomit-frame-pointer
-fno-strict-aliasing
-fno-common
-Wno-unused
-pipe
-fpreferred-stack-boundary=2
-march=i686
You can find explanations of gcc's command line options:
here
Regards, Guy
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!