Skip to content
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

⚗️ (stl): Test std::ranges support for arm-gcc + clang #1088

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ladislas
Copy link
Member

@ladislas ladislas commented Oct 26, 2022

@github-actions
Copy link

github-actions bot commented Oct 26, 2022

File comparision analysis report

🔖 Info

Target Flash Used (%) Flash Available (%) Static RAM (%)
bootloader 169508 (64%) 92636 (35%) 30920 (5%)
os 410792 (26%) 1153880 (73%) 79608 (15%)
Click to show memory sections
| -          |      Hex |     Bytes |  KiB |
|------------|---------:|----------:|-----:|
| Flash      | 0x200000 | 2 097 152 | 2048 |
| SRAM       |  0x80000 |   524 288 |  512 |
| Bootloader |  0x40000 |   262 144 |  256 |
| Header     |   0x1000 |     4 096 |    4 |
| OS         | 0x17E000 | 1 564 672 | 1528 |
| Tail       |   0x1000 |     4 096 |    4 |
| Scratch    |  0x40000 |   262 144 |  256 |

📝 Summary

Click to show summary
  • ✔️ - existing target
  • ✨ - new target
  • ⚰️ - deleted target
  • ✅ - files are the same
  • ❌ - files are different
Target Status .bin .map Total Flash (base/head) Total Flash Δ Static RAM (base/head) Static RAM Δ
LekaOS ✔️ 410792 (19%) ø 79608 (15%) ø
bootloader ✔️ 169508 (8%) ø 30920 (5%) ø
functional_ut_boost_ut ✔️ 384496 (18%) ø 20424 (3%) ø
functional_ut_file_manager ✔️ 373280 (17%) ø 20664 (3%) ø
functional_ut_io_expander ✔️ 360200 (17%) ø 20392 (3%) ø
functional_ut_qdac ✔️ 361448 (17%) ø 20392 (3%) ø
functional_ut_std_features - - 355776 (16%) - 20376 (3%) -
spike_lk_audio ✔️ 125076 (5%) ø 14568 (2%) ø
spike_lk_behavior_kit ✔️ 189752 (9%) ø 48120 (9%) ø
spike_lk_ble ✔️ 228768 (10%) ø 28200 (5%) ø
spike_lk_bluetooth ✔️ 82948 (3%) ø 11544 (2%) ø
spike_lk_cg_animations ✔️ 144696 (6%) ø 46528 (8%) ø
spike_lk_color_kit ✔️ 65776 (3%) ø 13744 (2%) ø
spike_lk_command_kit ✔️ 192520 (9%) ø 50944 (9%) ø
spike_lk_config_kit ✔️ 126956 (6%) ø 14312 (2%) ø
spike_lk_coreled ✔️ 76164 (3%) ø 13688 (2%) ø
spike_lk_core_touch_sensor ✔️ 80228 (3%) ø 12256 (2%) ø
spike_lk_event_queue ✔️ 74800 (3%) ø 12072 (2%) ø
spike_lk_file_manager_kit ✔️ 139016 (6%) ø 14416 (2%) ø
spike_lk_file_reception ✔️ 327112 (15%) ø 27576 (5%) ø
spike_lk_flash_memory ✔️ 63880 (3%) ø 11448 (2%) ø
spike_lk_fs ✔️ 174616 (8%) ø 47888 (9%) ø
spike_lk_lcd ✔️ 162236 (7%) ø 46616 (8%) ø
spike_lk_led_kit ✔️ 103992 (4%) ø 14608 (2%) ø
spike_lk_log_kit ✔️ 63288 (3%) ø 12256 (2%) ø
spike_lk_motors ✔️ 62600 (2%) ø 11488 (2%) ø
spike_lk_qdac ✔️ 78628 (3%) ø 11816 (2%) ø
spike_lk_reinforcer ✔️ 103480 (4%) ø 14608 (2%) ø
spike_lk_rfid ✔️ 80920 (3%) ø 11520 (2%) ø
spike_lk_sensors_battery ✔️ 78196 (3%) ø 12568 (2%) ø
spike_lk_sensors_light ✔️ 60056 (2%) ø 11440 (2%) ø
spike_lk_sensors_microphone ✔️ 72496 (3%) ø 11504 (2%) ø
spike_lk_sensors_temperature_humidity ✔️ 67048 (3%) ø 11424 (2%) ø
spike_lk_sensors_touch ✔️ 68600 (3%) ø 11432 (2%) ø
spike_lk_serial_number ✔️ 114244 (5%) ø 14056 (2%) ø
spike_lk_ticker_timeout ✔️ 69052 (3%) ø 11632 (2%) ø
spike_lk_update_process_app_base ✔️ 126092 (6%) ø 15296 (2%) ø
spike_lk_update_process_app_update ✔️ 77632 (3%) ø 12352 (2%) ø
spike_lk_watchdog_isr ✔️ 82032 (3%) ø 13288 (2%) ø
spike_lk_wifi ✔️ 116392 (5%) ø 14808 (2%) ø
spike_mbed_blinky ✔️ 58032 (2%) ø 11400 (2%) ø
spike_mbed_watchdog_ticker_vs_thread ✔️ 63208 (3%) ø 12448 (2%) ø
spike_stl_cxxsupport ✔️ 58456 (2%) ø 11400 (2%) ø

🗺️ Map files diff output

Click to show diff list
functional_ut_std_features (click to expand)

Flash used: 355776 (16%) / total: 2097152
SRAM used: 20376 (3%) / total: 524288

@github-actions
Copy link

github-actions bot commented Oct 26, 2022

File comparision analysis report

🔖 Info

Target Flash Used (%) Flash Available (%) Static RAM (%)
bootloader 181900 (69%) 80244 (30%) 37456 (7%)
os 451764 (28%) 1112908 (71%) 86664 (16%)
Click to show memory sections
| -          |      Hex |     Bytes |  KiB |
|------------|---------:|----------:|-----:|
| Flash      | 0x200000 | 2 097 152 | 2048 |
| SRAM       |  0x80000 |   524 288 |  512 |
| Bootloader |  0x40000 |   262 144 |  256 |
| Header     |   0x1000 |     4 096 |    4 |
| OS         | 0x17E000 | 1 564 672 | 1528 |
| Tail       |   0x1000 |     4 096 |    4 |
| Scratch    |  0x40000 |   262 144 |  256 |

📝 Summary

Click to show summary
  • ✔️ - existing target
  • ✨ - new target
  • ⚰️ - deleted target
  • ✅ - files are the same
  • ❌ - files are different
Target Status .bin .map Total Flash (base/head) Total Flash Δ Static RAM (base/head) Static RAM Δ
LekaOS ✔️ 451764 (21%) ø 86664 (16%) ø
bootloader ✔️ 181900 (8%) ø 37456 (7%) ø
functional_ut_boost_ut ✔️ 396064 (18%) ø 27088 (5%) ø
functional_ut_file_manager ✔️ 385800 (18%) ø 27336 (5%) ø
functional_ut_io_expander ✔️ 371704 (17%) ø 27056 (5%) ø
functional_ut_qdac ✔️ 373016 (17%) ø 27056 (5%) ø
functional_ut_std_features - - 367344 (17%) - 27040 (5%) -
spike_lk_audio ✔️ 135132 (6%) ø 20984 (4%) ø
spike_lk_behavior_kit ✔️ 198252 (9%) ø 54536 (10%) ø
spike_lk_ble ✔️ 236652 (11%) ø 34856 (6%) ø
spike_lk_bluetooth ✔️ 92300 (4%) ø 18064 (3%) ø
spike_lk_cg_animations ✔️ 152264 (7%) ø 53064 (10%) ø
spike_lk_color_kit ✔️ 88352 (4%) ø 20216 (3%) ø
spike_lk_command_kit ✔️ 202780 (9%) ø 57872 (11%) ø
spike_lk_config_kit ✔️ 138868 (6%) ø 20976 (4%) ø
spike_lk_coreled ✔️ 87916 (4%) ø 20104 (3%) ø
spike_lk_core_touch_sensor ✔️ 92756 (4%) ø 18672 (3%) ø
spike_lk_event_queue ✔️ 84088 (4%) ø 18744 (3%) ø
spike_lk_file_manager_kit ✔️ 153984 (7%) ø 21336 (4%) ø
spike_lk_file_reception ✔️ 331244 (15%) ø 34072 (6%) ø
spike_lk_flash_memory ✔️ 86712 (4%) ø 18056 (3%) ø
spike_lk_fs ✔️ 173976 (8%) ø 47976 (9%) ø
spike_lk_lcd ✔️ 171852 (8%) ø 53288 (10%) ø
spike_lk_led_kit ✔️ 115708 (5%) ø 21024 (4%) ø
spike_lk_log_kit ✔️ 84712 (4%) ø 19248 (3%) ø
spike_lk_motors ✔️ 86008 (4%) ø 18088 (3%) ø
spike_lk_qdac ✔️ 91508 (4%) ø 18616 (3%) ø
spike_lk_reinforcer ✔️ 112188 (5%) ø 21024 (4%) ø
spike_lk_rfid ✔️ 84700 (4%) ø 18024 (3%) ø
spike_lk_sensors_battery ✔️ 87056 (4%) ø 19120 (3%) ø
spike_lk_sensors_light ✔️ 84008 (4%) ø 18056 (3%) ø
spike_lk_sensors_microphone ✔️ 84696 (4%) ø 18056 (3%) ø
spike_lk_sensors_temperature_humidity ✔️ 90336 (4%) ø 18032 (3%) ø
spike_lk_sensors_touch ✔️ 91608 (4%) ø 18296 (3%) ø
spike_lk_serial_number ✔️ 136188 (6%) ø 20896 (3%) ø
spike_lk_ticker_timeout ✔️ 82648 (3%) ø 18072 (3%) ø
spike_lk_update_process_app_base ✔️ 147916 (7%) ø 21904 (4%) ø
spike_lk_update_process_app_update ✔️ 100328 (4%) ø 19080 (3%) ø
spike_lk_watchdog_isr ✔️ 87940 (4%) ø 19960 (3%) ø
spike_lk_wifi ✔️ 130768 (6%) ø 21368 (4%) ø
spike_mbed_blinky ✔️ 57616 (2%) ø 11496 (2%) ø
spike_mbed_watchdog_ticker_vs_thread ✔️ 84112 (4%) ø 18920 (3%) ø
spike_stl_cxxsupport ✔️ 83424 (3%)
84080 (4%)
📈
656 (0%)
18144 (3%) ø

🗺️ Map files diff output

Click to show diff list
functional_ut_std_features (click to expand)

Flash used: 367344 (17%) / total: 2097152
SRAM used: 27040 (5%) / total: 524288
spike_stl_cxxsupport (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_stl_cxxsupport-map.txt	2022-11-16 16:10:52.134739029 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_stl_cxxsupport-map.txt	2022-11-16 16:10:52.290737626 +0000
@@ -1,17 +1,17 @@
 | Module                  |         .text |       .data |          .bss |
 |-------------------------|---------------|-------------|---------------|
-| [fill]                  |     154(+154) |       8(+8) |       28(+28) |
+| [fill]                  |     122(+122) |       8(+8) |       28(+28) |
 | [lib]/CriticalSection.a |         8(+8) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |       94(+94) |       0(+0) |         0(+0) |
 | [lib]/c.a               | 24948(+24948) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a             |   7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     360(+360) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  | 31714(+31714) |   444(+444) |   8226(+8226) |
 | [lib]/misc              |     188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |       32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   5424(+5424) |       8(+8) |       44(+44) |
-| main.cpp.obj            |   3934(+3934) |       0(+0) |   6536(+6536) |
-| Subtotals               | 74004(+74004) | 2936(+2936) | 14920(+14920) |
+| main.cpp.obj            |   4542(+4542) |       0(+0) |   6536(+6536) |
+| Subtotals               | 74580(+74580) | 2936(+2936) | 14920(+14920) |
 Total Static RAM memory (data + bss): 17856(+17856) bytes
-Total Flash memory (text + data): 76940(+76940) bytes
+Total Flash memory (text + data): 77516(+77516) bytes
 
Flash used: 84080 (4%) / total: 2097152
SRAM used: 18144 (3%) / total: 524288

@codecov
Copy link

codecov bot commented Oct 26, 2022

Codecov Report

Merging #1088 (8f7e60d) into develop (c00770c) will decrease coverage by 2.74%.
The diff coverage is n/a.

❗ Current head 8f7e60d differs from pull request most recent head 8fed903. Consider uploading reports for the commit 8fed903 to get more accurate results

@@             Coverage Diff             @@
##           develop    #1088      +/-   ##
===========================================
- Coverage    98.73%   96.00%   -2.74%     
===========================================
  Files          145      138       -7     
  Lines         3729     3253     -476     
===========================================
- Hits          3682     3123     -559     
- Misses          47      130      +83     
Impacted Files Coverage Δ
drivers/CoreVideo/source/CoreJPEGModeDMA.cpp 47.01% <0.00%> (-44.26%) ⬇️
libs/VideoKit/source/VideoKit.cpp 75.00% <0.00%> (-25.00%) ⬇️
drivers/CoreVideo/source/CoreJPEG.cpp 92.72% <0.00%> (-7.28%) ⬇️
libs/ReinforcerKit/source/ReinforcerKit.cpp 95.77% <0.00%> (-4.23%) ⬇️
drivers/CoreIMU/source/CoreLSM6DSOX.cpp 95.08% <0.00%> (-3.80%) ⬇️
libs/LedKit/include/LedKit.h 100.00% <0.00%> (ø)
libs/BLEKit/source/BLEKit.cpp 100.00% <0.00%> (ø)
libs/WebKit/source/WebKit.cpp 100.00% <0.00%> (ø)
libs/BLEKit/source/CoreGap.cpp 100.00% <0.00%> (ø)
libs/ConfigKit/include/Config.h 100.00% <0.00%> (ø)
... and 47 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ladislas ladislas force-pushed the ladislas/feature/explore-std-ranges branch from 0317f41 to c5dd128 Compare October 26, 2022 19:59
@ladislas ladislas self-assigned this Oct 27, 2022
@ladislas ladislas force-pushed the ladislas/feature/explore-std-ranges branch from c5dd128 to 3fad720 Compare October 27, 2022 11:18
@ladislas ladislas added the 01 - type: task Something to do label Oct 27, 2022
@ladislas ladislas added this to the Future Release milestone Oct 27, 2022
@ladislas ladislas force-pushed the ladislas/feature/explore-std-ranges branch 4 times, most recently from 88c6d13 to 7286156 Compare October 31, 2022 20:47
spikes/stl_cxxsupport/main.cpp Show resolved Hide resolved
spikes/stl_cxxsupport/main.cpp Show resolved Hide resolved
spikes/stl_cxxsupport/main.cpp Show resolved Hide resolved
@ladislas ladislas force-pushed the ladislas/feature/explore-std-ranges branch from 7286156 to c18d6c3 Compare November 8, 2022 14:29
@YannLocatelli
Copy link
Member

@ladislas ladislas force-pushed the ladislas/feature/explore-std-ranges branch from c18d6c3 to a749c83 Compare November 8, 2022 21:35
Copy link
Member

@YannLocatelli YannLocatelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally functional after xcode-select --install

Some details and how about CI?

Comment on lines +120 to +123
for (auto val: utils::ranges::sequence({.start = 10, .end = 20})) {
log_info("y: %i", val);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can add the other sequence

Suggested change
for (auto val: utils::ranges::sequence({.start = 10, .end = 20})) {
log_info("y: %i", val);
}
for (auto val: utils::ranges::sequence({.start = 10, .end = 20})) {
log_info("y: %i", val);
}
for (auto val: utils::ranges::sequence({.from = 101, .size = 10})) {
log_info("z: %i", val);
}

libs/Utils/tests/RangesUtils_test.cpp Outdated Show resolved Hide resolved
libs/Utils/tests/RangesUtils_test.cpp Outdated Show resolved Hide resolved
libs/Utils/tests/RangesUtils_test.cpp Outdated Show resolved Hide resolved
libs/Utils/tests/RangesUtils_test.cpp Outdated Show resolved Hide resolved
libs/Utils/tests/RangesUtils_test.cpp Outdated Show resolved Hide resolved
libs/Utils/tests/RangesUtils_test.cpp Outdated Show resolved Hide resolved
@ladislas ladislas force-pushed the ladislas/feature/explore-std-ranges branch from 5887324 to bc65d78 Compare November 16, 2022 15:57
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@YannLocatelli YannLocatelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you~

@ladislas ladislas force-pushed the ladislas/feature/explore-std-ranges branch from bc65d78 to 8f7e60d Compare November 24, 2022 09:30
@ladislas ladislas force-pushed the ladislas/feature/explore-std-ranges branch from 8f7e60d to 1a998a0 Compare January 13, 2023 10:30
@ladislas ladislas marked this pull request as draft February 28, 2023 15:32
@ladislas ladislas force-pushed the ladislas/feature/explore-std-ranges branch from 1a998a0 to 8fed903 Compare February 28, 2023 15:32
@github-actions

This comment has been minimized.

ladislas added 2 commits July 11, 2024 18:32
This change requires the user to have brew's llvm/clang v15.x.x installed with:

```
brew install llvm
```

Using brew's llvm/clang allows for the use of C++20's latest features
such as std::ranges through the option `-fexperimental-library`

It also uses lld for linking wich should be faster.
@ladislas ladislas force-pushed the ladislas/feature/explore-std-ranges branch from 8fed903 to 0fd6d6c Compare July 11, 2024 16:32
Copy link

🔖 Version comparison

Version Same as filename Same as os_version
os 1.4.0+1720715714 ✔️ ✔️
firmware
(bootloader + os)
1.4.0+1720715714 ✔️ ✔️

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link

📈 Changes Impact Analysis Report

📌 Info

  • toolchain: Arm GNU Toolchain 13.2.rel1 (Build arm-13.7) 13.2.1 20231009
  • enable_log_debug: OFF
base head
branch develop ladislas/feature/explore-std-ranges
sha 6123b30 0fd6d6c
mbed mbed-os@master+fixes+gcc-11-support mbed-os@master+fixes+gcc-11-support
-std -std=c++20 -std=c++20

🤖 Firmware impact analysis

Target Flash Used (base/head) Flash Used Δ Flash Available (base/head) Static RAM (base/head) Static RAM Δ
bootloader 125972 (48%) ø 136172 (51%)
136172 (51%)
28808 (5%) ø
os 399628 (25%) ø 1165044 (74%)
1165044 (74%)
82000 (15%) ø
Click to show memory sections
| -          |      Hex |     Bytes |  KiB |
|------------|---------:|----------:|-----:|
| Flash      | 0x200000 | 2 097 152 | 2048 |
| SRAM       |  0x80000 |   524 288 |  512 |
| Bootloader |  0x40000 |   262 144 |  256 |
| Header     |   0x1000 |     4 096 |    4 |
| OS         | 0x17E000 | 1 564 672 | 1528 |
| Tail       |   0x1000 |     4 096 |    4 |
| Scratch    |  0x40000 |   262 144 |  256 |

🔬 Detailed impact analysis

Click to show detailed analysis for all targets
  • ✔️ - existing target
  • ✨ - new target
  • ⚰️ - deleted target
  • ✅ - files are the same
  • ❌ - files are different
Target Status .bin .map Total Flash (base/head) Total Flash Δ Static RAM (base/head) Static RAM Δ
LekaOS ✔️ 399628 (19%) ø 82000 (15%) ø
bootloader ✔️ 125972 (6%) ø 28808 (5%) ø
functional_ut_boost_ut ✔️ 259440 (12%) ø 19688 (3%) ø
functional_ut_core_imu ✔️ 254688 (12%) ø 19232 (3%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 240424 (11%) ø 19072 (3%) ø
functional_ut_deep_sleep_core_lcd ✔️ 266072 (12%) ø 50896 (9%) ø
functional_ut_deep_sleep_core_motor ✔️ 238920 (11%) ø 19048 (3%) ø
functional_ut_deep_sleep_core_pwm ✔️ 239952 (11%) ø 19112 (3%) ø
functional_ut_deep_sleep_imu ✔️ 254272 (12%) ø 20208 (3%) ø
functional_ut_deep_sleep_log_kit ✔️ 230232 (10%) ø 18816 (3%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 231944 (11%) ø 18768 (3%) ø
functional_ut_deep_sleep_rfid_kit ✔️ 243416 (11%) ø 20208 (3%) ø
functional_ut_file_manager ✔️ 249120 (11%) ø 19352 (3%) ø
functional_ut_firmware_kit ✔️ 242696 (11%) ø 18952 (3%) ø
functional_ut_imu_kit ✔️ 258808 (12%) ø 19360 (3%) ø
functional_ut_io_expander ✔️ 237008 (11%) ø 18656 (3%) ø
functional_ut_qdac ✔️ 238256 (11%) ø 18672 (3%) ø
functional_ut_std_features - - 232696 (11%) - 19120 (3%) -
spike_lk_activity_kit ✔️ 200108 (9%) ø 53688 (10%) ø
spike_lk_audio ✔️ 85404 (4%) ø 12456 (2%) ø
spike_lk_behavior_kit ✔️ 147880 (7%) ø 45960 (8%) ø
spike_lk_ble ✔️ 186868 (8%) ø 26704 (5%) ø
spike_lk_bluetooth ✔️ 37912 (1%) ø 9384 (1%) ø
spike_lk_cg_animations ✔️ 104536 (4%) ø 44376 (8%) ø
spike_lk_color_kit ✔️ 38180 (1%) ø 11640 (2%) ø
spike_lk_command_kit ✔️ 180016 (8%) ø 50544 (9%) ø
spike_lk_config_kit ✔️ 84512 (4%) ø 12216 (2%) ø
spike_lk_coreled ✔️ 37332 (1%) ø 11528 (2%) ø
spike_lk_core_touch_sensor ✔️ 41584 (1%) ø 10088 (1%) ø
spike_lk_event_queue ✔️ 36652 (1%) ø 9912 (1%) ø
spike_lk_file_manager_kit ✔️ 85824 (4%) ø 12304 (2%) ø
spike_lk_file_reception ✔️ 277904 (13%) ø 25640 (4%) ø
spike_lk_flash_memory ✔️ 36184 (1%) ø 9344 (1%) ø
spike_lk_fs ✔️ 129992 (6%) ø 45784 (8%) ø
spike_lk_imu_kit ✔️ 61672 (2%) ø 10880 (2%) ø
spike_lk_lcd ✔️ 122136 (5%) ø 44560 (8%) ø
spike_lk_led_kit ✔️ 65824 (3%) ø 12376 (2%) ø
spike_lk_log_kit ✔️ 35604 (1%) ø 10152 (1%) ø
spike_lk_motion_kit ✔️ 75168 (3%) ø 13024 (2%) ø
spike_lk_motors ✔️ 36048 (1%) ø 9384 (1%) ø
spike_lk_qdac ✔️ 39956 (1%) ø 9648 (1%) ø
spike_lk_reinforcer ✔️ 176768 (8%) ø 47720 (9%) ø
spike_lk_rfid ✔️ 42180 (2%) ø 9352 (1%) ø
spike_lk_sensors_battery ✔️ 41460 (1%) ø 10456 (1%) ø
spike_lk_sensors_imu_lsm6dsox ✔️ 52364 (2%) ø 10688 (2%) ø
spike_lk_sensors_imu_lsm6dsox_fusion_calibration ✔️ 60740 (2%) ø 10824 (2%) ø
spike_lk_sensors_light ✔️ 32456 (1%) ø 9336 (1%) ø
spike_lk_sensors_microphone ✔️ 34448 (1%) ø 9336 (1%) ø
spike_lk_sensors_temperature_humidity ✔️ 39716 (1%) ø 9320 (1%) ø
spike_lk_serial_number ✔️ 87636 (4%) ø 12160 (2%) ø
spike_lk_ticker_timeout ✔️ 31968 (1%) ø 9488 (1%) ø
spike_lk_touch_sensor_kit ✔️ 48688 (2%) ø 10656 (2%) ø
spike_lk_update_process_app_base ✔️ 102052 (4%) ø 13440 (2%) ø
spike_lk_update_process_app_update ✔️ 49052 (2%) ø 10240 (1%) ø
spike_lk_watchdog_isr ✔️ 43328 (2%) ø 11152 (2%) ø
spike_lk_wifi ✔️ 74492 (3%) ø 12696 (2%) ø
spike_mbed_blinky ✔️ 30404 (1%) ø 9296 (1%) ø
spike_mbed_watchdog_ticker_vs_thread ✔️ 35780 (1%) ø 10344 (1%) ø
spike_stl_cxxsupport ✔️ 30860 (1%) ø 9296 (1%) ø

🗺️ Map files diff output

functional_ut_std_features (click to expand)

Flash used: 232696&nbsp;(11%) / total: 2097152
SRAM used: 19120&nbsp;(3%) / total: 524288

Copy link

📈 Changes Impact Analysis Report

📌 Info

  • toolchain: Arm GNU Toolchain 13.2.rel1 (Build arm-13.7) 13.2.1 20231009
  • enable_log_debug: ON
base head
branch develop ladislas/feature/explore-std-ranges
sha 6123b30 0fd6d6c
mbed mbed-os@master+fixes+gcc-11-support mbed-os@master+fixes+gcc-11-support
-std -std=c++20 -std=c++20

🤖 Firmware impact analysis

Target Flash Used (base/head) Flash Used Δ Flash Available (base/head) Static RAM (base/head) Static RAM Δ
bootloader 140392 (53%) ø 121752 (46%)
121752 (46%)
39760 (7%) ø
os 465036 (29%) ø 1099636 (70%)
1099636 (70%)
93360 (17%) ø
Click to show memory sections
| -          |      Hex |     Bytes |  KiB |
|------------|---------:|----------:|-----:|
| Flash      | 0x200000 | 2 097 152 | 2048 |
| SRAM       |  0x80000 |   524 288 |  512 |
| Bootloader |  0x40000 |   262 144 |  256 |
| Header     |   0x1000 |     4 096 |    4 |
| OS         | 0x17E000 | 1 564 672 | 1528 |
| Tail       |   0x1000 |     4 096 |    4 |
| Scratch    |  0x40000 |   262 144 |  256 |

🔬 Detailed impact analysis

Click to show detailed analysis for all targets
  • ✔️ - existing target
  • ✨ - new target
  • ⚰️ - deleted target
  • ✅ - files are the same
  • ❌ - files are different
Target Status .bin .map Total Flash (base/head) Total Flash Δ Static RAM (base/head) Static RAM Δ
LekaOS ✔️ 465036 (22%) ø 93360 (17%) ø
bootloader ✔️ 140392 (6%) ø 39760 (7%) ø
functional_ut_boost_ut ✔️ 275344 (13%) ø 29840 (5%) ø
functional_ut_core_imu ✔️ 263216 (12%) ø 29384 (5%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 249048 (11%) ø 29192 (5%) ø
functional_ut_deep_sleep_core_lcd ✔️ 278488 (13%) ø 61048 (11%) ø
functional_ut_deep_sleep_core_motor ✔️ 251320 (11%) ø 29200 (5%) ø
functional_ut_deep_sleep_core_pwm ✔️ 252360 (12%) ø 29264 (5%) ø
functional_ut_deep_sleep_imu ✔️ 262864 (12%) ø 30360 (5%) ø
functional_ut_deep_sleep_log_kit ✔️ 243432 (11%) ø 29384 (5%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 244952 (11%) ø 28920 (5%) ø
functional_ut_deep_sleep_rfid_kit ✔️ 248216 (11%) ø 30328 (5%) ø
functional_ut_file_manager ✔️ 261744 (12%) ø 29504 (5%) ø
functional_ut_firmware_kit ✔️ 255592 (12%) ø 29104 (5%) ø
functional_ut_imu_kit ✔️ 267312 (12%) ø 29512 (5%) ø
functional_ut_io_expander ✔️ 249416 (11%) ø 28808 (5%) ø
functional_ut_qdac ✔️ 250656 (11%) ø 28824 (5%) ø
functional_ut_std_features - - 245064 (11%) - 29272 (5%) -
spike_lk_activity_kit ✔️ 204020 (9%) ø 64352 (12%) ø
spike_lk_audio ✔️ 97000 (4%) ø 23040 (4%) ø
spike_lk_behavior_kit ✔️ 158164 (7%) ø 56544 (10%) ø
spike_lk_ble ✔️ 198368 (9%) ø 37792 (7%) ø
spike_lk_bluetooth ✔️ 50136 (2%) ø 20056 (3%) ø
spike_lk_cg_animations ✔️ 114296 (5%) ø 55072 (10%) ø
spike_lk_color_kit ✔️ 53112 (2%) ø 22216 (4%) ø
spike_lk_command_kit ✔️ 190404 (9%) ø 61624 (11%) ø
spike_lk_config_kit ✔️ 97932 (4%) ø 23048 (4%) ø
spike_lk_coreled ✔️ 52040 (2%) ø 22104 (4%) ø
spike_lk_core_touch_sensor ✔️ 57116 (2%) ø 20664 (3%) ø
spike_lk_event_queue ✔️ 48720 (2%) ø 20744 (3%) ø
spike_lk_file_manager_kit ✔️ 101900 (4%) ø 23392 (4%) ø
spike_lk_file_reception ✔️ 283108 (13%) ø 36296 (6%) ø
spike_lk_flash_memory ✔️ 51372 (2%) ø 20056 (3%) ø
spike_lk_fs ✔️ 133860 (6%) ø 55392 (10%) ø
spike_lk_imu_kit ✔️ 72188 (3%) ø 21576 (4%) ø
spike_lk_lcd ✔️ 133508 (6%) ø 55392 (10%) ø
spike_lk_led_kit ✔️ 80656 (3%) ø 22952 (4%) ø
spike_lk_log_kit ✔️ 49360 (2%) ø 21240 (4%) ø
spike_lk_motion_kit ✔️ 81172 (3%) ø 23552 (4%) ø
spike_lk_motors ✔️ 50868 (2%) ø 20088 (3%) ø
spike_lk_qdac ✔️ 55748 (2%) ø 20608 (3%) ø
spike_lk_reinforcer ✔️ 185636 (8%) ø 58288 (11%) ø
spike_lk_rfid ✔️ 49240 (2%) ø 20024 (3%) ø
spike_lk_sensors_battery ✔️ 52280 (2%) ø 21152 (4%) ø
spike_lk_sensors_imu_lsm6dsox ✔️ 63404 (3%) ø 21384 (4%) ø
spike_lk_sensors_imu_lsm6dsox_fusion_calibration ✔️ 70924 (3%) ø 20976 (4%) ø
spike_lk_sensors_light ✔️ 48712 (2%) ø 20056 (3%) ø
spike_lk_sensors_microphone ✔️ 49480 (2%) ø 20056 (3%) ø
spike_lk_sensors_temperature_humidity ✔️ 55304 (2%) ø 20032 (3%) ø
spike_lk_serial_number ✔️ 100536 (4%) ø 23112 (4%) ø
spike_lk_ticker_timeout ✔️ 47460 (2%) ø 20072 (3%) ø
spike_lk_touch_sensor_kit ✔️ 60640 (2%) ø 21224 (4%) ø
spike_lk_update_process_app_base ✔️ 115336 (5%) ø 24144 (4%) ø
spike_lk_update_process_app_update ✔️ 64128 (3%) ø 21072 (4%) ø
spike_lk_watchdog_isr ✔️ 52472 (2%) ø 21976 (4%) ø
spike_lk_wifi ✔️ 82004 (3%) ø 23360 (4%) ø
spike_mbed_blinky ✔️ 30972 (1%) ø 9392 (1%) ø
spike_mbed_watchdog_ticker_vs_thread ✔️ 48856 (2%) ø 20920 (3%) ø
spike_stl_cxxsupport ✔️ 48080 (2%)
48764 (2%)
📈
+684 (+1%)
20144 (3%) ø

🗺️ Map files diff output

functional_ut_std_features (click to expand)

Flash used: 245064&nbsp;(11%) / total: 2097152
SRAM used: 29272&nbsp;(5%) / total: 524288
spike_stl_cxxsupport (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_stl_cxxsupport-map.txt	2024-07-11 16:44:17.957953479 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_stl_cxxsupport-map.txt	2024-07-11 16:44:18.077953858 +0000
@@ -1,17 +1,17 @@
 | Module                  |         .text |     .data |          .bss |
 |-------------------------|---------------|-----------|---------------|
-| [fill]                  |     112(+112) |     4(+4) |       36(+36) |
+| [fill]                  |     106(+106) |     4(+4) |       36(+36) |
 | [lib]/CriticalSection.a |         8(+8) |     0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |       94(+94) |     0(+0) |         0(+0) |
 | [lib]/c_nano.a          |   3772(+3772) |   92(+92) |     329(+329) |
 | [lib]/gcc.a             |   3196(+3196) |     0(+0) |         0(+0) |
 | [lib]/m.a               |     264(+264) |     0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  | 31296(+31296) | 444(+444) |   8226(+8226) |
 | [lib]/misc              |     264(+264) |     4(+4) |       25(+25) |
 | [lib]/nosys.a           |       32(+32) |     0(+0) |         0(+0) |
 | [lib]/stdc++_nano.a     |     324(+324) |     0(+0) |         0(+0) |
-| main.cpp.obj            |   4054(+4054) |     0(+0) | 10696(+10696) |
-| Subtotals               | 43416(+43416) | 544(+544) | 19312(+19312) |
+| main.cpp.obj            |   4668(+4668) |     0(+0) | 10696(+10696) |
+| Subtotals               | 44024(+44024) | 544(+544) | 19312(+19312) |
 Total Static RAM memory (data + bss): 19856(+19856) bytes
-Total Flash memory (text + data): 43960(+43960) bytes
+Total Flash memory (text + data): 44568(+44568) bytes
 
Flash used: 48764&nbsp;(2%) / total: 2097152
SRAM used: 20144&nbsp;(3%) / total: 524288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
01 - type: task Something to do
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants