Skip to content

Optimize Compilation#15

Draft
Xeratec wants to merge 2 commits intopulp-platform:develfrom
Xeratec:pr/optimize_compilation
Draft

Optimize Compilation#15
Xeratec wants to merge 2 commits intopulp-platform:develfrom
Xeratec:pr/optimize_compilation

Conversation

@Xeratec
Copy link
Member

@Xeratec Xeratec commented Dec 10, 2024

Changelog

This PR tries to reduce the binary size and improve the debugging functionality of the generated code. One aspect is to separate create function and data sections to allow garbage collection during linking, which significantly reduces the binary size.

Bugs

The separate section works on the object and library level, but somehow the linker merges everything into the .text or .data sections for the final executable and does not keep the individual subsections.

Added

  • Option to disassemble static libraries
  • Create function and data sections
  • Enable linker garbage collection

Changed

Fixed

ToDo

@Xeratec Xeratec self-assigned this Dec 10, 2024
@Xeratec Xeratec force-pushed the pr/optimize_compilation branch from 601b31d to e75301f Compare December 10, 2024 17:26
@Xeratec Xeratec added the enhancement New feature or request label Dec 12, 2024
@Xeratec Xeratec force-pushed the pr/optimize_compilation branch from e75301f to 37d16e0 Compare December 13, 2024 09:57
Copy link
Contributor

@Scheremo Scheremo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments, looks reasonable overall.

@Xeratec Xeratec force-pushed the pr/optimize_compilation branch 2 times, most recently from 7f199aa to 96b4a66 Compare December 19, 2024 12:35
@Xeratec Xeratec force-pushed the pr/optimize_compilation branch 2 times, most recently from e2c80b4 to a3b133a Compare December 17, 2025 10:09
@Xeratec Xeratec force-pushed the pr/optimize_compilation branch 4 times, most recently from dc30679 to 1b0184b Compare February 17, 2026 13:51
@Xeratec Xeratec force-pushed the pr/optimize_compilation branch from 1b0184b to b3276d4 Compare March 10, 2026 10:35
Xeratec and others added 2 commits March 10, 2026 17:00
- Optional garbage collection for the tests
- Create function and data sections
- Optionally disassemble static libraries
@Xeratec Xeratec force-pushed the pr/optimize_compilation branch from b3276d4 to 8862ed4 Compare March 10, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants