Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize data segments #8

Merged
merged 9 commits into from
Feb 6, 2022
Merged

Optimize data segments #8

merged 9 commits into from
Feb 6, 2022

Conversation

turbolent
Copy link
Owner

Optimize the compilation of data segments by adding

Make the data segment compilation configurable, by adding the command line option -d. The option help lists the available modes:

  • arrays: Writes each data segment as a C array (default)
  • gnu-ld: All data segments are embedded into a data section using GNU LD
  • sectcreate1: All data segments are embedded into a data section using the sectcreate option of modern Mach-O LD versions (recent macOS versions) and accessed using an asm reference
  • sectcreate2: All data segments are embedded into a data section using the sectcreate option of older Mach-O LD versions (older Mac OS X, OPENSTEP, NeXTSTEP, etc.) and accessed using Mach-O getsectdata

@turbolent turbolent added the enhancement New feature or request label Feb 6, 2022
@turbolent turbolent merged commit 9937c0e into main Feb 6, 2022
@turbolent turbolent deleted the optimize-data-segments branch February 6, 2022 03:48
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.

None yet

1 participant