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

Compile static libraries with optimization #136

Open
mmontag opened this issue Jun 2, 2023 · 0 comments
Open

Compile static libraries with optimization #136

mmontag opened this issue Jun 2, 2023 · 0 comments

Comments

@mmontag
Copy link
Owner

mmontag commented Jun 2, 2023

For subprojects where I have left static library build process intact (rather than building source directly in build-chip-core.js):

  • libpsflib.a
  • liblazyusf.a
  • libfluidlite.a
  • libxmp-lite.a
    ...And soon:
  • libvgm-emu.a
  • libvgm-utils.a
  • libvgm-player.a

These have so far been compiled with whatever default settings.
Size could be shaved off with compiler flag -Os.

For example, compiling libvgm with and without optimizations yields (by itself) a chip-core.wasm size of 538 KB and 687 KB respectively (22% reduction).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant