Reducing V8 binary size in JIT-less mode

89 views
Skip to first unread message

Darin Dimitrov

unread,
Jul 1, 2019, 8:22:39 AM7/1/19
to v8-users
According to https://v8.dev/blog/jitless, starting from 7.4, V8 supports JIT-less mode making it suitable for restricted environments.

My goal is to reduce the binary size by stripping the optimizing compiler code which is not needed when running in this mode.

Is any configuration flag which will compile V8 in this lightweight mode?

Right now I am getting both "v8_base_without_compiler" and "v8_compiler" but I was not able to link my application without the "v8_compiler" module.

Jakob Gruber

unread,
Jul 1, 2019, 8:52:52 AM7/1/19
to v8-u...@googlegroups.com, Yang Guo
Hi Darin,

On Mon, Jul 1, 2019 at 2:22 PM Darin Dimitrov <darin.d...@gmail.com> wrote:
According to https://v8.dev/blog/jitless, starting from 7.4, V8 supports JIT-less mode making it suitable for restricted environments.

My goal is to reduce the binary size by stripping the optimizing compiler code which is not needed when running in this mode.

Is any configuration flag which will compile V8 in this lightweight mode?

Unfortunately, right now there is no easy way to conditionally compile out components (e.g.: TurboFan, wasm, the debugger, etc.). It's certainly possible to add support though and I see how it could be interesting for embedders. 

I don't think we have concrete plans for this at the moment, but would welcome contributions.
 

Right now I am getting both "v8_base_without_compiler" and "v8_compiler" but I was not able to link my application without the "v8_compiler" module.

--
--
v8-users mailing list
v8-u...@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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/0dd1c357-5d83-47cb-b32e-ab3e7e504d07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages