mmontag / chip-player-js

Web-based music player for a variety of video game and chiptune music formats.
https://chiptune.app
GNU General Public License v3.0
324 stars 17 forks source link

Compile static libraries with optimization #136

Open mmontag opened 1 year ago

mmontag commented 1 year ago

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

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).