On Wed, Oct 23, 2013 at 1:12 PM, Pris Matic <prismatic.proj...@gmail.com> wrote:
> Hi,
>
> I built v8 for Android three different ways and the file sizes for the
> resulting binaries seemed a little 'off' compared to a value I got from the
> site of a mobile development framework (Appcelerator)  that embeds v8 into
> their Android applications. They mentioned that the v8 binaries should be
> around 6mb. It's unclear whether that estimate was talking about static or
> shared libs or even what version of v8 it was referencing, but since my
> builds seem so different, I was hoping for some clarification.
>
> My builds:
>
> 1. Default config using the wiki instructions (make android_arm.release)
> which builds:
> * libv8_base.a - 1.3mb
> * libv8_snapshot.a - 3.3kb
> * libv8_nosnapshot.arm.a - 3.3kb
>
> This doesn't seem right for some reason... the binaries seem too small,
> especially the snapshot ones. I need to move these libs to another machine
> for development... but it seems like I have run into the same 'thin archive'
> build issue as: https://groups.google.com/forum/#!topic/v8-users/cl2rPGbqsvQ
> (is this assumption correct?), so I modified /tools/gyp/v8.gyp and added
> 'standalone_static_library': 1 to the static lib targets...
>
> 2. After modifying v8.gyp and rebuilding I get:
> * libv8_base.a - 17.2mb
> * libv8_snapshot.a - 350kb
> * libv8_nosnapshot.arm.a - 1.0mb
>
> 3. I also built v8 as a shared library. I passed snapshot=no when building.
> * libv8.so - 7.4mb
>
>
> Are these binary sizes right? If the latter two are correct, are there any
> build options I can pass to reduce the size of the binaries a bit?
>
>
> Preet

They look about right to me.  You can run the archives through
strip(1) or link with -Wl,--strip-all or -Wl,--strip-debug to remove
the (debug) symbol sections.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to