xed icon indicating copy to clipboard operation
xed copied to clipboard

How to make the xed.lib file size MUCH smaller ?

Open Victor6799 opened this issue 1 year ago • 3 comments

Right now as it stands this file sits at nearly 16MB. All that I would like to accomplish is to decode (disassemble) binary code on the fly 1-15 bytes at a time. Is it possible to statically link the xed.lib file with my project and still have the overall size no larger than 1-2MB ?

Victor6799 avatar Feb 27 '23 19:02 Victor6799

Please check:

  1. https://github.com/intelxed/xed#binary-size
  2. https://intelxed.github.io/build-manual/index.html#SHARED

marjevan avatar Feb 27 '23 19:02 marjevan

Thanks again @marjevan. I need to statically link the xed.lib file for windows into my KMDF device driver project. Where can I find any documentation on how to strip the binaries or make just the decoder no encoder ? Thank you.

Victor6799 avatar Feb 27 '23 20:02 Victor6799

Hi, You can use the "--no-encoder" build knob. Please note the latest External Release v2023.06.07 improves decoder code size.

marjevan avatar Jun 08 '23 11:06 marjevan