Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3990

SDK • Re: Duplicate labels in '.dis' file

$
0
0
rp2/mphalport.h has "static inline mp_uint_t mp_hal_ticks_ms(void)" so I guess its just many copies of it.
sounds to me, like the compiler isnt respecting that inline statement
and because the function is tagged static, its not able to link to a copy from another .o file
so each .o gets its own copy of the function

forcing it to inline would get rid of the extra symbols
moving it to a .c file instead would reduce the code-size by merging all of the duplicates

Statistics: Posted by cleverca22 — Fri Jan 26, 2024 4:14 pm



Viewing all articles
Browse latest Browse all 3990

Trending Articles