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

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
Sounds plausible. Thanks.

I'll have to check the rest to see if also inline but suspect they may be, look like likely candidates, and perhaps not as bad as I first feared it was ...

Code:

Duplicate 'mp_hal_ticks_ms'                9 timesDuplicate 'mp_hal_delay_us_fast'           2 timesDuplicate 'pwm_set_chan_level'             2 timesDuplicate 'machine_spi_init'               2 timesDuplicate 'att_packet_handler'             2 timesDuplicate 'dma_channel_get_default_config' 2 timesDuplicate 'ph_add_child_node'              2 times

Statistics: Posted by hippy — Fri Jan 26, 2024 5:01 pm



Viewing all articles
Browse latest Browse all 5521

Trending Articles