Search code examples
windowsx8664-bitlazarusfpc

Creating smallest DLL file


I have created a DLL file (library) with one assembler function. This file is 75kB size. How to make this file smaller? Like I suspect, there is an automatically included System unit. Can I exclude this unit from my dll file?


Solution

  • I googled your Issue, as it came to my mind in Visual C++ there are Debug&Release Modes. So maybe you can try creating a smaller Dll using the Release Mode. I found some settings for this: http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=18632
    Maybe this helps you, but I'm not sure it will work because I didn't work with Pascal for like 2 years :)