microsoft / ShaderConductor

ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Investigate why dxcompiler file is so large on Linux and macOS

gongminmin opened this issue · comments

dxcompiler.dll is 17.7MB (7.7MB compressed), but libdxcompiler.so is 34.5MB (13.1MB compressed), and libdxcompiler.dylib is 27.1MB (10.0MB compressed). Need to have some understanding about why they are so different, and how to improve this.

commented

The MinSizeRel configuration makes a big difference.
In a custom build on my Linux machine from aebd3e6 libdxcompiler.so has sizes (same for clang and gcc):

  • Release: 29.3MB
  • MinSizeRel: 19.1MB

The pull request microsoft/DirectXShaderCompiler#1760 enable to sets the symbol visibility to hidden. If that goes in, the libdxcompiler.so can go down to 22M in Release build.