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