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

Improve handling of single structs associated with many clusters. #26495

Merged

Conversation

bzbarsky-apple
Copy link
Contributor

Instead of having a single set of types under "namespace detail" plus namespace aliases, have actual distinct types in the distinct cluster namespaces, with a common super-class in the detail namespace to improve code sharing. This still leaves the fields enums as an alias of the detail bits, but people are unlikely to be dispatching to overloads on the type of that fields enum.

@github-actions
Copy link

PR #26495: Size comparison from bf14d4a to 81290e3

Increases (5 builds for bl602, bl702, cc32xx)
platform target config section bf14d4a 81290e3 change % change
bl602 lighting-app bl602 (read/write) 1354990 1355278 288 0.0
.text 1035976 1036230 254 0.0
bl602+rpc (read/write) 1401266 1401554 288 0.0
.text 1067330 1067588 258 0.0
bl702 lighting-app bl702 (read/write) 1185759 1186047 288 0.0
.debug_aranges 132944 132960 16 0.0
.debug_frame 488804 488872 68 0.0
.debug_info 40943088 40943247 159 0.0
.debug_line 5301455 5301599 144 0.0
.debug_loc 3424613 3424947 334 0.0
.debug_ranges 372344 372384 40 0.0
.debug_str 3708223 3712787 4564 0.1
.rodata 106304 106336 32 0.0
.strtab 580786 581202 416 0.1
.symtab 175264 175312 48 0.0
.text 965470 965724 254 0.0
bl702+rpc (read/write) 1273571 1273843 272 0.0
.debug_aranges 141224 141240 16 0.0
.debug_frame 516776 516844 68 0.0
.debug_info 45848903 45849041 138 0.0
.debug_line 5716360 5716504 144 0.0
.debug_loc 3626917 3627320 403 0.0
.debug_ranges 397648 397688 40 0.0
.debug_str 4133328 4137892 4564 0.1
.rodata 120144 120176 32 0.0
.strtab 641456 641872 416 0.1
.symtab 193600 193648 48 0.0
.text 1038098 1038352 254 0.0
cc32xx lock CC3235SF_LAUNCHXL (read only) 605002 605258 256 0.0
.debug_aranges 101232 101256 24 0.0
.debug_frame 342080 342164 84 0.0
.debug_info 19674627 19674774 147 0.0
.debug_line 2671903 2672133 230 0.0
.debug_loclists 1491139 1491441 302 0.0
.debug_rnglists 94412 94430 18 0.0
.debug_str 3131828 3135058 3230 0.1
.strtab 483089 483539 450 0.1
.symtab 287232 287328 96 0.0
.text 498564 498820 256 0.1
Decreases (3 builds for bl702, cc32xx)
platform target config section bf14d4a 81290e3 change % change
bl702 lighting-app bl702 .debug_abbrev 1550204 1548736 -1468 -0.1
bl702+rpc .debug_abbrev 1706954 1705470 -1484 -0.1
cc32xx lock CC3235SF_LAUNCHXL .debug_abbrev 957619 956170 -1449 -0.2
Full report (5 builds for bl602, bl702, cc32xx)
platform target config section bf14d4a 81290e3 change % change
bl602 lighting-app bl602 (read/write) 1354990 1355278 288 0.0
.bss 87886 87886 0 0.0
.data 9648 9648 0 0.0
.text 1035976 1036230 254 0.0
bl602+rpc (read/write) 1401266 1401554 288 0.0
.bss 95934 95934 0 0.0
.data 10040 10040 0 0.0
.text 1067330 1067588 258 0.0
bl702 lighting-app bl702 0 0 0 0.0
(read only) 3358 3358 0 0.0
(read/write) 1185759 1186047 288 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 67585 67585 0 0.0
.bss_psram 24368 24368 0 0.0
.comment 48 48 0 0.0
.data 3952 3952 0 0.0
.debug_abbrev 1550204 1548736 -1468 -0.1
.debug_aranges 132944 132960 16 0.0
.debug_frame 488804 488872 68 0.0
.debug_info 40943088 40943247 159 0.0
.debug_line 5301455 5301599 144 0.0
.debug_loc 3424613 3424947 334 0.0
.debug_ranges 372344 372384 40 0.0
.debug_str 3708223 3712787 4564 0.1
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 140 140 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 106304 106336 32 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 580786 581202 416 0.1
.symtab 175264 175312 48 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 965470 965724 254 0.0
bl702+rpc 0 0 0 0.0
(read only) 3358 3358 0 0.0
(read/write) 1273571 1273843 272 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 75633 75633 0 0.0
.bss_psram 24768 24768 0 0.0
.comment 48 48 0 0.0
.data 4504 4504 0 0.0
.debug_abbrev 1706954 1705470 -1484 -0.1
.debug_aranges 141224 141240 16 0.0
.debug_frame 516776 516844 68 0.0
.debug_info 45848903 45849041 138 0.0
.debug_line 5716360 5716504 144 0.0
.debug_loc 3626917 3627320 403 0.0
.debug_ranges 397648 397688 40 0.0
.debug_str 4133328 4137892 4564 0.1
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 156 156 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 120144 120176 32 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 641456 641872 416 0.1
.symtab 193600 193648 48 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 1038098 1038352 254 0.0
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 605002 605258 256 0.0
(read/write) 204164 204164 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197576 197576 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 957619 956170 -1449 -0.2
.debug_aranges 101232 101256 24 0.0
.debug_frame 342080 342164 84 0.0
.debug_info 19674627 19674774 147 0.0
.debug_line 2671903 2672133 230 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1491139 1491441 302 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94412 94430 18 0.0
.debug_str 3131828 3135058 3230 0.1
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104314 104314 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 483089 483539 450 0.1
.symtab 287232 287328 96 0.0
.text 498564 498820 256 0.1

Instead of having a single set of types under "namespace detail" plus namespace
aliases, have actual distinct types in the distinct cluster namespaces, with a
common super-class in the detail namespace to improve code sharing.  This
still leaves the fields enums as an alias of the detail bits, but people are
unlikely to be dispatching to overloads on the type of that fields enum.
@bzbarsky-apple bzbarsky-apple force-pushed the shared-structs-better branch from 81290e3 to 0346dc8 Compare May 17, 2023 16:06
@github-actions
Copy link

github-actions bot commented May 17, 2023

PR #26495: Size comparison from 21ef744 to 0346dc8

Increases above 0.2%:

platform target config section 21ef744 0346dc8 change % change
linux tv-casting-app debug (read only) 7238137 7258113 19976 0.3
(read/write) 192400 192880 480 0.2
.data.rel.ro 132000 132472 472 0.4
.text 6562242 6581138 18896 0.3
Increases (31 builds for bl602, bl702, cc32xx, efr32, esp32, linux, nrfconnect, psoc6, telink)
platform target config section 21ef744 0346dc8 change % change
bl602 lighting-app bl602 (read/write) 1356094 1356118 24 0.0
.text 1036266 1036268 2 0.0
bl602+rpc (read/write) 1402106 1402386 280 0.0
.text 1067368 1067624 256 0.0
bl702 lighting-app bl702 (read/write) 1187791 1188079 288 0.0
.debug_aranges 135056 135072 16 0.0
.debug_frame 496668 496736 68 0.0
.debug_info 41802624 41802783 159 0.0
.debug_line 5347152 5347296 144 0.0
.debug_loc 3473576 3473908 332 0.0
.debug_ranges 374456 374496 40 0.0
.debug_str 3790166 3794730 4564 0.1
.rodata 107120 107152 32 0.0
.strtab 581292 581708 416 0.1
.symtab 175472 175520 48 0.0
.text 966386 966644 258 0.0
bl702+rpc (read/write) 1276595 1276867 272 0.0
.debug_aranges 143344 143360 16 0.0
.debug_frame 524680 524748 68 0.0
.debug_info 46725953 46726088 135 0.0
.debug_line 5762988 5763132 144 0.0
.debug_loc 3676294 3676614 320 0.0
.debug_ranges 399816 399856 40 0.0
.debug_str 4215545 4220109 4564 0.1
.rodata 121216 121232 16 0.0
.strtab 642612 643028 416 0.1
.symtab 193968 194016 48 0.0
.text 1039776 1040028 252 0.0
cc32xx lock CC3235SF_LAUNCHXL (read only) 605234 605490 256 0.0
.debug_aranges 103376 103400 24 0.0
.debug_frame 349648 349732 84 0.0
.debug_info 20300482 20300630 148 0.0
.debug_line 2699644 2699875 231 0.0
.debug_loclists 1518946 1519255 309 0.0
.debug_rnglists 96048 96066 18 0.0
.debug_str 3215368 3218598 3230 0.1
.strtab 483205 483655 450 0.1
.symtab 287296 287392 96 0.0
.text 498788 499044 256 0.1
efr32 lighting-app BRD4161A+rs9116 (read/write) 963420 963708 288 0.0
.text 781592 781880 288 0.0
window-app BRD4187C (read/write) 1075640 1075920 280 0.0
.text 929068 929348 280 0.0
esp32 all-clusters-app m5stack (read only) 1101871 1101875 4 0.0
.flash.text 1096487 1096491 4 0.0
linux all-clusters-app debug (read only) 3144917 3146381 1464 0.0
(read/write) 152744 152808 64 0.0
.data.rel.ro 83896 83952 56 0.1
.text 2728341 2729733 1392 0.1
all-clusters-minimal-app debug (read only) 2952781 2954277 1496 0.1
(read/write) 145632 145696 64 0.0
.data.rel.ro 77816 77872 56 0.1
.text 2546549 2547973 1424 0.1
bridge-app debug (read only) 2516421 2516637 216 0.0
(read/write) 129616 129648 32 0.0
.data.rel.ro 69552 69608 56 0.1
.text 2170949 2171093 144 0.0
chip-tool debug (read only) 13427529 13449001 21472 0.2
(read/write) 694376 694824 448 0.1
.data.rel.ro 658120 658568 448 0.1
.text 11182276 11202692 20416 0.2
chip-tool-ipv6only arm64 (read only) 12651788 12669916 18128 0.1
(read/write) 745960 746440 480 0.1
.data.rel.ro 687376 687824 448 0.1
.got 15976 16008 32 0.2
.text 10305028 10322004 16976 0.2
dynamic-bridge-app-ipv6only debug (read only) 2580037 2580253 216 0.0
(read/write) 126808 126840 32 0.0
.data.rel.ro 70136 70192 56 0.1
.text 2226805 2226949 144 0.0
lighting-app debug+rpc+ui (read only) 3243009 3244489 1480 0.0
(read/write) 132208 132272 64 0.0
.data.rel.ro 74680 74736 56 0.1
.text 2766658 2768066 1408 0.1
lock-app debug (read only) 2655181 2656661 1480 0.1
(read/write) 123560 123624 64 0.1
.data.rel.ro 69592 69648 56 0.1
.text 2276341 2277749 1408 0.1
ota-provider-app debug (read only) 2207749 2209213 1464 0.1
(read/write) 103640 103672 32 0.0
.data.rel.ro 51888 51944 56 0.1
.text 1911957 1913349 1392 0.1
ota-requestor-app debug (read only) 2374813 2376277 1464 0.1
(read/write) 111400 111464 64 0.1
.data.rel.ro 56744 56800 56 0.1
.text 2066053 2067445 1392 0.1
shell debug (read only) 2681785 2683065 1280 0.0
.text 2320546 2321826 1280 0.1
thermostat-no-ble arm64 (read only) 2519684 2520788 1104 0.0
(read/write) 142392 142456 64 0.0
.data.rel.ro 77672 77728 56 0.1
.got 5424 5432 8 0.1
.text 2127156 2128116 960 0.0
tv-app debug (read only) 3311129 3312721 1592 0.0
(read/write) 261512 261544 32 0.0
.data.rel.ro 79424 79480 56 0.1
.text 2892402 2893922 1520 0.1
tv-casting-app debug (read only) 7238137 7258113 19976 0.3
(read/write) 192400 192880 480 0.2
.data.rel.ro 132000 132472 472 0.4
.text 6562242 6581138 18896 0.3
nrfconnect all-clusters-app nrf7002dk_nrf5340_cpuapp text 778792 778796 4 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1708124 1708412 288 0.0
.debug_aranges 130664 130688 24 0.0
.debug_frame 434004 434088 84 0.0
.debug_info 28000407 28000705 298 0.0
.debug_line 3797011 3797241 230 0.0
.debug_loclists 2051762 2052061 299 0.0
.debug_rnglists 129947 129965 18 0.0
.debug_str 3726673 3731237 4564 0.1
.strtab 718721 719318 597 0.1
.symtab 467296 467424 128 0.0
.text 1507036 1507324 288 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1649188 1649468 280 0.0
.debug_aranges 129912 129936 24 0.0
.debug_frame 436444 436528 84 0.0
.debug_info 27626271 27626643 372 0.0
.debug_line 3810203 3810433 230 0.0
.debug_loclists 2042675 2042973 298 0.0
.debug_rnglists 128896 128914 18 0.0
.debug_str 3715376 3719996 4620 0.1
.strtab 674975 675600 625 0.1
.symtab 451712 451840 128 0.0
.text 1448900 1449180 280 0.0
light cy8ckit_062s2_43012 (read/write) 1570820 1571108 288 0.0
.debug_aranges 120064 120088 24 0.0
.debug_frame 399680 399764 84 0.0
.debug_info 22973743 22974467 724 0.0
.debug_line 3373198 3373428 230 0.0
.debug_loclists 1874168 1874466 298 0.0
.debug_rnglists 118525 118543 18 0.0
.debug_str 3521355 3525654 4299 0.1
.strtab 591028 591603 575 0.1
.symtab 414160 414288 128 0.0
.text 1378828 1379116 288 0.0
lock cy8ckit_062s2_43012 (read/write) 1627308 1627596 288 0.0
.debug_aranges 120568 120592 24 0.0
.debug_frame 401772 401856 84 0.0
.debug_info 23141937 23142674 737 0.0
.debug_line 3369580 3369810 230 0.0
.debug_loclists 1887595 1887893 298 0.0
.debug_rnglists 118981 118999 18 0.0
.debug_str 3536337 3540636 4299 0.1
.strtab 595029 595604 575 0.1
.symtab 416464 416592 128 0.0
.text 1407532 1407820 288 0.0
telink contact-sensor-app tlsr9518adk80d text 575494 575496 2 0.0
lighting-app-factory-data tlsr9518adk80d text 660014 660016 2 0.0
lighting-app-rpc tlsr9518adk80d (read/write) 1002856 1002864 8 0.0
text 696172 696174 2 0.0
thermostat tlsr9518adk80d text 591836 591840 4 0.0
Decreases (14 builds for bl702, cc32xx, cyw30739, esp32, psoc6, telink)
platform target config section 21ef744 0346dc8 change % change
bl702 lighting-app bl702 .debug_abbrev 1553810 1552342 -1468 -0.1
bl702+rpc .debug_abbrev 1712820 1711336 -1484 -0.1
cc32xx lock CC3235SF_LAUNCHXL .debug_abbrev 956414 954965 -1449 -0.2
cyw30739 light cyw930739m2evb_01 (read/write) 524459 524451 -8 -0.0
.app_xip_area 417253 417245 -8 -0.0
esp32 all-clusters-app c3devkit (read only) 1053942 1053940 -2 -0.0
.flash.text 1053942 1053940 -2 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_abbrev 1287292 1285191 -2101 -0.2
all-clusters-minimal cy8ckit_062s2_43012 .debug_abbrev 1276979 1274930 -2049 -0.2
light cy8ckit_062s2_43012 .debug_abbrev 1110199 1108650 -1549 -0.1
lock cy8ckit_062s2_43012 .debug_abbrev 1109240 1107709 -1531 -0.1
telink all-clusters-app tlsr9518adk80d text 681048 681046 -2 -0.0
light-switch-app tlsr9518adk80d (read/write) 863968 863960 -8 -0.0
text 590122 590120 -2 -0.0
pump-app tlsr9518adk80d (read/write) 853672 853664 -8 -0.0
text 581670 581668 -2 -0.0
pump-controller-app tlsr9518adk80d text 571792 571790 -2 -0.0
temperature-measurement-app tlsr9518adk80d text 567504 567502 -2 -0.0
Full report (57 builds for bl602, bl702, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 21ef744 0346dc8 change % change
bl602 lighting-app bl602 (read/write) 1356094 1356118 24 0.0
.bss 87886 87886 0 0.0
.data 9648 9648 0 0.0
.text 1036266 1036268 2 0.0
bl602+rpc (read/write) 1402106 1402386 280 0.0
.bss 95934 95934 0 0.0
.data 10040 10040 0 0.0
.text 1067368 1067624 256 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1187791 1188079 288 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 67585 67585 0 0.0
.bss_psram 24656 24656 0 0.0
.comment 48 48 0 0.0
.data 3952 3952 0 0.0
.debug_abbrev 1553810 1552342 -1468 -0.1
.debug_aranges 135056 135072 16 0.0
.debug_frame 496668 496736 68 0.0
.debug_info 41802624 41802783 159 0.0
.debug_line 5347152 5347296 144 0.0
.debug_loc 3473576 3473908 332 0.0
.debug_ranges 374456 374496 40 0.0
.debug_str 3790166 3794730 4564 0.1
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 140 140 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 107120 107152 32 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 581292 581708 416 0.1
.symtab 175472 175520 48 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
966386 966644 258 0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1276595 1276867 272 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 75633 75633 0 0.0
.bss_psram 25056 25056 0 0.0
.comment 48 48 0 0.0
.data 4504 4504 0 0.0
.debug_abbrev 1712820 1711336 -1484 -0.1
.debug_aranges 143344 143360 16 0.0
.debug_frame 524680 524748 68 0.0
.debug_info 46725953 46726088 135 0.0
.debug_line 5762988 5763132 144 0.0
.debug_loc 3676294 3676614 320 0.0
.debug_ranges 399816 399856 40 0.0
.debug_str 4215545 4220109 4564 0.1
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 156 156 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121216 121232 16 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 642612 643028 416 0.1
.symtab 193968 194016 48 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1039776 1040028 252 0.0
cc32xx lock CC3235SF_LAUNCHXL (blank) 0 0 0 0.0
(read only) 605234 605490 256 0.0
(read/write) 204164 204164 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197576 197576 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 956414 954965 -1449 -0.2
.debug_aranges 103376 103400 24 0.0
.debug_frame 349648 349732 84 0.0
.debug_info 20300482 20300630 148 0.0
.debug_line 2699644 2699875 231 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1518946 1519255 309 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 96048 96066 18 0.0
.debug_str 3215368 3218598 3230 0.1
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104322 104322 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 483205 483655 450 0.1
.symtab 287296 287392 96 0.0
.text 498788 499044 256 0.1
cyw30739 light cyw930739m2evb_01 (read/write) 524459 524451 -8 -0.0
.app_xip_area 417253 417245 -8 -0.0
.bss 62184 62184 0 0.0
.data 712 712 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 529139 529139 0 0.0
.app_xip_area 416629 416629 0 0.0
.bss 67480 67480 0 0.0
.data 720 720 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 566163 566163 0 0.0
.app_xip_area 459717 459717 0 0.0
.bss 61472 61472 0 0.0
.data 668 668 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 530931 530931 0 0.0
.app_xip_area 421917 421917 0 0.0
.bss 63960 63960 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 963420 963708 288 0.0
.bss 179672 179672 0 0.0
.data 2136 2136 0 0.0
.text 781592 781880 288 0.0
BRD4187C (read/write) 1000736 1000736 0 0.0
.bss 159420 159420 0 0.0
.data 2780 2780 0 0.0
.text 838516 838516 0 0.0
lock-app BRD4161A+wf200 (read/write) 1068476 1068476 0 0.0
.bss 174144 174144 0 0.0
.data 2152 2152 0 0.0
.text 892160 892160 0 0.0
window-app BRD4187C (read/write) 1075640 1075920 280 0.0
.bss 143876 143876 0 0.0
.data 2676 2676 0 0.0
.text 929068 929348 280 0.0
esp32 all-clusters-app c3devkit (read only) 1053942 1053940 -2 -0.0
(read/write) 1583688 1583688 0 0.0
.dram0.bss 77176 77176 0 0.0
.dram0.data 13968 13968 0 0.0
.flash.rodata 213408 213408 0 0.0
.flash.text 1053942 1053940 -2 -0.0
.iram0.text 76708 76708 0 0.0
m5stack (read only) 1101871 1101875 4 0.0
(read/write) 492858 492858 0 0.0
.dram0.bss 82192 82192 0 0.0
.dram0.data 34304 34304 0 0.0
.flash.rodata 241212 241212 0 0.0
.flash.text 1096487 1096491 4 0.0
.iram0.text 126055 126055 0 0.0
k32w contact k32w0+release (read only) 583548 583548 0 0.0
(read/write) 82704 82704 0 0.0
.bss 65888 65888 0 0.0
.data 2192 2192 0 0.0
.text 583012 583012 0 0.0
light k32w0+release (read only) 582516 582516 0 0.0
(read/write) 82356 82356 0 0.0
.bss 65552 65552 0 0.0
.data 2180 2180 0 0.0
.text 581980 581980 0 0.0
lock k32w0+release (read only) 555956 555956 0 0.0
(read/write) 80352 80352 0 0.0
.bss 63624 63624 0 0.0
.data 2104 2104 0 0.0
.text 555420 555420 0 0.0
linux all-clusters-app debug (read only) 3144917 3146381 1464 0.0
(read/write) 152744 152808 64 0.0
.bss 60192 60192 0 0.0
.data 2160 2160 0 0.0
.data.rel.ro 83896 83952 56 0.1
.dynamic 608 608 0 0.0
.got 4728 4728 0 0.0
.init 27 27 0 0.0
.init_array 1120 1120 0 0.0
.rodata 230696 230696 0 0.0
.text 2728341 2729733 1392 0.1
all-clusters-minimal-app debug (read only) 2952781 2954277 1496 0.1
(read/write) 145632 145696 64 0.0
.bss 59296 59296 0 0.0
.data 2128 2128 0 0.0
.data.rel.ro 77816 77872 56 0.1
.dynamic 608 608 0 0.0
.got 4664 4664 0 0.0
.init 27 27 0 0.0
.init_array 1080 1080 0 0.0
.rodata 224008 224008 0 0.0
.text 2546549 2547973 1424 0.1
bridge-app debug (read only) 2516421 2516637 216 0.0
(read/write) 129616 129648 32 0.0
.bss 50232 50232 0 0.0
.data 3824 3824 0 0.0
.data.rel.ro 69552 69608 56 0.1
.dynamic 608 608 0 0.0
.got 4568 4568 0 0.0
.init 27 27 0 0.0
.init_array 784 784 0 0.0
.rodata 173224 173224 0 0.0
.text 2170949 2171093 144 0.0
chip-tool debug (read only) 13427529 13449001 21472 0.2
(read/write) 694376 694824 448 0.1
.bss 26424 26424 0 0.0
.data 3042 3042 0 0.0
.data.rel.ro 658120 658568 448 0.1
.dynamic 608 608 0 0.0
.got 5360 5360 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 631885 631885 0 0.0
.text 11182276 11202692 20416 0.2
chip-tool-ipv6only arm64 (read only) 12651788 12669916 18128 0.1
(read/write) 745960 746440 480 0.1
.bss 34392 34392 0 0.0
.data 3008 3008 0 0.0
.data.rel.ro 687376 687824 448 0.1
.dynamic 560 560 0 0.0
.got 15976 16008 32 0.2
.init 24 24 0 0.0
.init_array 216 216 0 0.0
.rodata 576976 576976 0 0.0
.text 10305028 10322004 16976 0.2
dynamic-bridge-app-ipv6only debug (read only) 2580037 2580253 216 0.0
(read/write) 126808 126840 32 0.0
.bss 47544 47544 0 0.0
.data 2864 2864 0 0.0
.data.rel.ro 70136 70192 56 0.1
.dynamic 624 624 0 0.0
.got 4800 4800 0 0.0
.init 27 27 0 0.0
.init_array 792 792 0 0.0
.rodata 175944 175944 0 0.0
.text 2226805 2226949 144 0.0
lighting-app debug+rpc+ui (read only) 3243009 3244489 1480 0.0
(read/write) 132208 132272 64 0.0
.bss 48032 48032 0 0.0
.data 2704 2704 0 0.0
.data.rel.ro 74680 74736 56 0.1
.dynamic 656 656 0 0.0
.got 5240 5240 0 0.0
.init 27 27 0 0.0
.init_array 872 872 0 0.0
.rodata 284628 284628 0 0.0
.text 2766658 2768066 1408 0.1
lock-app debug (read only) 2655181 2656661 1480 0.1
(read/write) 123560 123624 64 0.1
.bss 45952 45952 0 0.0
.data 1904 1904 0 0.0
.data.rel.ro 69592 69648 56 0.1
.dynamic 608 608 0 0.0
.got 4648 4648 0 0.0
.init 27 27 0 0.0
.init_array 832 832 0 0.0
.rodata 206216 206216 0 0.0
.text 2276341 2277749 1408 0.1
ota-provider-app debug (read only) 2207749 2209213 1464 0.1
(read/write) 103640 103672 32 0.0
.bss 44528 44528 0 0.0
.data 2112 2112 0 0.0
.data.rel.ro 51888 51944 56 0.1
.dynamic 608 608 0 0.0
.got 3800 3800 0 0.0
.init 27 27 0 0.0
.init_array 672 672 0 0.0
.rodata 154344 154344 0 0.0
.text 1911957 1913349 1392 0.1
ota-requestor-app debug (read only) 2374813 2376277 1464 0.1
(read/write) 111400 111464 64 0.1
.bss 46960 46960 0 0.0
.data 2512 2512 0 0.0
.data.rel.ro 56744 56800 56 0.1
.dynamic 608 608 0 0.0
.got 3784 3784 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 158440 158440 0 0.0
.text 2066053 2067445 1392 0.1
shell debug (read only) 2681785 2683065 1280 0.0
(read/write) 141232 141232 0 0.0
.bss 59144 59144 0 0.0
.data 1232 1232 0 0.0
.data.rel.ro 75016 75016 0 0.0
.dynamic 608 608 0 0.0
.got 4128 4128 0 0.0
.init 27 27 0 0.0
.init_array 1056 1056 0 0.0
.rodata 199218 199218 0 0.0
.text 2320546 2321826 1280 0.1
thermostat-no-ble arm64 (read only) 2519684 2520788 1104 0.0
(read/write) 142392 142456 64 0.0
.bss 53464 53464 0 0.0
.data 1784 1784 0 0.0
.data.rel.ro 77672 77728 56 0.1
.dynamic 560 560 0 0.0
.got 5424 5432 8 0.1
.init 24 24 0 0.0
.init_array 384 384 0 0.0
.rodata 129256 129256 0 0.0
.text 2127156 2128116 960 0.0
tv-app debug (read only) 3311129 3312721 1592 0.0
(read/write) 261512 261544 32 0.0
.bss 171264 171264 0 0.0
.data 4080 4080 0 0.0
.data.rel.ro 79424 79480 56 0.1
.dynamic 608 608 0 0.0
.got 5000 5000 0 0.0
.init 27 27 0 0.0
.init_array 1088 1088 0 0.0
.rodata 222616 222616 0 0.0
.text 2892402 2893922 1520 0.1
tv-casting-app debug (read only) 7238137 7258113 19976 0.3
(read/write) 192400 192880 480 0.2
.bss 52096 52096 0 0.0
.data 1744 1744 0 0.0
.data.rel.ro 132000 132472 472 0.4
.dynamic 608 608 0 0.0
.got 4920 4920 0 0.0
.init 27 27 0 0.0
.init_array 1000 1000 0 0.0
.rodata 314092 314092 0 0.0
.text 6562242 6581138 18896 0.3
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2495256 2495256 0 0.0
.bss 216304 216304 0 0.0
.data 5144 5144 0 0.0
.text 1457940 1457940 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1177436 1177436 0 0.0
bss 155605 155605 0 0.0
rodata 132988 132988 0 0.0
text 808132 808132 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1437244 1437244 0 0.0
bss 135345 135345 0 0.0
rodata 229004 229004 0 0.0
text 778792 778796 4 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1123592 1123592 0 0.0
bss 154757 154757 0 0.0
rodata 109752 109752 0 0.0
text 778348 778348 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 840640 840640 0 0.0
(read/write) 1708124 1708412 288 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 190148 190148 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2552 2552 0 0.0
.debug_abbrev 1287292 1285191 -2101 -0.2
.debug_aranges 130664 130688 24 0.0
.debug_frame 434004 434088 84 0.0
.debug_info 28000407 28000705 298 0.0
.debug_line 3797011 3797241 230 0.0
.debug_line_str 957 957 0 0.0
.debug_loclists 2051762 2052061 299 0.0
.debug_rnglists 129947 129965 18 0.0
.debug_str 3726673 3731237 4564 0.1
.heap 840640 840640 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 718721 719318 597 0.1
.symtab 467296 467424 128 0.0
.text 1507036 1507324 288 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 841440 841440 0 0.0
(read/write) 1649188 1649468 280 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189348 189348 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2552 2552 0 0.0
.debug_abbrev 1276979 1274930 -2049 -0.2
.debug_aranges 129912 129936 24 0.0
.debug_frame 436444 436528 84 0.0
.debug_info 27626271 27626643 372 0.0
.debug_line 3810203 3810433 230 0.0
.debug_line_str 981 981 0 0.0
.debug_loclists 2042675 2042973 298 0.0
.debug_rnglists 128896 128914 18 0.0
.debug_str 3715376 3719996 4620 0.1
.heap 841440 841440 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 674975 675600 625 0.1
.symtab 451712 451840 128 0.0
.text 1448900 1449180 280 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 849736 849736 0 0.0
(read/write) 1570820 1571108 288 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 181220 181220 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2384 2384 0 0.0
.debug_abbrev 1110199 1108650 -1549 -0.1
.debug_aranges 120064 120088 24 0.0
.debug_frame 399680 399764 84 0.0
.debug_info 22973743 22974467 724 0.0
.debug_line 3373198 3373428 230 0.0
.debug_line_str 942 942 0 0.0
.debug_loclists 1874168 1874466 298 0.0
.debug_rnglists 118525 118543 18 0.0
.debug_str 3521355 3525654 4299 0.1
.heap 849736 849736 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 591028 591603 575 0.1
.symtab 414160 414288 128 0.0
.text 1378828 1379116 288 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 821952 821952 0 0.0
(read/write) 1627308 1627596 288 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 208996 208996 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2392 2392 0 0.0
.debug_abbrev 1109240 1107709 -1531 -0.1
.debug_aranges 120568 120592 24 0.0
.debug_frame 401772 401856 84 0.0
.debug_info 23141937 23142674 737 0.0
.debug_line 3369580 3369810 230 0.0
.debug_line_str 933 933 0 0.0
.debug_loclists 1887595 1887893 298 0.0
.debug_rnglists 118981 118999 18 0.0
.debug_str 3536337 3540636 4299 0.1
.heap 821952 821952 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 595029 595604 575 0.1
.symtab 416464 416592 128 0.0
.text 1407532 1407820 288 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1170296 1170296 0 0.0
.bss 99928 99928 0 0.0
.data 856 856 0 0.0
.text 617396 617396 0 0.0
lock-app qpg6105+debug (read/write) 1139540 1139540 0 0.0
.bss 94824 94824 0 0.0
.data 856 856 0 0.0
.text 586640 586640 0 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1002424 1002424 0 0.0
bss 97952 97952 0 0.0
text 681048 681046 -2 -0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 938036 938036 0 0.0
bss 97004 97004 0 0.0
text 642814 642814 0 0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 919432 919432 0 0.0
bss 99348 99348 0 0.0
text 635464 635464 0 0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 847672 847672 0 0.0
bss 88904 88904 0 0.0
text 575494 575496 2 0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 863968 863960 -8 -0.0
bss 89060 89060 0 0.0
text 590122 590120 -2 -0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 934580 934580 0 0.0
bss 97376 97376 0 0.0
text 652460 652460 0 0.0
lighting-app-factory-data tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 945992 945992 0 0.0
bss 101624 101624 0 0.0
text 660014 660016 2 0.0
lighting-app-rpc tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1002856 1002864 8 0.0
bss 98940 98940 0 0.0
text 696172 696174 2 0.0
lock-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 902656 902656 0 0.0
bss 89556 89556 0 0.0
text 604136 604136 0 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 870552 870552 0 0.0
bss 90176 90176 0 0.0
text 597590 597590 0 0.0
pump-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 853672 853664 -8 -0.0
bss 89024 89024 0 0.0
text 581670 581668 -2 -0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 840468 840468 0 0.0
bss 88824 88824 0 0.0
text 571792 571790 -2 -0.0
temperature-measurement-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 836704 836704 0 0.0
bss 88744 88744 0 0.0
text 567504 567502 -2 -0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 868356 868356 0 0.0
bss 90448 90448 0 0.0
text 591836 591840 4 0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 865016 865016 0 0.0
bss 90868 90868 0 0.0
text 587526 587526 0 0.0

@bzbarsky-apple bzbarsky-apple enabled auto-merge (squash) May 17, 2023 16:20
@bzbarsky-apple bzbarsky-apple merged commit 7d47ed6 into project-chip:master May 17, 2023
@bzbarsky-apple bzbarsky-apple deleted the shared-structs-better branch May 17, 2023 19:41
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this pull request May 30, 2023
This is ending up not working quite right because when structs have struct-typed
(or list-of-struct-typed) fields, the type expectations people have get messed
up.  They're still messed up even after this PR, but at least we're not sort of
promising they won't be messed up.

This reverts project-chip#26763 and project-chip#26495.
bzbarsky-apple added a commit that referenced this pull request Jun 1, 2023
#26958)

This is ending up not working quite right because when structs have struct-typed
(or list-of-struct-typed) fields, the type expectations people have get messed
up.  They're still messed up even after this PR, but at least we're not sort of
promising they won't be messed up.

This reverts #26763 and #26495.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants