libmp3lame_for_esp32
libmp3lame_for_esp32 copied to clipboard
extern const uint8_t Sample16kHz_raw_start[] asm("_binary_Sample16kHz_raw_start");
Hello,
could you tell me what these codes means exactly? I just know "extern const uint8_t Sample16kHz_raw_start[]", but what "asm("_binary_Sample16kHz_raw_start")" means?
extern const uint8_t Sample16kHz_raw_start[] asm("_binary_Sample16kHz_raw_start"); extern const uint8_t Sample16kHz_raw_end[] asm("_binary_Sample16kHz_raw_end");
Thank you
Hello,
it's a way to include binary files inside the program. Using objcopy you can convert any binary file into .o object, and link with your program using ld. https://balau82.wordpress.com/2012/02/19/linking-a-binary-blob-with-gcc/
Br.