can v8 be run without an OS

32 views
Skip to first unread message

Qiaowen Yang

unread,
Mar 22, 2023, 1:24:38 AM3/22/23
to v8-users
Hi,

I know that building V8 requires a lot of packages, but I am curious whether V8 can be run without an OS. For example, can we use a simulator like gem5 to run V8.
Thanks for any help.

Yours,
Qiaowen

Ben Noordhuis

unread,
Mar 22, 2023, 4:39:59 AM3/22/23
to v8-u...@googlegroups.com
Short answer: no

Long(er) answer: V8 depends on the OS for things like memory
allocation and thread creation. You would have to write quite a bit of
glue code to make it work in a "bare metal" (god, I hate that phrase)
environment. V8's build tooling isn't very amenable to such scenarios
either.

Qiaowen Yang

unread,
Mar 22, 2023, 8:53:23 AM3/22/23
to v8-users
Thanks for your clarification!
Reply all
Reply to author
Forward
0 new messages