Hello
The linker is performing dead striping by default. That means only objects (functions, variables) really used in the application are linked to the final executable file.
Are you sure the linker links the whole library to your project?
To check the actual code size open the file with extension .xMAP located in the project bin directory.
This is the map file generated by the linker. To check the actual application code size scroll to the bottom of the file and check size of the sections .code and .text.
This is the real size of your application. Size displayed in the .mcp window indicates the size of the application in worst case. If all functions were used. You should not rely on this information.
CrasyCat