Patrick mentioned compressing the debug section to reduce the size of the binary, but expressed concerns about debugging live issues. How can we achieve this optimization without impacting live issue debugging?
Cameron Braid
Asked on Feb 18, 2023
To reduce the size of the binary by compressing the debug section without affecting live issue debugging, you can consider using techniques like stripping debug symbols, generating separate debug files, or selectively compressing debug information. Here are some approaches:
Stripping Debug Symbols: Remove unnecessary debug symbols from the binary to reduce its size without impacting live issue debugging.
Generating Separate Debug Files: Generate separate debug files that can be loaded when needed for debugging, keeping the main binary size smaller.
Selective Compression: Compress only specific parts of the debug section that are not critical for live debugging, allowing you to reduce the size while still maintaining essential debugging information.
By carefully selecting and implementing these strategies, you can optimize the binary size without compromising the ability to debug live issues effectively.