Which distro are you using?  Which make arguments are you using?

When I build on ubuntu 14.04 i386, I get a 7.7MB binary with my code
linked and a 19kB startup script embedded as a string.  D8 is 7.8MB.

On OSX 10.9 (x64), I get 9.8MB.  D8 is 9.8MB.

On ubuntu 14.04 (x64), I get 8.2MB.  D8 is 8.2MB.

I build with:

make builddeps && make $ARCH.release i18nsupport=off


On Wed, Aug 27, 2014 at 5:38 PM, Matt Kline <[email protected]> wrote:
> Hi all,
>
> I'm attempting to build V8 on three platforms: Linux on x86, Linux on ARM
> via a GCC cross-compiler, and Windows. I'm trying to minimize the library
> size, and am left with a few questions. I realize this topic has come up
> before in the mailing list, but most of the posts seem to be years old
> before GYP was used.
>
> 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.
>
> On Windows, I'm building with Visual Studio. After running "python
> build\gyp_v8" and building All.sln, I get a v8_base.lib that's over 160 MB.
> Clearly this can be slimmed down, given the build size I got on Linux. I was
> able to reduce it to about 38 MB by setting "Debug Information Format" to
> "None" and optimization flags to "Minimum Size" (/O1) and "Favor small code"
> (/Os), but that's still twice as large as my Linux build, and that's not
> even counting the other .lib files. What other options should I be setting?
>
>
> --
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to