mdk的命令講解(持續更新)

無痕幽雨發表於2018-03-01

一、--autoinline, --no_autoinline

These options enable and disable automatic inlining of functions.

The compiler automatically inlines functions at the higher 
optimization levels where it is sensible to do so. The -Ospace 
and -Otime options, together with some other factors such as 
function size, influence how the compiler automatically inlines functions.

Selecting -Otime, in combination with various other factors, 
increases the likelihood that functions are inlined.

In general, when automatic inlining is enabled, the compiler inlines 
any function that is sensible to inline. When automatic inlining is 

disabled, only functions marked as __inline are candidates for inlining.

(如果設定為--no_autoinline,則只有當使用者指定__inline關鍵字,才把

它當做inline函式處理)


Use these options to control the automatic inlining of functions at the 
highest optimization levels (-O2 and -O3).

For optimization levels -O0 and -O1, the default is --no_autoinline.
(如果優化級別是O0和O1,則預設是no_autoinline)

For optimization levels -O2 and -O3, the default is --autoinline.

(如果優化級別是O2和O3,則預設是autoinline)

相關文章