DLL size and unused code

DLL size and unused code

Аватар пользователя Mike

Dear All,

   I work these days on a DLL with intel c compiler and extended libraries (MKL, TBB and/or IPP + FFTW). I remark that if I activate additionnal libraries without making any call to them, the binary size strongly increases even in release mode. I thought linkers did optimise this and only "stored" the useful code in the binary. Is this false ? Is there a linker-parameter to activate to purge unused functions ?

  Best Regards,

    Mike

3 posts / 0 новое
Последнее сообщение
Пожалуйста, обратитесь к странице Уведомление об оптимизации для более подробной информации относительно производительности и оптимизации в программных продуктах компании Intel.
Аватар пользователя Jennifer J. (Intel)

yes.
In VS IDE, open the project property, select "Linker > Optimization", set "Yes(/OPT:REF)" for "References" property.

Вложения: 

ВложениеРазмер
Скачать vs-prop-ref.png27.17 КБ
Аватар пользователя Mike

Don't know why I did not see it in the options when I had a first look ...
Thanks a lot, this solved my problem.
Best Regards,
Mike

Зарегистрируйтесь, чтобы оставить комментарий.