I have platform implementation of functions that I want in-lined. 

I write the function with this:  __attribute__((always_inline))
I run gcc with these CFLAGS: 
 -Wno-attributes  (needed since I define attributes!) 
 -flto and -O3 (so these functions will be in-lined, if possible, at link time) 

The linking is noticeably slower, but there is a material performance benefit 
in the run-time of my ODP application. 

I do not know how this might fit into the ODP architecture, but I find it 
much easier to implement and support than restricting inline to static 
functions in single files or "inline" header files. 
Thanks, Leonard. 


_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to