<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hello Sanjiv,<br><br>Have you tried attribute((used))?<br><br>--Sam<br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><b><span style="font-weight: bold;">From:</span></b> "Sanjiv.Gupta@microchip.com" <Sanjiv.Gupta@microchip.com><br><b><span style="font-weight: bold;">To:</span></b> llvmdev@cs.uiuc.edu<br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, July 21, 2009 10:07:53 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [LLVMdev] LLVM and Interrupt Service Routines.<br></font><br>
<div><font color="#000000" face="Arial" size="2">Hi,</font></div>
<div><font face="Arial" size="2">Apparently, there is no explicit support for ISRs 
in the llvm framework.  I could not find a matching attribute that can be 
used to mark a function as an ISR, which codegen and optimizer can use 
accordingly. ISRs aren't called explicity from any function, so currently the 
optimizer deletes them. We are planning to introduce a new "interrupt" attribute 
(to be modeled similiar to "section" attribute) which one can use in different 
passes suitably.</font></div>
<div>How does that sound? Or do we have something available already?</div>
<div> </div>
<div>- Sanjiv</div>
<div> </div></div></div></blockquote></div><br>

      </body></html>