lkml.org 
[lkml]   [1996]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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
ftp://vger.rutgers.edu/pub/linux/Sparc/snapshots 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.)

Tom

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