Vivek Goel
Vivek Goel

Reputation: 24140

Function Level linking in gcc

I search in old threads. 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 ?

Upvotes: 4

Views: 1952

Answers (1)

ks1322
ks1322

Reputation: 35708

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.

Upvotes: 5

Related Questions