[Keil]WARNING L16 未呼叫函數警告


Keil預設情形下, 針對未呼叫的Function會發出警告L16, compiler也會分配其空間給未呼叫的Function, embedded system中是相當浪費空間

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS


Keil有提供參數, 可關閉Warning L16與空間釋放
Step 1: 進入Options for TargetDevice分頁, 勾選Use Extended Linker (LX51) instead of BL51

Step 2: 接著點選LX51 Misc分頁, Misc controls填入REMOVEUNUSED, 點選OK完成設定

重新compiler, L16警告消失並且釋放占用的memory space



留言

這個網誌中的熱門文章

[VB6]使用File Dialog選擇檔案

Download Visual Studio Community 2015 update 3 ISO-FIle