On Thu, Aug 28, 2014 at 2:38 AM, Matt Kline <
slav...@gmail.com> wrote:
> On Linux, I get an approximately 20 MB executable given the default flags.
> Is this about as small as V8 can be expected to get? Besides -Os, are there
> other flags I can provide or features I can disable in order to get a
> smaller size? V8 is being used to parse PAC scripts in this scenario, so it
> is assumed that the JavaScript files will be pretty small and execution
> speed isn't critical.
It sounds like the binary isn't stripped and that V8 is linked against
ICU. Run `strip path/to/d8` to strip debug symbols. `make
i18nsupport=off` builds without ICU.
Building without a snapshot of the run-time (`snapshot=off`) should
further reduce the binary, at the cost of slower start-up times. It
probably saves a few 100 kB at best, though.