开发者

Function Level linking in gcc

开发者 https://www.devze.com 2023-04-02 13:05 出处:网络
I search in old t开发者_开发问答hreads. But didn\'t find any thread answering my question. Is gcc support function level linking like vc++ ?

I search in old t开发者_开发问答hreads. But didn't find any thread answering my question.

Is gcc support function level linking like vc++ ?

if yes what option should I give to link object files and library ?


Looks like gcc does not support function level linking directly. You can pass -ffunction-sections -fdata-sections command line options to reduce resulting executable size. Look also this link for more info.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号