-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mbed cli vs mbed tools bin size comparision #13974
Comments
Hoping they call it mbed tools instead of mbed-cli-2 as announced. |
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
Can you elaborate? To the table above. We can see libs and main.cpp are almost identical. The difference is in the libraries. The table shows it, events or connectivity should not be in the blinky. The core libs have some differencies, I wonder about rtos as 28 bytes only ? The numbers might not be correct. We will review these numbers. As we know linker is not always that clever (lto not yet enabled), therefore even some libraries not being used are still being pulled in to the final image. That is my experience. |
10K less is a good savings hopefully this is because old system pulled in junk not because the new one excludes something needed. With current tools I can see things shouldn't be present in a blinky (connectivity??), but we should check two things:
|
The socket example should include the optional connectivity library (i.e CMake target) it requires to build. |
@bulislaw we've been using mbed-cmake for a few months now and already noticed the size difference (USCRPL/mbed-cmake#4) We haven't add any issues with our project that is using more than just the blinky example: BLE, WIFI, SD, FileSystem, etc. -- all works perfectly well! |
We are currently in the process of moving from USCRPL/mbed-cmake to vanilla mbed-cmake, I'll let you know if we have any issues (already fixed one #13973) |
Thanks for the feedback. I'll close this now. If there is anything we shall improve, lets create a new issue. |
Description of defect
This is not really a defect but more of an observation.
Compiling the mbed-os-example-blinky with mbed cli and mbed tools gives very different results in terms of generated binary size. It's a big win for mbed tools. I'm wondering what's the reason for this.
mbed cli
mbed tools
Target(s) affected by this defect ?
DISCO_F769NI
Toolchain(s) (name and version) displaying this defect ?
What version of Mbed-os are you using (tag or sha) ?
6.5.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
How is this defect reproduced ?
Compile mbed-os-example-blinky with mbed-cli and mbed-tools and compare the results.
The text was updated successfully, but these errors were encountered: