我有一个功能,它只进行一些操作,如增量.我已声明为内联和__attribute __((热)).
The hot attribute is used to inform the compiler that a function is a
hot spot of the compiled program. The function is optimized more
aggressively and on many target it is placed into special subsection
of the text section so all hot functions appears close together
improving locality.
可以解释为非内联热函数,它们将被放置在进程地址映射的低地址区域中.但内联函数调用应该被它们的代码逐字取代.那么问题是内联和热的组合如何真正起作用?
最佳答案
原文链接:https://www.f2er.com/linux/440912.html