I use v6 and v7 to compare the code size in this git repository.
In this git repository, I placed my modified lv_port_stm32f429_disco v6 and v7 versions of the project.
My modifications are:
- In lv_conf.h, the animation, anti-aliasing, shadow, group, file system are turned off.
- In main.c Some examples are called, including btn/dropdown/win/btnmatrix/cont/img/imgbtn/page/roller/slider/line objects.
The size of V6 is 66kbyte, and the size of V7 is 88k, a difference of 22k.
What MCU/Processor/Board and compiler are you using?
What do you want to achieve?
Is there any way to optimize the v7 version so that its code size is approximately equal to V6?
What have you tried so far?
I try to check the macros that can be disabled in lv_confg.h as much as possible to ensure that it is not the difference in code size between v6 and v7 caused by my improper configuration
Code to reproduce
All relevant code is here: https://github.com/liangyongxiang/lvgl_size_compare
Screenshot and/or video