Strip(remove) exported symbols from static lib

943 views Asked by At

I am embedding v8 in my exe and it's built as a static library, the result is an exe file after full optimization both in compiling and linking. The total exe size is about 13MB .. I noticed that most of the v8 APIs are exported symbols in my exe.

an exported symbol in msvc can be marked with _declspe(expot) modifier

_declspec(export) type Name([args..]);

So, what flags can I use to stop and strip unused methods and symbols from being linked and exported?

my main goal is to reduce the size of the final exe file.

0

There are 0 answers