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

Fix improperly mutable pointers to string constants #30804

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

mspang
Copy link
Contributor

@mspang mspang commented Dec 4, 2023

The declaration

  const char * kStringConstant = "value";

declares a mutable pointer to const C string, and so the following assignment is legal:

  kStringConstant = "other value";

Obviously this is not desired. Declaring as "const char * const" avoids this, but this declares an unnecessary pointer.

Change these declarations to "const(expr) char []".

These edits were made by the following command:

find . -name .git -prune -o -name .environment -prune -o -name third_party -prune -o -name zzz_generated -prune -o -name out -prune -o -type f \( -name '*.cpp' -o -name '*.h' \) -exec sed -i 's,^\( *\)\(static \|extern \|\)\(inline \|\)\(constexpr \|\)const char *\* * k\([A-Z][^][ ;()]*\)\( \|;\),\1\2\3\4const char k\5[]\6,g; s,^\([^()]*\)constexpr const char k\([^()]*\)\( \|;\),\1constexpr char k\2\3,g; s,^\(  *\)const\(expr\|\) char \([^()]*\)\[\] *= ",\1static const\2 char \3[] = ",g' {} +

with 2 fixes to add "inline" in constants defined in headers.

Copy link

github-actions bot commented Dec 4, 2023

PR #30804: Size comparison from b9ff894 to 65e4e57

Decreases (5 builds for cc32xx, mbed, qpg)
platform target config section b9ff894 65e4e57 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566458 566402 -56 -0.0
(read/write) 207624 207620 -4 -0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480404 480388 -16 -0.0
lock CC3235SF_LAUNCHXL (read only) 619706 619650 -56 -0.0
(read/write) 208020 208016 -4 -0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511784 511768 -16 -0.0
mbed lock-app-release cy8cproto_062_4343w (read/write) 2525472 2525376 -96 -0.0
.text 1488156 1488060 -96 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115780 1115736 -44 -0.0
.data 744 740 -4 -0.5
.text 628160 628112 -48 -0.0
lock-app qpg6105+debug (read/write) 1079436 1079384 -52 -0.0
.data 788 784 -4 -0.5
.text 591812 591764 -48 -0.0
Full report (5 builds for cc32xx, mbed, qpg)
platform target config section b9ff894 65e4e57 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566458 566402 -56 -0.0
(read/write) 207624 207620 -4 -0.0
.bss 201084 201084 0 0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480404 480388 -16 -0.0
lock CC3235SF_LAUNCHXL (read only) 619706 619650 -56 -0.0
(read/write) 208020 208016 -4 -0.0
.bss 201448 201448 0 0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511784 511768 -16 -0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2525472 2525376 -96 -0.0
.bss 220184 220184 0 0.0
.data 5144 5144 0 0.0
.text 1488156 1488060 -96 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115780 1115736 -44 -0.0
.bss 101200 101200 0 0.0
.data 744 740 -4 -0.5
.text 628160 628112 -48 -0.0
lock-app qpg6105+debug (read/write) 1079436 1079384 -52 -0.0
.bss 97328 97328 0 0.0
.data 788 784 -4 -0.5
.text 591812 591764 -48 -0.0

Copy link

github-actions bot commented Dec 4, 2023

PR #30804: Size comparison from b9ff894 to 973c9cb

Decreases (15 builds for cc13x4_26x4, cc32xx, k32w, mbed, qpg)
platform target config section b9ff894 973c9cb change % change
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 742059 742011 -48 -0.0
(read/write) 167112 167108 -4 -0.0
.data 3424 3420 -4 -0.1
.rodata 84647 84615 -32 -0.0
.text 657020 657008 -12 -0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759235 759179 -56 -0.0
(read/write) 177356 177344 -12 -0.0
.data 3452 3448 -4 -0.1
.rodata 79727 79687 -40 -0.1
.text 679116 679104 -12 -0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746171 746139 -32 -0.0
(read/write) 171804 171792 -12 -0.0
.data 3452 3448 -4 -0.1
.rodata 105487 105463 -24 -0.0
.text 640296 640284 -12 -0.0
pump-app LP_EM_CC1354P10_6 (read only) 699707 699667 -40 -0.0
(read/write) 166124 166112 -12 -0.0
.data 3412 3408 -4 -0.1
.rodata 80415 80391 -24 -0.0
.text 618900 618888 -12 -0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 685211 685171 -40 -0.0
(read/write) 166288 166284 -4 -0.0
.data 3408 3404 -4 -0.1
.rodata 76247 76223 -24 -0.0
.text 608572 608560 -12 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566458 566402 -56 -0.0
(read/write) 207624 207620 -4 -0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480404 480388 -16 -0.0
lock CC3235SF_LAUNCHXL (read only) 619706 619650 -56 -0.0
(read/write) 208020 208016 -4 -0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511784 511768 -16 -0.0
k32w contact k32w0+release (read only) 594196 594156 -40 -0.0
(read/write) 88132 88128 -4 -0.0
.data 2132 2128 -4 -0.2
.text 593660 593620 -40 -0.0
k32w1+release (read/write) 689844 689800 -44 -0.0
.data 2720 2716 -4 -0.1
.text 576072 576032 -40 -0.0
light k32w0+release (read only) 593916 593876 -40 -0.0
(read/write) 87808 87804 -4 -0.0
.data 2120 2116 -4 -0.2
.text 593380 593340 -40 -0.0
k32w1+release (read/write) 781688 781636 -52 -0.0
.data 1932 1928 -4 -0.2
.text 659048 659000 -48 -0.0
lock k32w0+release (read only) 565692 565644 -48 -0.0
(read/write) 85604 85600 -4 -0.0
.data 2060 2056 -4 -0.2
.text 565156 565108 -48 -0.0
mbed lock-app-release cy8cproto_062_4343w (read/write) 2525472 2525376 -96 -0.0
.text 1488156 1488060 -96 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115780 1115736 -44 -0.0
.data 744 740 -4 -0.5
.text 628160 628112 -48 -0.0
lock-app qpg6105+debug (read/write) 1079436 1079384 -52 -0.0
.data 788 784 -4 -0.5
.text 591812 591764 -48 -0.0
Full report (15 builds for cc13x4_26x4, cc32xx, k32w, mbed, qpg)
platform target config section b9ff894 973c9cb change % change
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 742059 742011 -48 -0.0
(read/write) 167112 167108 -4 -0.0
.bss 89524 89524 0 0.0
.data 3424 3420 -4 -0.1
.rodata 84647 84615 -32 -0.0
.text 657020 657008 -12 -0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759235 759179 -56 -0.0
(read/write) 177356 177344 -12 -0.0
.bss 99708 99708 0 0.0
.data 3452 3448 -4 -0.1
.rodata 79727 79687 -40 -0.1
.text 679116 679104 -12 -0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746171 746139 -32 -0.0
(read/write) 171804 171792 -12 -0.0
.bss 94156 94156 0 0.0
.data 3452 3448 -4 -0.1
.rodata 105487 105463 -24 -0.0
.text 640296 640284 -12 -0.0
pump-app LP_EM_CC1354P10_6 (read only) 699707 699667 -40 -0.0
(read/write) 166124 166112 -12 -0.0
.bss 88304 88304 0 0.0
.data 3412 3408 -4 -0.1
.rodata 80415 80391 -24 -0.0
.text 618900 618888 -12 -0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 685211 685171 -40 -0.0
(read/write) 166288 166284 -4 -0.0
.bss 88480 88480 0 0.0
.data 3408 3404 -4 -0.1
.rodata 76247 76223 -24 -0.0
.text 608572 608560 -12 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566458 566402 -56 -0.0
(read/write) 207624 207620 -4 -0.0
.bss 201084 201084 0 0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480404 480388 -16 -0.0
lock CC3235SF_LAUNCHXL (read only) 619706 619650 -56 -0.0
(read/write) 208020 208016 -4 -0.0
.bss 201448 201448 0 0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511784 511768 -16 -0.0
k32w contact k32w0+release (read only) 594196 594156 -40 -0.0
(read/write) 88132 88128 -4 -0.0
.bss 71376 71376 0 0.0
.data 2132 2128 -4 -0.2
.text 593660 593620 -40 -0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 689844 689800 -44 -0.0
.bss 67576 67576 0 0.0
.data 2720 2716 -4 -0.1
.text 576072 576032 -40 -0.0
light k32w0+release (read only) 593916 593876 -40 -0.0
(read/write) 87808 87804 -4 -0.0
.bss 71064 71064 0 0.0
.data 2120 2116 -4 -0.2
.text 593380 593340 -40 -0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 781688 781636 -52 -0.0
.bss 77252 77252 0 0.0
.data 1932 1928 -4 -0.2
.text 659048 659000 -48 -0.0
lock k32w0+release (read only) 565692 565644 -48 -0.0
(read/write) 85604 85600 -4 -0.0
.bss 68920 68920 0 0.0
.data 2060 2056 -4 -0.2
.text 565156 565108 -48 -0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2525472 2525376 -96 -0.0
.bss 220184 220184 0 0.0
.data 5144 5144 0 0.0
.text 1488156 1488060 -96 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115780 1115736 -44 -0.0
.bss 101200 101200 0 0.0
.data 744 740 -4 -0.5
.text 628160 628112 -48 -0.0
lock-app qpg6105+debug (read/write) 1079436 1079384 -52 -0.0
.bss 97328 97328 0 0.0
.data 788 784 -4 -0.5
.text 591812 591764 -48 -0.0

Copy link

github-actions bot commented Dec 4, 2023

PR #30804: Size comparison from b9ff894 to 423de24

Increases above 0.2%:

platform target config section b9ff894 423de24 change % change
linux chip-tool-ipv6only arm64 .got 19304 19400 96 0.5
thermostat-no-ble arm64 .got 11944 12008 64 0.5
Increases (7 builds for esp32, linux, psoc6)
platform target config section b9ff894 423de24 change % change
esp32 all-clusters-app c3devkit (read only) 1135538 1135568 30 0.0
.flash.text 1135538 1135568 30 0.0
m5stack .dram0.bss 79184 79192 8 0.0
linux chip-tool-ipv6only arm64 (read only) 10944200 10944944 744 0.0
.got 19304 19400 96 0.5
.rodata 335168 335624 456 0.1
.text 9774408 9774440 32 0.0
thermostat-no-ble arm64 (read only) 4400048 4400576 528 0.0
.got 11944 12008 64 0.5
.rodata 161980 162316 336 0.2
.text 3897944 3897960 16 0.0
psoc6 all-clusters-minimal cy8ckit_062s2_43012 (read only) 837936 837944 8 0.0
light cy8ckit_062s2_43012 (read only) 844624 844632 8 0.0
lock cy8ckit_062s2_43012 (read only) 817504 817512 8 0.0
Decreases (31 builds for cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, psoc6, qpg)
platform target config section b9ff894 423de24 change % change
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 742059 742011 -48 -0.0
(read/write) 167112 167108 -4 -0.0
.data 3424 3420 -4 -0.1
.rodata 84647 84615 -32 -0.0
.text 657020 657008 -12 -0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759235 759179 -56 -0.0
(read/write) 177356 177344 -12 -0.0
.data 3452 3448 -4 -0.1
.rodata 79727 79687 -40 -0.1
.text 679116 679104 -12 -0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746171 746139 -32 -0.0
(read/write) 171804 171792 -12 -0.0
.data 3452 3448 -4 -0.1
.rodata 105487 105463 -24 -0.0
.text 640296 640284 -12 -0.0
pump-app LP_EM_CC1354P10_6 (read only) 699707 699667 -40 -0.0
(read/write) 166124 166112 -12 -0.0
.data 3412 3408 -4 -0.1
.rodata 80415 80391 -24 -0.0
.text 618900 618888 -12 -0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 685211 685171 -40 -0.0
(read/write) 166288 166284 -4 -0.0
.data 3408 3404 -4 -0.1
.rodata 76247 76223 -24 -0.0
.text 608572 608560 -12 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566458 566402 -56 -0.0
(read/write) 207624 207620 -4 -0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480404 480388 -16 -0.0
lock CC3235SF_LAUNCHXL (read only) 619706 619650 -56 -0.0
(read/write) 208020 208016 -4 -0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511784 511768 -16 -0.0
cyw30739 light cyw930739m2evb_01 (read/write) 560487 560431 -56 -0.0
.app_xip_area 450777 450721 -56 -0.0
.data 664 660 -4 -0.6
lock cyw930739m2evb_01 (read/write) 542535 542479 -56 -0.0
.app_xip_area 428089 428033 -56 -0.0
.data 704 700 -4 -0.6
ota-requestor cyw930739m2evb_01 (read/write) 561375 561327 -48 -0.0
.app_xip_area 453121 453073 -48 -0.0
.data 592 588 -4 -0.7
switch cyw930739m2evb_01 (read/write) 556607 556543 -64 -0.0
.app_xip_area 445121 445065 -56 -0.0
.data 700 696 -4 -0.6
efr32 lighting-app BRD4161A+rs9116 (read/write) 1015648 1015580 -68 -0.0
.data 2692 2688 -4 -0.1
.text 840368 840304 -64 -0.0
BRD4187C (read/write) 1100248 1100204 -44 -0.0
.data 3300 3296 -4 -0.1
.text 900756 900716 -40 -0.0
lock-app BRD4161A+wf200 (read/write) 1113432 1113360 -72 -0.0
.data 2716 2712 -4 -0.1
.text 922068 922004 -64 -0.0
window-app BRD4187C (read/write) 1134244 1134184 -60 -0.0
.data 3172 3168 -4 -0.1
.text 962848 962792 -56 -0.0
esp32 all-clusters-app c3devkit (read/write) 1670540 1670484 -56 -0.0
.dram0.data 12996 12988 -8 -0.1
.flash.rodata 241128 241088 -40 -0.0
m5stack (read only) 1180787 1180771 -16 -0.0
(read/write) 519696 519656 -40 -0.0
.dram0.data 34020 34004 -16 -0.0
.flash.rodata 272128 272096 -32 -0.0
.flash.text 1175403 1175387 -16 -0.0
k32w contact k32w0+release (read only) 594196 594156 -40 -0.0
(read/write) 88132 88128 -4 -0.0
.data 2132 2128 -4 -0.2
.text 593660 593620 -40 -0.0
k32w1+release (read/write) 689844 689800 -44 -0.0
.data 2720 2716 -4 -0.1
.text 576072 576032 -40 -0.0
light k32w0+release (read only) 593916 593876 -40 -0.0
(read/write) 87808 87804 -4 -0.0
.data 2120 2116 -4 -0.2
.text 593380 593340 -40 -0.0
k32w1+release (read/write) 781688 781636 -52 -0.0
.data 1932 1928 -4 -0.2
.text 659048 659000 -48 -0.0
lock k32w0+release (read only) 565692 565644 -48 -0.0
(read/write) 85604 85600 -4 -0.0
.data 2060 2056 -4 -0.2
.text 565156 565108 -48 -0.0
linux chip-tool-ipv6only arm64 (read/write) 554976 554240 -736 -0.1
.data 4296 4288 -8 -0.2
thermostat-no-ble arm64 (read/write) 246336 245792 -544 -0.2
.data 2800 2792 -8 -0.3
mbed lock-app-release cy8cproto_062_4343w (read/write) 2525472 2525376 -96 -0.0
.text 1488156 1488060 -96 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1740868 1740804 -64 -0.0
.text 1535364 1535300 -64 -0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1705172 1705108 -64 -0.0
.data 2480 2472 -8 -0.3
.text 1501380 1501324 -56 -0.0
light cy8ckit_062s2_43012 (read/write) 1630268 1630196 -72 -0.0
.data 2368 2360 -8 -0.3
.text 1433164 1433100 -64 -0.0
lock cy8ckit_062s2_43012 (read/write) 1657164 1657092 -72 -0.0
.data 2392 2384 -8 -0.3
.text 1432940 1432876 -64 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115780 1115736 -44 -0.0
.data 744 740 -4 -0.5
.text 628160 628112 -48 -0.0
lock-app qpg6105+debug (read/write) 1079436 1079384 -52 -0.0
.data 788 784 -4 -0.5
.text 591812 591764 -48 -0.0
Full report (31 builds for cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, psoc6, qpg)
platform target config section b9ff894 423de24 change % change
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 742059 742011 -48 -0.0
(read/write) 167112 167108 -4 -0.0
.bss 89524 89524 0 0.0
.data 3424 3420 -4 -0.1
.rodata 84647 84615 -32 -0.0
.text 657020 657008 -12 -0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759235 759179 -56 -0.0
(read/write) 177356 177344 -12 -0.0
.bss 99708 99708 0 0.0
.data 3452 3448 -4 -0.1
.rodata 79727 79687 -40 -0.1
.text 679116 679104 -12 -0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746171 746139 -32 -0.0
(read/write) 171804 171792 -12 -0.0
.bss 94156 94156 0 0.0
.data 3452 3448 -4 -0.1
.rodata 105487 105463 -24 -0.0
.text 640296 640284 -12 -0.0
pump-app LP_EM_CC1354P10_6 (read only) 699707 699667 -40 -0.0
(read/write) 166124 166112 -12 -0.0
.bss 88304 88304 0 0.0
.data 3412 3408 -4 -0.1
.rodata 80415 80391 -24 -0.0
.text 618900 618888 -12 -0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 685211 685171 -40 -0.0
(read/write) 166288 166284 -4 -0.0
.bss 88480 88480 0 0.0
.data 3408 3404 -4 -0.1
.rodata 76247 76223 -24 -0.0
.text 608572 608560 -12 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566458 566402 -56 -0.0
(read/write) 207624 207620 -4 -0.0
.bss 201084 201084 0 0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480404 480388 -16 -0.0
lock CC3235SF_LAUNCHXL (read only) 619706 619650 -56 -0.0
(read/write) 208020 208016 -4 -0.0
.bss 201448 201448 0 0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511784 511768 -16 -0.0
cyw30739 light cyw930739m2evb_01 (read/write) 560487 560431 -56 -0.0
.app_xip_area 450777 450721 -56 -0.0
.bss 64624 64624 0 0.0
.data 664 660 -4 -0.6
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 542535 542479 -56 -0.0
.app_xip_area 428089 428033 -56 -0.0
.bss 69320 69320 0 0.0
.data 704 700 -4 -0.6
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 561375 561327 -48 -0.0
.app_xip_area 453121 453073 -48 -0.0
.bss 63240 63240 0 0.0
.data 592 588 -4 -0.7
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 556607 556543 -64 -0.0
.app_xip_area 445121 445065 -56 -0.0
.bss 66360 66360 0 0.0
.data 700 696 -4 -0.6
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1015648 1015580 -68 -0.0
.bss 172568 172568 0 0.0
.data 2692 2688 -4 -0.1
.text 840368 840304 -64 -0.0
BRD4187C (read/write) 1100248 1100204 -44 -0.0
.bss 196172 196172 0 0.0
.data 3300 3296 -4 -0.1
.text 900756 900716 -40 -0.0
lock-app BRD4161A+wf200 (read/write) 1113432 1113360 -72 -0.0
.bss 188624 188624 0 0.0
.data 2716 2712 -4 -0.1
.text 922068 922004 -64 -0.0
window-app BRD4187C (read/write) 1134244 1134184 -60 -0.0
.bss 168204 168204 0 0.0
.data 3172 3168 -4 -0.1
.text 962848 962792 -56 -0.0
esp32 all-clusters-app c3devkit (read only) 1135538 1135568 30 0.0
(read/write) 1670540 1670484 -56 -0.0
.dram0.bss 72536 72536 0 0.0
.dram0.data 12996 12988 -8 -0.1
.flash.rodata 241128 241088 -40 -0.0
.flash.text 1135538 1135568 30 0.0
.iram0.text 75694 75694 0 0.0
m5stack (read only) 1180787 1180771 -16 -0.0
(read/write) 519696 519656 -40 -0.0
.dram0.bss 79184 79192 8 0.0
.dram0.data 34020 34004 -16 -0.0
.flash.rodata 272128 272096 -32 -0.0
.flash.text 1175403 1175387 -16 -0.0
.iram0.text 123907 123907 0 0.0
k32w contact k32w0+release (read only) 594196 594156 -40 -0.0
(read/write) 88132 88128 -4 -0.0
.bss 71376 71376 0 0.0
.data 2132 2128 -4 -0.2
.text 593660 593620 -40 -0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 689844 689800 -44 -0.0
.bss 67576 67576 0 0.0
.data 2720 2716 -4 -0.1
.text 576072 576032 -40 -0.0
light k32w0+release (read only) 593916 593876 -40 -0.0
(read/write) 87808 87804 -4 -0.0
.bss 71064 71064 0 0.0
.data 2120 2116 -4 -0.2
.text 593380 593340 -40 -0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 781688 781636 -52 -0.0
.bss 77252 77252 0 0.0
.data 1932 1928 -4 -0.2
.text 659048 659000 -48 -0.0
lock k32w0+release (read only) 565692 565644 -48 -0.0
(read/write) 85604 85600 -4 -0.0
.bss 68920 68920 0 0.0
.data 2060 2056 -4 -0.2
.text 565156 565108 -48 -0.0
linux chip-tool-ipv6only arm64 (read only) 10944200 10944944 744 0.0
(read/write) 554976 554240 -736 -0.1
.bss 103352 103352 0 0.0
.data 4296 4288 -8 -0.2
.data.rel.ro 418528 418528 0 0.0
.dynamic 512 512 0 0.0
.got 19304 19400 96 0.5
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 335168 335624 456 0.1
.text 9774408 9774440 32 0.0
thermostat-no-ble arm64 (read only) 4400048 4400576 528 0.0
(read/write) 246336 245792 -544 -0.2
.bss 122232 122232 0 0.0
.data 2800 2792 -8 -0.3
.data.rel.ro 102288 102288 0 0.0
.dynamic 512 512 0 0.0
.got 11944 12008 64 0.5
.init 24 24 0 0.0
.init_array 424 424 0 0.0
.rodata 161980 162316 336 0.2
.text 3897944 3897960 16 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2525472 2525376 -96 -0.0
.bss 220184 220184 0 0.0
.data 5144 5144 0 0.0
.text 1488156 1488060 -96 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 836224 836224 0 0.0
(read/write) 1740868 1740804 -64 -0.0
.bss 194644 194644 0 0.0
.data 2472 2472 0 0.0
.text 1535364 1535300 -64 -0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 837936 837944 8 0.0
(read/write) 1705172 1705108 -64 -0.0
.bss 192924 192924 0 0.0
.data 2480 2472 -8 -0.3
.text 1501380 1501324 -56 -0.0
light cy8ckit_062s2_43012 (read only) 844624 844632 8 0.0
(read/write) 1630268 1630196 -72 -0.0
.bss 186348 186348 0 0.0
.data 2368 2360 -8 -0.3
.text 1433164 1433100 -64 -0.0
lock cy8ckit_062s2_43012 (read only) 817504 817512 8 0.0
(read/write) 1657164 1657092 -72 -0.0
.bss 213444 213444 0 0.0
.data 2392 2384 -8 -0.3
.text 1432940 1432876 -64 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115780 1115736 -44 -0.0
.bss 101200 101200 0 0.0
.data 744 740 -4 -0.5
.text 628160 628112 -48 -0.0
lock-app qpg6105+debug (read/write) 1079436 1079384 -52 -0.0
.bss 97328 97328 0 0.0
.data 788 784 -4 -0.5
.text 591812 591764 -48 -0.0

Copy link

github-actions bot commented Dec 4, 2023

PR #30804: Size comparison from b9ff894 to c0a120c

Decreases (15 builds for cc13x4_26x4, cc32xx, k32w, mbed, qpg)
platform target config section b9ff894 c0a120c change % change
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 742059 741980 -79 -0.0
(read/write) 167112 167108 -4 -0.0
.data 3424 3420 -4 -0.1
.rodata 84647 84632 -15 -0.0
.text 657020 656960 -60 -0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759235 759140 -95 -0.0
(read/write) 177356 177344 -12 -0.0
.data 3452 3448 -4 -0.1
.rodata 79727 79704 -23 -0.0
.text 679116 679048 -68 -0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746171 746108 -63 -0.0
(read/write) 171804 171792 -12 -0.0
.data 3452 3448 -4 -0.1
.rodata 105487 105480 -7 -0.0
.text 640296 640236 -60 -0.0
pump-app LP_EM_CC1354P10_6 (read only) 699707 699628 -79 -0.0
(read/write) 166124 166112 -12 -0.0
.data 3412 3408 -4 -0.1
.rodata 80415 80408 -7 -0.0
.text 618900 618832 -68 -0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 685211 685140 -71 -0.0
(read/write) 166288 166284 -4 -0.0
.data 3408 3404 -4 -0.1
.rodata 76247 76240 -7 -0.0
.text 608572 608512 -60 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566458 566354 -104 -0.0
(read/write) 207624 207620 -4 -0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480404 480340 -64 -0.0
lock CC3235SF_LAUNCHXL (read only) 619706 619602 -104 -0.0
(read/write) 208020 208016 -4 -0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511784 511720 -64 -0.0
k32w contact k32w0+release (read only) 594196 594128 -68 -0.0
(read/write) 88132 88128 -4 -0.0
.data 2132 2128 -4 -0.2
.text 593660 593592 -68 -0.0
k32w1+release (read/write) 689844 689760 -84 -0.0
.data 2720 2716 -4 -0.1
.text 576072 575992 -80 -0.0
light k32w0+release (read only) 593916 593832 -84 -0.0
(read/write) 87808 87804 -4 -0.0
.data 2120 2116 -4 -0.2
.text 593380 593296 -84 -0.0
k32w1+release (read/write) 781688 781596 -92 -0.0
.data 1932 1928 -4 -0.2
.text 659048 658960 -88 -0.0
lock k32w0+release (read only) 565692 565616 -76 -0.0
(read/write) 85604 85600 -4 -0.0
.data 2060 2056 -4 -0.2
.text 565156 565080 -76 -0.0
mbed lock-app-release cy8cproto_062_4343w (read/write) 2525472 2525392 -80 -0.0
.text 1488156 1488076 -80 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115780 1115700 -80 -0.0
.data 744 740 -4 -0.5
.text 628160 628076 -84 -0.0
lock-app qpg6105+debug (read/write) 1079436 1079348 -88 -0.0
.data 788 784 -4 -0.5
.text 591812 591728 -84 -0.0
Full report (15 builds for cc13x4_26x4, cc32xx, k32w, mbed, qpg)
platform target config section b9ff894 c0a120c change % change
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 742059 741980 -79 -0.0
(read/write) 167112 167108 -4 -0.0
.bss 89524 89524 0 0.0
.data 3424 3420 -4 -0.1
.rodata 84647 84632 -15 -0.0
.text 657020 656960 -60 -0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759235 759140 -95 -0.0
(read/write) 177356 177344 -12 -0.0
.bss 99708 99708 0 0.0
.data 3452 3448 -4 -0.1
.rodata 79727 79704 -23 -0.0
.text 679116 679048 -68 -0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746171 746108 -63 -0.0
(read/write) 171804 171792 -12 -0.0
.bss 94156 94156 0 0.0
.data 3452 3448 -4 -0.1
.rodata 105487 105480 -7 -0.0
.text 640296 640236 -60 -0.0
pump-app LP_EM_CC1354P10_6 (read only) 699707 699628 -79 -0.0
(read/write) 166124 166112 -12 -0.0
.bss 88304 88304 0 0.0
.data 3412 3408 -4 -0.1
.rodata 80415 80408 -7 -0.0
.text 618900 618832 -68 -0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 685211 685140 -71 -0.0
(read/write) 166288 166284 -4 -0.0
.bss 88480 88480 0 0.0
.data 3408 3404 -4 -0.1
.rodata 76247 76240 -7 -0.0
.text 608572 608512 -60 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566458 566354 -104 -0.0
(read/write) 207624 207620 -4 -0.0
.bss 201084 201084 0 0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480404 480340 -64 -0.0
lock CC3235SF_LAUNCHXL (read only) 619706 619602 -104 -0.0
(read/write) 208020 208016 -4 -0.0
.bss 201448 201448 0 0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511784 511720 -64 -0.0
k32w contact k32w0+release (read only) 594196 594128 -68 -0.0
(read/write) 88132 88128 -4 -0.0
.bss 71376 71376 0 0.0
.data 2132 2128 -4 -0.2
.text 593660 593592 -68 -0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 689844 689760 -84 -0.0
.bss 67576 67576 0 0.0
.data 2720 2716 -4 -0.1
.text 576072 575992 -80 -0.0
light k32w0+release (read only) 593916 593832 -84 -0.0
(read/write) 87808 87804 -4 -0.0
.bss 71064 71064 0 0.0
.data 2120 2116 -4 -0.2
.text 593380 593296 -84 -0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 781688 781596 -92 -0.0
.bss 77252 77252 0 0.0
.data 1932 1928 -4 -0.2
.text 659048 658960 -88 -0.0
lock k32w0+release (read only) 565692 565616 -76 -0.0
(read/write) 85604 85600 -4 -0.0
.bss 68920 68920 0 0.0
.data 2060 2056 -4 -0.2
.text 565156 565080 -76 -0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2525472 2525392 -80 -0.0
.bss 220184 220184 0 0.0
.data 5144 5144 0 0.0
.text 1488156 1488076 -80 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115780 1115700 -80 -0.0
.bss 101200 101200 0 0.0
.data 744 740 -4 -0.5
.text 628160 628076 -84 -0.0
lock-app qpg6105+debug (read/write) 1079436 1079348 -88 -0.0
.bss 97328 97328 0 0.0
.data 788 784 -4 -0.5
.text 591812 591728 -84 -0.0

The declaration

  const char * kStringConstant = "value";

declares a mutable pointer to const C string, and so the following
assignment is legal:

  kStringConstant = "other value";

Obviously this is not desired. Declaring as "const char * const" avoids
this, but this declares an unnecessary pointer.

Change these declarations to "const(expr) char []".

These edits were made by the following command:

find . -name .git -prune -o -name .environment -prune -o -name third_party -prune -o -name zzz_generated -prune -o -name out -prune -o -type f \( -name '*.cpp' -o -name '*.h' \) -exec sed -i 's,^\( *\)\(static \|extern \|\)\(inline \|\)\(constexpr \|\)const char *\* * k\([A-Z][^][ ;()]*\)\( \|;\),\1\2\3\4const char k\5[]\6,g; s,^\([^()]*\)constexpr const char k\([^()]*\)\( \|;\),\1constexpr char k\2\3,g; s,^\(  *\)const\(expr\|\) char \([^()]*\)\[\] *= ",\1static const\2 char \3[] = ",g' {} +

with 2 fixes to add "inline" in constants defined in headers.
Copy link

github-actions bot commented Dec 5, 2023

PR #30804: Size comparison from b9ff894 to f0043de

Increases above 0.2%:

platform target config section b9ff894 f0043dec change % change
bl602 lighting-app bl602 .data 9376 9416 40 0.4
bl602+mfd .data 9344 9384 40 0.4
bl602+rpc .data 9744 9784 40 0.4
bl702 lighting-app bl702 .data 3560 3584 24 0.7
bl702+mfd .data 3536 3568 32 0.9
bl702+rpc .data 4112 4144 32 0.8
bl706-eth .data 3128 3160 32 1.0
bl706-wifi .data 3568 3600 32 0.9
bl702l lighting-app bl702l .data 4920 4952 32 0.7
bl702l+mfd .data 4904 4928 24 0.5
linux chip-tool-ipv6only arm64 .got 19304 19408 104 0.5
thermostat-no-ble arm64 .got 11944 12008 64 0.5
.rodata 161980 162332 352 0.2
Increases (15 builds for bl602, bl702, bl702l, cc13x4_26x4, linux)
platform target config section b9ff894 f0043dec change % change
bl602 lighting-app bl602 .data 9376 9416 40 0.4
bl602+mfd .data 9344 9384 40 0.4
bl602+rpc .data 9744 9784 40 0.4
bl702 lighting-app bl702 .data 3560 3584 24 0.7
bl702+mfd .data 3536 3568 32 0.9
bl702+rpc .data 4112 4144 32 0.8
bl706-eth .data 3128 3160 32 1.0
bl706-wifi .data 3568 3600 32 0.9
bl702l lighting-app bl702l .data 4920 4952 32 0.7
bl702l+mfd (read/write) 1158388 1158820 432 0.0
.data 4904 4928 24 0.5
cc13x4_26x4 lock-mtd LP_EM_CC1354P10_6 .rodata 105487 105488 1 0.0
pump-app LP_EM_CC1354P10_6 .rodata 80415 80416 1 0.0
pump-controller-app LP_EM_CC1354P10_6 .rodata 76247 76248 1 0.0
linux chip-tool-ipv6only arm64 (read only) 10944200 10944704 504 0.0
.got 19304 19408 104 0.5
.rodata 335168 335640 472 0.1
thermostat-no-ble arm64 (read only) 4400048 4400336 288 0.0
.got 11944 12008 64 0.5
.rodata 161980 162332 352 0.2
Decreases (27 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, k32w, linux, mbed, qpg)
platform target config section b9ff894 f0043dec change % change
bl602 lighting-app bl602 (read/write) 1412798 1412726 -72 -0.0
.rodata 156932 156868 -64 -0.0
.text 1080680 1080640 -40 -0.0
bl602+mfd (read/write) 1427254 1427198 -56 -0.0
.rodata 155892 155828 -64 -0.0
.text 1096044 1096004 -40 -0.0
bl602+rpc (read/write) 1460574 1460502 -72 -0.0
.rodata 164548 164484 -64 -0.0
.text 1112424 1112384 -40 -0.0
bl702 lighting-app bl702 (read/write) 1177487 1177403 -84 -0.0
.rodata 106304 106240 -64 -0.1
.text 950084 950008 -76 -0.0
bl702+mfd (read/write) 1188355 1188279 -76 -0.0
.rodata 105244 105180 -64 -0.1
.text 961892 961816 -76 -0.0
bl702+rpc (read/write) 1277303 1269163 -8140 -0.6
.rodata 121720 121660 -60 -0.0
.text 1024890 1024814 -76 -0.0
bl706-eth (read/write) 997453 997365 -88 -0.0
.rodata 99644 99572 -72 -0.1
.text 743320 743240 -80 -0.0
bl706-wifi (read/write) 1233746 1233654 -92 -0.0
.rodata 120616 120552 -64 -0.1
.text 968780 968688 -92 -0.0
bl702l lighting-app bl702l (read/write) 1147184 1147112 -72 -0.0
.rodata 100308 100244 -64 -0.1
.text 943174 943134 -40 -0.0
bl702l+mfd .rodata 99248 99184 -64 -0.1
.text 955294 955254 -40 -0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 742059 741988 -71 -0.0
(read/write) 167112 167108 -4 -0.0
.data 3424 3420 -4 -0.1
.rodata 84647 84640 -7 -0.0
.text 657020 656960 -60 -0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759235 759140 -95 -0.0
(read/write) 177356 177344 -12 -0.0
.data 3452 3448 -4 -0.1
.rodata 79727 79704 -23 -0.0
.text 679116 679048 -68 -0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746171 746116 -55 -0.0
(read/write) 171804 171792 -12 -0.0
.data 3452 3448 -4 -0.1
.text 640296 640236 -60 -0.0
pump-app LP_EM_CC1354P10_6 (read only) 699707 699636 -71 -0.0
(read/write) 166124 166112 -12 -0.0
.data 3412 3408 -4 -0.1
.text 618900 618832 -68 -0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 685211 685148 -63 -0.0
(read/write) 166288 166284 -4 -0.0
.data 3408 3404 -4 -0.1
.text 608572 608512 -60 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566458 566354 -104 -0.0
(read/write) 207624 207620 -4 -0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480404 480340 -64 -0.0
lock CC3235SF_LAUNCHXL (read only) 619706 619602 -104 -0.0
(read/write) 208020 208016 -4 -0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511784 511720 -64 -0.0
k32w contact k32w0+release (read only) 594196 594128 -68 -0.0
(read/write) 88132 88128 -4 -0.0
.data 2132 2128 -4 -0.2
.text 593660 593592 -68 -0.0
k32w1+release (read/write) 689844 689760 -84 -0.0
.data 2720 2716 -4 -0.1
.text 576072 575992 -80 -0.0
light k32w0+release (read only) 593916 593832 -84 -0.0
(read/write) 87808 87804 -4 -0.0
.data 2120 2116 -4 -0.2
.text 593380 593296 -84 -0.0
k32w1+release (read/write) 781688 781596 -92 -0.0
.data 1932 1928 -4 -0.2
.text 659048 658960 -88 -0.0
lock k32w0+release (read only) 565692 565616 -76 -0.0
(read/write) 85604 85600 -4 -0.0
.data 2060 2056 -4 -0.2
.text 565156 565080 -76 -0.0
linux chip-tool-ipv6only arm64 (read/write) 554976 554424 -552 -0.1
.data 4296 4280 -16 -0.4
.text 9774408 9774184 -224 -0.0
thermostat-no-ble arm64 (read/write) 246336 246080 -256 -0.1
.data 2800 2784 -16 -0.6
.text 3897944 3897736 -208 -0.0
mbed lock-app-release cy8cproto_062_4343w (read/write) 2525472 2525400 -72 -0.0
.text 1488156 1488084 -72 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115780 1115700 -80 -0.0
.data 744 740 -4 -0.5
.text 628160 628076 -84 -0.0
lock-app qpg6105+debug (read/write) 1079436 1079348 -88 -0.0
.data 788 784 -4 -0.5
.text 591812 591728 -84 -0.0
Full report (27 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, k32w, linux, mbed, qpg)
platform target config section b9ff894 f0043dec change % change
bl602 lighting-app bl602 (read/write) 1412798 1412726 -72 -0.0
.bss 85160 85160 0 0.0
.data 9376 9416 40 0.4
.rodata 156932 156868 -64 -0.0
.text 1080680 1080640 -40 -0.0
bl602+mfd (read/write) 1427254 1427198 -56 -0.0
.bss 85328 85328 0 0.0
.data 9344 9384 40 0.4
.rodata 155892 155828 -64 -0.0
.text 1096044 1096004 -40 -0.0
bl602+rpc (read/write) 1460574 1460502 -72 -0.0
.bss 93192 93192 0 0.0
.data 9744 9784 40 0.4
.rodata 164548 164484 -64 -0.0
.text 1112424 1112384 -40 -0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1177487 1177403 -84 -0.0
.bss 11197 11197 0 0.0
.data 3560 3584 24 0.7
.rodata 106304 106240 -64 -0.1
.text 950084 950008 -76 -0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1188355 1188279 -76 -0.0
.bss 11373 11373 0 0.0
.data 3536 3568 32 0.9
.rodata 105244 105180 -64 -0.1
.text 961892 961816 -76 -0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1277303 1269163 -8140 -0.6
.bss 19677 19677 0 0.0
.data 4112 4144 32 0.8
.rodata 121720 121660 -60 -0.0
.text 1024890 1024814 -76 -0.0
bl706-eth (read/write) 997453 997365 -88 -0.0
.bss 23772 23772 0 0.0
.data 3128 3160 32 1.0
.rodata 99644 99572 -72 -0.1
.text 743320 743240 -80 -0.0
bl706-wifi (read/write) 1233746 1233654 -92 -0.0
.bss 10641 10641 0 0.0
.data 3568 3600 32 0.9
.rodata 120616 120552 -64 -0.1
.text 968780 968688 -92 -0.0
bl702l lighting-app bl702l (read only) 512 512 0 0.0
(read/write) 1147184 1147112 -72 -0.0
.bss 16392 16392 0 0.0
.data 4920 4952 32 0.7
.rodata 100308 100244 -64 -0.1
.text 943174 943134 -40 -0.0
bl702l+mfd (read/write) 1158388 1158820 432 0.0
.bss 16568 16568 0 0.0
.data 4904 4928 24 0.5
.rodata 99248 99184 -64 -0.1
.text 955294 955254 -40 -0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 742059 741988 -71 -0.0
(read/write) 167112 167108 -4 -0.0
.bss 89524 89524 0 0.0
.data 3424 3420 -4 -0.1
.rodata 84647 84640 -7 -0.0
.text 657020 656960 -60 -0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759235 759140 -95 -0.0
(read/write) 177356 177344 -12 -0.0
.bss 99708 99708 0 0.0
.data 3452 3448 -4 -0.1
.rodata 79727 79704 -23 -0.0
.text 679116 679048 -68 -0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746171 746116 -55 -0.0
(read/write) 171804 171792 -12 -0.0
.bss 94156 94156 0 0.0
.data 3452 3448 -4 -0.1
.rodata 105487 105488 1 0.0
.text 640296 640236 -60 -0.0
pump-app LP_EM_CC1354P10_6 (read only) 699707 699636 -71 -0.0
(read/write) 166124 166112 -12 -0.0
.bss 88304 88304 0 0.0
.data 3412 3408 -4 -0.1
.rodata 80415 80416 1 0.0
.text 618900 618832 -68 -0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 685211 685148 -63 -0.0
(read/write) 166288 166284 -4 -0.0
.bss 88480 88480 0 0.0
.data 3408 3404 -4 -0.1
.rodata 76247 76248 1 0.0
.text 608572 608512 -60 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566458 566354 -104 -0.0
(read/write) 207624 207620 -4 -0.0
.bss 201084 201084 0 0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480404 480340 -64 -0.0
lock CC3235SF_LAUNCHXL (read only) 619706 619602 -104 -0.0
(read/write) 208020 208016 -4 -0.0
.bss 201448 201448 0 0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511784 511720 -64 -0.0
k32w contact k32w0+release (read only) 594196 594128 -68 -0.0
(read/write) 88132 88128 -4 -0.0
.bss 71376 71376 0 0.0
.data 2132 2128 -4 -0.2
.text 593660 593592 -68 -0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 689844 689760 -84 -0.0
.bss 67576 67576 0 0.0
.data 2720 2716 -4 -0.1
.text 576072 575992 -80 -0.0
light k32w0+release (read only) 593916 593832 -84 -0.0
(read/write) 87808 87804 -4 -0.0
.bss 71064 71064 0 0.0
.data 2120 2116 -4 -0.2
.text 593380 593296 -84 -0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 781688 781596 -92 -0.0
.bss 77252 77252 0 0.0
.data 1932 1928 -4 -0.2
.text 659048 658960 -88 -0.0
lock k32w0+release (read only) 565692 565616 -76 -0.0
(read/write) 85604 85600 -4 -0.0
.bss 68920 68920 0 0.0
.data 2060 2056 -4 -0.2
.text 565156 565080 -76 -0.0
linux chip-tool-ipv6only arm64 (read only) 10944200 10944704 504 0.0
(read/write) 554976 554424 -552 -0.1
.bss 103352 103352 0 0.0
.data 4296 4280 -16 -0.4
.data.rel.ro 418528 418528 0 0.0
.dynamic 512 512 0 0.0
.got 19304 19408 104 0.5
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 335168 335640 472 0.1
.text 9774408 9774184 -224 -0.0
thermostat-no-ble arm64 (read only) 4400048 4400336 288 0.0
(read/write) 246336 246080 -256 -0.1
.bss 122232 122232 0 0.0
.data 2800 2784 -16 -0.6
.data.rel.ro 102288 102288 0 0.0
.dynamic 512 512 0 0.0
.got 11944 12008 64 0.5
.init 24 24 0 0.0
.init_array 424 424 0 0.0
.rodata 161980 162332 352 0.2
.text 3897944 3897736 -208 -0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2525472 2525400 -72 -0.0
.bss 220184 220184 0 0.0
.data 5144 5144 0 0.0
.text 1488156 1488084 -72 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115780 1115700 -80 -0.0
.bss 101200 101200 0 0.0
.data 744 740 -4 -0.5
.text 628160 628076 -84 -0.0
lock-app qpg6105+debug (read/write) 1079436 1079348 -88 -0.0
.bss 97328 97328 0 0.0
.data 788 784 -4 -0.5
.text 591812 591728 -84 -0.0

Copy link

github-actions bot commented Dec 5, 2023

PR #30804: Size comparison from 16f8d7a to 6bcf708

Decreases (2 builds for cc32xx)
platform target config section 16f8d7a 6bcf708 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566466 566362 -104 -0.0
(read/write) 207624 207620 -4 -0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480412 480348 -64 -0.0
lock CC3235SF_LAUNCHXL (read only) 619714 619610 -104 -0.0
(read/write) 208020 208016 -4 -0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511792 511728 -64 -0.0
Full report (2 builds for cc32xx)
platform target config section 16f8d7a 6bcf708 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566466 566362 -104 -0.0
(read/write) 207624 207620 -4 -0.0
.bss 201084 201084 0 0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480412 480348 -64 -0.0
lock CC3235SF_LAUNCHXL (read only) 619714 619610 -104 -0.0
(read/write) 208020 208016 -4 -0.0
.bss 201448 201448 0 0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511792 511728 -64 -0.0

Fix static variables inside functions not named in kConstantNamingStyle:

find . -name .git -prune -o -name .environment -prune -o -name third_party -prune -o -name zzz_generated -prune -o -name out -prune -o -type f \( -name '*.cpp' -o -name '*.h' \) -exec sed -i 's,^\( *\)\(static \|extern \)\(inline \|\)\(constexpr \|\)const char *\* * \([^][ ;()]*\)\( *= *"\|;\),\1\2\3\4const char \5[]\6,g' {} +

Fix file scoped variables not named named in kConstantNamingStyle:

find . -name .git -prune -o -name .environment -prune -o -name third_party -prune -o -name zzz_generated -prune -o -name out -prune -o -type f \( -name '*.cpp' -o -name '*.h' \) -exec sed -i 's,^\(\)\(static \|extern \|\)\(inline \|\)\(constexpr \|\)const char *\* * \([^][ ;()]*\)\( *= *"\|;\),\1\2\3\4const char \5[]\6,g' {} +
find . -name .git -prune -o -name .environment -prune -o -name third_party -prune -o -name zzz_generated -prune -o -name out -prune -o -type f \( -name '*.cpp' -o -name '*.h' -o -name '*.mm' \) -exec sed -i 's,^\( *\)\(static \|extern \|\)\(inline \|\)\(constexpr \|\)const char *\* * k\([A-Z][^][ ;()]*\)\( \|;\),\1\2\3\4const char k\5[]\6,g; s,^\([^()]*\)constexpr const char k\([^()]*\)\( \|;\),\1constexpr char k\2\3,g; s,^\(  *\)const\(expr\|\) char \([^()]*\)\[\] *= ",\1static const\2 char \3[] = ",g' {} +
Copy link

github-actions bot commented Dec 5, 2023

PR #30804: Size comparison from 16f8d7a to aba4909

Increases above 0.2%:

platform target config section 16f8d7a aba4909 change % change
bl602 lighting-app bl602 .data 9376 9416 40 0.4
bl602+mfd .data 9344 9384 40 0.4
bl602+rpc .data 9744 9784 40 0.4
bl702 lighting-app bl702 .data 3560 3584 24 0.7
bl702+mfd .data 3536 3568 32 0.9
bl702+rpc .data 4112 4144 32 0.8
bl706-eth .data 3128 3160 32 1.0
bl706-wifi .data 3568 3600 32 0.9
bl702l lighting-app bl702l .data 4920 4952 32 0.7
bl702l+mfd .data 4904 4928 24 0.5
linux all-clusters-minimal-app debug .rodata 272173 272781 608 0.2
bridge-app debug .rodata 218677 219125 448 0.2
chip-tool-ipv6only arm64 .got 19304 19408 104 0.5
thermostat-no-ble arm64 .got 11944 12008 64 0.5
Increases (33 builds for bl602, bl702, bl702l, cc13x4_26x4, esp32, linux, psoc6, telink)
platform target config section 16f8d7a aba4909 change % change
bl602 lighting-app bl602 .data 9376 9416 40 0.4
bl602+mfd .data 9344 9384 40 0.4
bl602+rpc .data 9744 9784 40 0.4
bl702 lighting-app bl702 .data 3560 3584 24 0.7
bl702+mfd .data 3536 3568 32 0.9
bl702+rpc .data 4112 4144 32 0.8
bl706-eth .data 3128 3160 32 1.0
bl706-wifi .data 3568 3600 32 0.9
bl702l lighting-app bl702l .data 4920 4952 32 0.7
bl702l+mfd .data 4904 4928 24 0.5
cc13x4_26x4 lock-mtd LP_EM_CC1354P10_6 .rodata 105487 105488 1 0.0
pump-app LP_EM_CC1354P10_6 .rodata 80415 80416 1 0.0
pump-controller-app LP_EM_CC1354P10_6 .rodata 76247 76248 1 0.0
esp32 all-clusters-app c3devkit .flash.rodata 241128 241136 8 0.0
m5stack (read/write) 519696 519720 24 0.0
.dram0.bss 79184 79192 8 0.0
.flash.rodata 272128 272160 32 0.0
linux air-purifier-app debug .rodata 178888 179240 352 0.2
all-clusters-app debug .rodata 306268 306844 576 0.2
all-clusters-minimal-app debug .rodata 272173 272781 608 0.2
bridge-app debug (read only) 4413457 4413521 64 0.0
.rodata 218677 219125 448 0.2
chip-tool debug (read only) 11163865 11165289 1424 0.0
.rodata 411625 411977 352 0.1
.text 10093843 10094963 1120 0.0
chip-tool-ipv6only arm64 (read only) 10944312 10944816 504 0.0
.got 19304 19408 104 0.5
.rodata 335168 335640 472 0.1
lighting-app debug+rpc+ui (read only) 5299513 5299529 16 0.0
.rodata 339828 340212 384 0.1
lock-app debug (read only) 4499121 4499153 32 0.0
.rodata 246645 247029 384 0.2
ota-provider-app debug .rodata 200949 201301 352 0.2
ota-requestor-app debug .rodata 204757 205109 352 0.2
shell debug .rodata 180896 180992 96 0.1
thermostat-no-ble arm64 (read only) 4400160 4400448 288 0.0
.got 11944 12008 64 0.5
.rodata 161980 162332 352 0.2
tv-app debug .rodata 271989 272341 352 0.1
tv-casting-app debug (read only) 9102577 9102881 304 0.0
.text 8303667 8304739 1072 0.0
psoc6 all-clusters-minimal cy8ckit_062s2_43012 (read only) 837936 837944 8 0.0
light cy8ckit_062s2_43012 (read only) 844624 844632 8 0.0
lock cy8ckit_062s2_43012 (read only) 817504 817512 8 0.0
telink shell tlsr9518adk80d (read/write) 705408 705416 8 0.0
Decreases (82 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 16f8d7a aba4909 change % change
bl602 lighting-app bl602 (read/write) 1412846 1412774 -72 -0.0
.rodata 156932 156868 -64 -0.0
.text 1080722 1080682 -40 -0.0
bl602+mfd (read/write) 1427294 1427238 -56 -0.0
.rodata 155892 155828 -64 -0.0
.text 1096086 1096046 -40 -0.0
bl602+rpc (read/write) 1460622 1460550 -72 -0.0
.rodata 164548 164484 -64 -0.0
.text 1112466 1112426 -40 -0.0
bl702 lighting-app bl702 (read/write) 1177531 1177447 -84 -0.0
.rodata 106304 106240 -64 -0.1
.text 950126 950050 -76 -0.0
bl702+mfd (read/write) 1188399 1188323 -76 -0.0
.rodata 105244 105180 -64 -0.1
.text 961934 961858 -76 -0.0
bl702+rpc (read/write) 1277343 1269203 -8140 -0.6
.rodata 121720 121660 -60 -0.0
.text 1024932 1024856 -76 -0.0
bl706-eth (read/write) 997497 997409 -88 -0.0
.rodata 99644 99572 -72 -0.1
.text 743362 743282 -80 -0.0
bl706-wifi (read/write) 1233794 1233702 -92 -0.0
.rodata 120616 120552 -64 -0.1
.text 968826 968734 -92 -0.0
bl702l lighting-app bl702l (read/write) 1147224 1147152 -72 -0.0
.rodata 100308 100244 -64 -0.1
.text 943216 943176 -40 -0.0
bl702l+mfd (read/write) 1158940 1158348 -592 -0.1
.rodata 99248 99184 -64 -0.1
.text 955336 955296 -40 -0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 742083 742012 -71 -0.0
(read/write) 167112 167108 -4 -0.0
.data 3424 3420 -4 -0.1
.rodata 84647 84640 -7 -0.0
.text 657044 656984 -60 -0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759259 759164 -95 -0.0
(read/write) 177356 177344 -12 -0.0
.data 3452 3448 -4 -0.1
.rodata 79727 79704 -23 -0.0
.text 679140 679072 -68 -0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746195 746140 -55 -0.0
(read/write) 171804 171792 -12 -0.0
.data 3452 3448 -4 -0.1
.text 640320 640260 -60 -0.0
pump-app LP_EM_CC1354P10_6 (read only) 699731 699660 -71 -0.0
(read/write) 166124 166112 -12 -0.0
.data 3412 3408 -4 -0.1
.text 618924 618856 -68 -0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 685235 685172 -63 -0.0
(read/write) 166288 166284 -4 -0.0
.data 3408 3404 -4 -0.1
.text 608596 608536 -60 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566466 566362 -104 -0.0
(read/write) 207624 207620 -4 -0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480412 480348 -64 -0.0
lock CC3235SF_LAUNCHXL (read only) 619714 619610 -104 -0.0
(read/write) 208020 208016 -4 -0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511792 511728 -64 -0.0
cyw30739 light cyw930739m2evb_01 (read/write) 560503 560415 -88 -0.0
.app_xip_area 450793 450705 -88 -0.0
.data 664 660 -4 -0.6
lock cyw930739m2evb_01 (read/write) 542551 542463 -88 -0.0
.app_xip_area 428105 428017 -88 -0.0
.data 704 700 -4 -0.6
ota-requestor cyw930739m2evb_01 (read/write) 561391 561319 -72 -0.0
.app_xip_area 453137 453065 -72 -0.0
.data 592 588 -4 -0.7
switch cyw930739m2evb_01 (read/write) 556623 556527 -96 -0.0
.app_xip_area 445137 445049 -88 -0.0
.data 700 696 -4 -0.6
efr32 lighting-app BRD4161A+rs9116 (read/write) 1015664 1015548 -116 -0.0
.data 2692 2688 -4 -0.1
.text 840384 840272 -112 -0.0
BRD4187C (read/write) 1100264 1100180 -84 -0.0
.data 3300 3296 -4 -0.1
.text 900772 900692 -80 -0.0
lock-app BRD4161A+wf200 (read/write) 1113448 1113344 -104 -0.0
.data 2716 2712 -4 -0.1
.text 922084 921988 -96 -0.0
window-app BRD4187C (read/write) 1134252 1134152 -100 -0.0
.data 3172 3168 -4 -0.1
.text 962856 962760 -96 -0.0
esp32 all-clusters-app c3devkit (read only) 1135598 1135560 -38 -0.0
(read/write) 1670540 1670532 -8 -0.0
.dram0.data 12996 12988 -8 -0.1
.flash.text 1135598 1135560 -38 -0.0
m5stack (read only) 1180803 1180707 -96 -0.0
.dram0.data 34020 34004 -16 -0.0
.flash.text 1175419 1175323 -96 -0.0
k32w contact k32w0+release (read only) 594228 594144 -84 -0.0
(read/write) 88132 88128 -4 -0.0
.data 2132 2128 -4 -0.2
.text 593692 593608 -84 -0.0
k32w1+release (read/write) 689860 689784 -76 -0.0
.data 2720 2716 -4 -0.1
.text 576088 576016 -72 -0.0
light k32w0+release (read only) 593932 593864 -68 -0.0
(read/write) 87808 87804 -4 -0.0
.data 2120 2116 -4 -0.2
.text 593396 593328 -68 -0.0
k32w1+release (read/write) 781704 781620 -84 -0.0
.data 1932 1928 -4 -0.2
.text 659064 658984 -80 -0.0
lock k32w0+release (read only) 565708 565632 -76 -0.0
(read/write) 85604 85600 -4 -0.0
.data 2060 2056 -4 -0.2
.text 565172 565096 -76 -0.0
linux air-purifier-app debug (read only) 2523741 2523725 -16 -0.0
.text 2169541 2169221 -320 -0.0
all-clusters-app debug (read only) 5356585 5356473 -112 -0.0
(read/write) 443648 443616 -32 -0.0
.data 3856 3840 -16 -0.4
.text 4650243 4649603 -640 -0.0
all-clusters-minimal-app debug (read only) 4946049 4945969 -80 -0.0
(read/write) 234656 234624 -32 -0.0
.data 3792 3776 -16 -0.4
.text 4441523 4440883 -640 -0.0
bridge-app debug .text 3976275 3975939 -336 -0.0
chip-tool-ipv6only arm64 (read/write) 554864 554312 -552 -0.1
.data 4296 4280 -16 -0.4
.text 9774520 9774296 -224 -0.0
lighting-app debug+rpc+ui .text 4714963 4714643 -320 -0.0
lock-app debug .text 4042531 4042227 -304 -0.0
ota-provider-app debug (read only) 4162841 4162825 -16 -0.0
(read/write) 192696 192664 -32 -0.0
.data 3920 3904 -16 -0.4
.text 3770083 3769763 -320 -0.0
ota-requestor-app debug .data 4192 4176 -16 -0.4
.text 3848355 3848051 -304 -0.0
shell debug (read only) 2776217 2775929 -288 -0.0
(read/write) 149792 149760 -32 -0.0
.data 784 768 -16 -2.0
.text 2424658 2424322 -336 -0.0
thermostat-no-ble arm64 (read/write) 246224 245968 -256 -0.1
.data 2800 2784 -16 -0.6
.text 3898056 3897848 -208 -0.0
tv-app debug .text 4851235 4850931 -304 -0.0
tv-casting-app debug .rodata 356488 355816 -672 -0.2
mbed lock-app-release cy8cproto_062_4343w (read/write) 2525472 2525400 -72 -0.0
.text 1488156 1488084 -72 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1060496 1060380 -116 -0.0
rodata 104176 104156 -20 -0.0
text 779624 779524 -100 -0.0
nrf7002dk_nrf5340_cpuapp (read/write) 1187040 1186900 -140 -0.0
rodata 138304 138280 -24 -0.0
text 777164 777064 -100 -0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1046096 1045956 -140 -0.0
rodata 99432 99412 -20 -0.0
text 769672 769572 -100 -0.0
light-switch-app nrf52840dk_nrf52840 (read/write) 997176 997084 -92 -0.0
rodata 88744 88724 -20 -0.0
text 736104 736032 -72 -0.0
nrf7002dk_nrf5340_cpuapp (read/write) 1183780 1183700 -80 -0.0
rodata 166208 166188 -20 -0.0
text 748476 748404 -72 -0.0
lighting-app nrf52840dk_nrf52840+rpc (read/write) 1099512 1099408 -104 -0.0
rodata 94672 94656 -16 -0.0
text 819064 818992 -72 -0.0
nrf52840dongle_nrf52840 (read/write) 1062368 1062272 -96 -0.0
rodata 84952 84936 -16 -0.0
text 778840 778768 -72 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 983816 983736 -80 -0.0
rodata 83688 83672 -16 -0.0
text 716592 716520 -72 -0.0
nrf7002dk_nrf5340_cpuapp (read/write) 1183780 1183700 -80 -0.0
rodata 166208 166188 -20 -0.0
text 748476 748404 -72 -0.0
lock-app nrf52840dk_nrf52840 (read/write) 1015636 1015544 -92 -0.0
rodata 109044 109024 -20 -0.0
text 733880 733808 -72 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 930872 930772 -100 -0.0
rodata 103328 103308 -20 -0.0
text 652604 652532 -72 -0.0
nrf7002dk_nrf5340_cpuapp (read/write) 1203208 1203064 -144 -0.0
rodata 186516 186496 -20 -0.0
text 747088 747016 -72 -0.0
pump-app nrf52840dk_nrf52840 (read/write) 963424 963340 -84 -0.0
rodata 84104 84084 -20 -0.0
text 709244 709172 -72 -0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 951172 951072 -100 -0.0
rodata 81020 81000 -20 -0.0
text 700324 700252 -72 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1740868 1740740 -128 -0.0
.text 1535364 1535236 -128 -0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1705172 1705044 -128 -0.0
.data 2480 2472 -8 -0.3
.text 1501380 1501260 -120 -0.0
light cy8ckit_062s2_43012 (read/write) 1630284 1630164 -120 -0.0
.data 2368 2360 -8 -0.3
.text 1433180 1433068 -112 -0.0
lock cy8ckit_062s2_43012 (read/write) 1657164 1657044 -120 -0.0
.data 2392 2384 -8 -0.3
.text 1432940 1432828 -112 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115796 1115724 -72 -0.0
.data 744 740 -4 -0.5
.text 628176 628100 -76 -0.0
lock-app qpg6105+debug (read/write) 1079452 1079372 -80 -0.0
.data 788 784 -4 -0.5
.text 591828 591752 -76 -0.0
telink air-quality-sensor-app tlsr9528a_retention (read/write) 819898 819858 -40 -0.0
text 612584 612568 -16 -0.0
all-clusters-app tlsr9518adk80d (read/write) 1077424 1077376 -48 -0.0
text 760134 760116 -18 -0.0
all-clusters-minimal-app tlsr9528a (read/write) 1082660 1082620 -40 -0.0
text 752142 752126 -16 -0.0
bridge-app tlsr9518adk80d (read/write) 933760 933696 -64 -0.0
text 646006 645980 -26 -0.0
contact-sensor-app tlsr9528a_retention (read/write) 820082 820034 -48 -0.0
text 612878 612862 -16 -0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read/write) 976672 976632 -40 -0.0
text 692492 692476 -16 -0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read/write) 1091708 1091672 -36 -0.0
text 768530 768514 -16 -0.0
lock-app-dfu tlsr9528a (read/write) 963380 963340 -40 -0.0
text 646616 646600 -16 -0.0
ota-requestor-app tlsr9518adk80d (read/write) 947024 946984 -40 -0.0
text 661736 661720 -16 -0.0
pump-app tlsr9528a (read/write) 878820 878772 -48 -0.0
text 620838 620822 -16 -0.0
pump-controller-app tlsr9518adk80d (read/write) 819424 819376 -48 -0.0
text 587714 587698 -16 -0.0
shell tlsr9518adk80d text 461926 461916 -10 -0.0
smoke_co_alarm-app tlsr9528a_retention (read/write) 821734 821694 -40 -0.0
text 615550 615534 -16 -0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read/write) 876209 876161 -48 -0.0
text 629142 629126 -16 -0.0
thermostat tlsr9518adk80d (read/write) 843636 843588 -48 -0.0
text 606040 606024 -16 -0.0
window-covering tlsr9518adk80d (read/write) 838120 838080 -40 -0.0
text 600256 600240 -16 -0.0
Full report (83 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 16f8d7a aba4909 change % change
bl602 lighting-app bl602 (read/write) 1412846 1412774 -72 -0.0
.bss 85160 85160 0 0.0
.data 9376 9416 40 0.4
.rodata 156932 156868 -64 -0.0
.text 1080722 1080682 -40 -0.0
bl602+mfd (read/write) 1427294 1427238 -56 -0.0
.bss 85328 85328 0 0.0
.data 9344 9384 40 0.4
.rodata 155892 155828 -64 -0.0
.text 1096086 1096046 -40 -0.0
bl602+rpc (read/write) 1460622 1460550 -72 -0.0
.bss 93192 93192 0 0.0
.data 9744 9784 40 0.4
.rodata 164548 164484 -64 -0.0
.text 1112466 1112426 -40 -0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1177531 1177447 -84 -0.0
.bss 11197 11197 0 0.0
.data 3560 3584 24 0.7
.rodata 106304 106240 -64 -0.1
.text 950126 950050 -76 -0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1188399 1188323 -76 -0.0
.bss 11373 11373 0 0.0
.data 3536 3568 32 0.9
.rodata 105244 105180 -64 -0.1
.text 961934 961858 -76 -0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1277343 1269203 -8140 -0.6
.bss 19677 19677 0 0.0
.data 4112 4144 32 0.8
.rodata 121720 121660 -60 -0.0
.text 1024932 1024856 -76 -0.0
bl706-eth (read/write) 997497 997409 -88 -0.0
.bss 23772 23772 0 0.0
.data 3128 3160 32 1.0
.rodata 99644 99572 -72 -0.1
.text 743362 743282 -80 -0.0
bl706-wifi (read/write) 1233794 1233702 -92 -0.0
.bss 10641 10641 0 0.0
.data 3568 3600 32 0.9
.rodata 120616 120552 -64 -0.1
.text 968826 968734 -92 -0.0
bl702l lighting-app bl702l (read only) 512 512 0 0.0
(read/write) 1147224 1147152 -72 -0.0
.bss 16392 16392 0 0.0
.data 4920 4952 32 0.7
.rodata 100308 100244 -64 -0.1
.text 943216 943176 -40 -0.0
bl702l+mfd (read/write) 1158940 1158348 -592 -0.1
.bss 16568 16568 0 0.0
.data 4904 4928 24 0.5
.rodata 99248 99184 -64 -0.1
.text 955336 955296 -40 -0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 742083 742012 -71 -0.0
(read/write) 167112 167108 -4 -0.0
.bss 89524 89524 0 0.0
.data 3424 3420 -4 -0.1
.rodata 84647 84640 -7 -0.0
.text 657044 656984 -60 -0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759259 759164 -95 -0.0
(read/write) 177356 177344 -12 -0.0
.bss 99708 99708 0 0.0
.data 3452 3448 -4 -0.1
.rodata 79727 79704 -23 -0.0
.text 679140 679072 -68 -0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746195 746140 -55 -0.0
(read/write) 171804 171792 -12 -0.0
.bss 94156 94156 0 0.0
.data 3452 3448 -4 -0.1
.rodata 105487 105488 1 0.0
.text 640320 640260 -60 -0.0
pump-app LP_EM_CC1354P10_6 (read only) 699731 699660 -71 -0.0
(read/write) 166124 166112 -12 -0.0
.bss 88304 88304 0 0.0
.data 3412 3408 -4 -0.1
.rodata 80415 80416 1 0.0
.text 618924 618856 -68 -0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 685235 685172 -63 -0.0
(read/write) 166288 166284 -4 -0.0
.bss 88480 88480 0 0.0
.data 3408 3404 -4 -0.1
.rodata 76247 76248 1 0.0
.text 608596 608536 -60 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 566466 566362 -104 -0.0
(read/write) 207624 207620 -4 -0.0
.bss 201084 201084 0 0.0
.data 1416 1412 -4 -0.3
.rodata 83930 83890 -40 -0.0
.text 480412 480348 -64 -0.0
lock CC3235SF_LAUNCHXL (read only) 619714 619610 -104 -0.0
(read/write) 208020 208016 -4 -0.0
.bss 201448 201448 0 0.0
.data 1452 1448 -4 -0.3
.rodata 105802 105762 -40 -0.0
.text 511792 511728 -64 -0.0
cyw30739 light cyw930739m2evb_01 (read/write) 560503 560415 -88 -0.0
.app_xip_area 450793 450705 -88 -0.0
.bss 64624 64624 0 0.0
.data 664 660 -4 -0.6
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 542551 542463 -88 -0.0
.app_xip_area 428105 428017 -88 -0.0
.bss 69320 69320 0 0.0
.data 704 700 -4 -0.6
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 561391 561319 -72 -0.0
.app_xip_area 453137 453065 -72 -0.0
.bss 63240 63240 0 0.0
.data 592 588 -4 -0.7
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 556623 556527 -96 -0.0
.app_xip_area 445137 445049 -88 -0.0
.bss 66360 66360 0 0.0
.data 700 696 -4 -0.6
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1015664 1015548 -116 -0.0
.bss 172568 172568 0 0.0
.data 2692 2688 -4 -0.1
.text 840384 840272 -112 -0.0
BRD4187C (read/write) 1100264 1100180 -84 -0.0
.bss 196172 196172 0 0.0
.data 3300 3296 -4 -0.1
.text 900772 900692 -80 -0.0
lock-app BRD4161A+wf200 (read/write) 1113448 1113344 -104 -0.0
.bss 188624 188624 0 0.0
.data 2716 2712 -4 -0.1
.text 922084 921988 -96 -0.0
window-app BRD4187C (read/write) 1134252 1134152 -100 -0.0
.bss 168204 168204 0 0.0
.data 3172 3168 -4 -0.1
.text 962856 962760 -96 -0.0
esp32 all-clusters-app c3devkit (read only) 1135598 1135560 -38 -0.0
(read/write) 1670540 1670532 -8 -0.0
.dram0.bss 72536 72536 0 0.0
.dram0.data 12996 12988 -8 -0.1
.flash.rodata 241128 241136 8 0.0
.flash.text 1135598 1135560 -38 -0.0
.iram0.text 75694 75694 0 0.0
m5stack (read only) 1180803 1180707 -96 -0.0
(read/write) 519696 519720 24 0.0
.dram0.bss 79184 79192 8 0.0
.dram0.data 34020 34004 -16 -0.0
.flash.rodata 272128 272160 32 0.0
.flash.text 1175419 1175323 -96 -0.0
.iram0.text 123907 123907 0 0.0
k32w contact k32w0+release (read only) 594228 594144 -84 -0.0
(read/write) 88132 88128 -4 -0.0
.bss 71376 71376 0 0.0
.data 2132 2128 -4 -0.2
.text 593692 593608 -84 -0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 689860 689784 -76 -0.0
.bss 67576 67576 0 0.0
.data 2720 2716 -4 -0.1
.text 576088 576016 -72 -0.0
light k32w0+release (read only) 593932 593864 -68 -0.0
(read/write) 87808 87804 -4 -0.0
.bss 71064 71064 0 0.0
.data 2120 2116 -4 -0.2
.text 593396 593328 -68 -0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 781704 781620 -84 -0.0
.bss 77252 77252 0 0.0
.data 1932 1928 -4 -0.2
.text 659064 658984 -80 -0.0
lock k32w0+release (read only) 565708 565632 -76 -0.0
(read/write) 85604 85600 -4 -0.0
.bss 68920 68920 0 0.0
.data 2060 2056 -4 -0.2
.text 565172 565096 -76 -0.0
linux air-purifier-app debug (read only) 2523741 2523725 -16 -0.0
(read/write) 127176 127176 0 0.0
.bss 46944 46944 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 72760 72760 0 0.0
.dynamic 608 608 0 0.0
.got 4568 4568 0 0.0
.init 27 27 0 0.0
.init_array 800 800 0 0.0
.rodata 178888 179240 352 0.2
.text 2169541 2169221 -320 -0.0
all-clusters-app debug (read only) 5356585 5356473 -112 -0.0
(read/write) 443648 443616 -32 -0.0
.bss 130064 130064 0 0.0
.data 3856 3840 -16 -0.4
.data.rel.ro 302496 302496 0 0.0
.dynamic 624 624 0 0.0
.got 5352 5352 0 0.0
.init 27 27 0 0.0
.init_array 1224 1224 0 0.0
.rodata 306268 306844 576 0.2
.text 4650243 4649603 -640 -0.0
all-clusters-minimal-app debug (read only) 4946049 4945969 -80 -0.0
(read/write) 234656 234624 -32 -0.0
.bss 127856 127856 0 0.0
.data 3792 3776 -16 -0.4
.data.rel.ro 95872 95872 0 0.0
.dynamic 624 624 0 0.0
.got 5312 5312 0 0.0
.init 27 27 0 0.0
.init_array 1160 1160 0 0.0
.rodata 272173 272781 608 0.2
.text 4441523 4440883 -640 -0.0
bridge-app debug (read only) 4413457 4413521 64 0.0
(read/write) 215864 215864 0 0.0
.bss 119224 119224 0 0.0
.data 4704 4704 0 0.0
.data.rel.ro 85200 85200 0 0.0
.dynamic 624 624 0 0.0
.got 5280 5280 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 218677 219125 448 0.2
.text 3976275 3975939 -336 -0.0
chip-tool debug (read only) 11163865 11165289 1424 0.0
(read/write) 486280 486280 0 0.0
.bss 94072 94072 0 0.0
.data 4994 4994 0 0.0
.data.rel.ro 379976 379976 0 0.0
.dynamic 624 624 0 0.0
.got 5784 5784 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 411625 411977 352 0.1
.text 10093843 10094963 1120 0.0
chip-tool-ipv6only arm64 (read only) 10944312 10944816 504 0.0
(read/write) 554864 554312 -552 -0.1
.bss 103352 103352 0 0.0
.data 4296 4280 -16 -0.4
.data.rel.ro 418528 418528 0 0.0
.dynamic 512 512 0 0.0
.got 19304 19408 104 0.5
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 335168 335640 472 0.1
.text 9774520 9774296 -224 -0.0
lighting-app debug+rpc+ui (read only) 5299513 5299529 16 0.0
(read/write) 224936 224936 0 0.0
.bss 119360 119360 0 0.0
.data 4416 4416 0 0.0
.data.rel.ro 93616 93616 0 0.0
.dynamic 672 672 0 0.0
.got 5896 5896 0 0.0
.init 27 27 0 0.0
.init_array 960 960 0 0.0
.rodata 339828 340212 384 0.1
.text 4714963 4714643 -320 -0.0
lock-app debug (read only) 4499121 4499153 32 0.0
(read/write) 203584 203584 0 0.0
.bss 113760 113760 0 0.0
.data 3648 3648 0 0.0
.data.rel.ro 79432 79432 0 0.0
.dynamic 624 624 0 0.0
.got 5232 5232 0 0.0
.init 27 27 0 0.0
.init_array 856 856 0 0.0
.rodata 246645 247029 384 0.2
.text 4042531 4042227 -304 -0.0
ota-provider-app debug (read only) 4162841 4162825 -16 -0.0
(read/write) 192696 192664 -32 -0.0
.bss 113632 113632 0 0.0
.data 3920 3904 -16 -0.4
.data.rel.ro 69216 69216 0 0.0
.dynamic 624 624 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 200949 201301 352 0.2
.text 3770083 3769763 -320 -0.0
ota-requestor-app debug (read only) 4249225 4249225 0 0.0
(read/write) 196912 196912 0 0.0
.bss 114656 114656 0 0.0
.data 4192 4176 -16 -0.4
.data.rel.ro 72176 72176 0 0.0
.dynamic 624 624 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 204757 205109 352 0.2
.text 3848355 3848051 -304 -0.0
shell debug (read only) 2776217 2775929 -288 -0.0
(read/write) 149792 149760 -32 -0.0
.bss 60616 60616 0 0.0
.data 784 768 -16 -2.0
.data.rel.ro 82584 82584 0 0.0
.dynamic 592 592 0 0.0
.got 4104 4104 0 0.0
.init 27 27 0 0.0
.init_array 1072 1072 0 0.0
.rodata 180896 180992 96 0.1
.text 2424658 2424322 -336 -0.0
thermostat-no-ble arm64 (read only) 4400160 4400448 288 0.0
(read/write) 246224 245968 -256 -0.1
.bss 122232 122232 0 0.0
.data 2800 2784 -16 -0.6
.data.rel.ro 102288 102288 0 0.0
.dynamic 512 512 0 0.0
.got 11944 12008 64 0.5
.init 24 24 0 0.0
.init_array 424 424 0 0.0
.rodata 161980 162332 352 0.2
.text 3898056 3897848 -208 -0.0
tv-app debug (read only) 5360409 5360409 0 0.0
(read/write) 348480 348480 0 0.0
.bss 244192 244192 0 0.0
.data 4992 4992 0 0.0
.data.rel.ro 91976 91976 0 0.0
.dynamic 624 624 0 0.0
.got 5520 5520 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 271989 272341 352 0.1
.text 4851235 4850931 -304 -0.0
tv-casting-app debug (read only) 9102577 9102881 304 0.0
(read/write) 329912 329912 0 0.0
.bss 156192 156192 0 0.0
.data 2464 2464 0 0.0
.data.rel.ro 164424 164424 0 0.0
.dynamic 624 624 0 0.0
.got 5064 5064 0 0.0
.init 27 27 0 0.0
.init_array 1136 1136 0 0.0
.rodata 356488 355816 -672 -0.2
.text 8303667 8304739 1072 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2525472 2525400 -72 -0.0
.bss 220184 220184 0 0.0
.data 5144 5144 0 0.0
.text 1488156 1488084 -72 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1060496 1060380 -116 -0.0
bss 129029 129029 0 0.0
rodata 104176 104156 -20 -0.0
text 779624 779524 -100 -0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1187040 1186900 -140 -0.0
bss 121239 121239 0 0.0
rodata 138304 138280 -24 -0.0
text 777164 777064 -100 -0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1046096 1045956 -140 -0.0
bss 129316 129316 0 0.0
rodata 99432 99412 -20 -0.0
text 769672 769572 -100 -0.0
light-switch-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 997176 997084 -92 -0.0
bss 124700 124700 0 0.0
rodata 88744 88724 -20 -0.0
text 736104 736032 -72 -0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1183780 1183700 -80 -0.0
bss 114791 114791 0 0.0
rodata 166208 166188 -20 -0.0
text 748476 748404 -72 -0.0
lighting-app nrf52840dk_nrf52840+rpc (read only) 4 4 0 0.0
(read/write) 1099512 1099408 -104 -0.0
bss 135076 135076 0 0.0
rodata 94672 94656 -16 -0.0
text 819064 818992 -72 -0.0
nrf52840dongle_nrf52840 (read only) 4 4 0 0.0
(read/write) 1062368 1062272 -96 -0.0
bss 143141 143141 0 0.0
rodata 84952 84936 -16 -0.0
text 778840 778768 -72 -0.0
nrf5340dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 983816 983736 -80 -0.0
bss 131413 131413 0 0.0
rodata 83688 83672 -16 -0.0
text 716592 716520 -72 -0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1183780 1183700 -80 -0.0
bss 114791 114791 0 0.0
rodata 166208 166188 -20 -0.0
text 748476 748404 -72 -0.0
lock-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1015636 1015544 -92 -0.0
bss 125171 125171 0 0.0
rodata 109044 109024 -20 -0.0
text 733880 733808 -72 -0.0
nrf5340dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 930872 930772 -100 -0.0
bss 122768 122768 0 0.0
rodata 103328 103308 -20 -0.0
text 652604 652532 -72 -0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1203208 1203064 -144 -0.0
bss 115262 115262 0 0.0
rodata 186516 186496 -20 -0.0
text 747088 747016 -72 -0.0
pump-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 963424 963340 -84 -0.0
bss 122520 122520 0 0.0
rodata 84104 84084 -20 -0.0
text 709244 709172 -72 -0.0
pump-controller-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 951172 951072 -100 -0.0
bss 122319 122319 0 0.0
rodata 81020 81000 -20 -0.0
text 700324 700252 -72 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 836224 836224 0 0.0
(read/write) 1740868 1740740 -128 -0.0
.bss 194644 194644 0 0.0
.data 2472 2472 0 0.0
.text 1535364 1535236 -128 -0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 837936 837944 8 0.0
(read/write) 1705172 1705044 -128 -0.0
.bss 192924 192924 0 0.0
.data 2480 2472 -8 -0.3
.text 1501380 1501260 -120 -0.0
light cy8ckit_062s2_43012 (read only) 844624 844632 8 0.0
(read/write) 1630284 1630164 -120 -0.0
.bss 186348 186348 0 0.0
.data 2368 2360 -8 -0.3
.text 1433180 1433068 -112 -0.0
lock cy8ckit_062s2_43012 (read only) 817504 817512 8 0.0
(read/write) 1657164 1657044 -120 -0.0
.bss 213444 213444 0 0.0
.data 2392 2384 -8 -0.3
.text 1432940 1432828 -112 -0.0
qpg lighting-app qpg6105+debug (read/write) 1115796 1115724 -72 -0.0
.bss 101200 101200 0 0.0
.data 744 740 -4 -0.5
.text 628176 628100 -76 -0.0
lock-app qpg6105+debug (read/write) 1079452 1079372 -80 -0.0
.bss 97328 97328 0 0.0
.data 788 784 -4 -0.5
.text 591828 591752 -76 -0.0
telink air-quality-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 819898 819858 -40 -0.0
bss 54904 54904 0 0.0
text 612584 612568 -16 -0.0
all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1077424 1077376 -48 -0.0
bss 100072 100072 0 0.0
text 760134 760116 -18 -0.0
all-clusters-minimal-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 1082660 1082620 -40 -0.0
bss 109764 109764 0 0.0
text 752142 752126 -16 -0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 933760 933696 -64 -0.0
bss 94272 94272 0 0.0
text 646006 645980 -26 -0.0
contact-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 820082 820034 -48 -0.0
bss 54948 54948 0 0.0
text 612878 612862 -16 -0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 4 4 0 0.0
(read/write) 976672 976632 -40 -0.0
bss 78932 78932 0 0.0
text 692492 692476 -16 -0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1091708 1091672 -36 -0.0
bss 99836 99836 0 0.0
text 768530 768514 -16 -0.0
lock-app-dfu tlsr9528a (read only) 4 4 0 0.0
(read/write) 963380 963340 -40 -0.0
bss 97196 97196 0 0.0
text 646616 646600 -16 -0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 947024 946984 -40 -0.0
bss 92380 92380 0 0.0
text 661736 661720 -16 -0.0
pump-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 878820 878772 -48 -0.0
bss 68924 68924 0 0.0
text 620838 620822 -16 -0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 819424 819376 -48 -0.0
bss 57160 57160 0 0.0
text 587714 587698 -16 -0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 705408 705416 8 0.0
bss 73588 73588 0 0.0
text 461926 461916 -10 -0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 821734 821694 -40 -0.0
bss 55084 55084 0 0.0
text 615550 615534 -16 -0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 876209 876161 -48 -0.0
bss 60636 60636 0 0.0
text 629142 629126 -16 -0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 843636 843588 -48 -0.0
bss 57456 57456 0 0.0
text 606040 606024 -16 -0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 838120 838080 -40 -0.0
bss 57808 57808 0 0.0
text 600256 600240 -16 -0.0

@mergify mergify bot merged commit 547b587 into project-chip:master Dec 5, 2023
57 checks passed
@mspang mspang deleted the for-chip/string-constants branch December 5, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants