4

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 ?

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.