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.
1. 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. 2. 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.
