[lkml]   [1996]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe:Possible kernel optimizati

> Good! How can do it with a gcc ? In a C code we need to declare this
> functions as part of this section (with #pragma ?), in new exception
> handling we can do it with __asm__(".section __ex_table,\"ax\"").

Get a copy of the latest SparcLinux source from and read
<linux/init.h>. The gcc code that does the section handling is one of
the attributes:

void foo(int arg1) __attribute__ ((__section__ ".text.init"));

(Hidden by macros though in practice.)


 \ /
  Last update: 2005-03-22 13:38    [W:0.021 / U:1.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site