Windows x86 with stdcall?

22 views
Skip to first unread message

ClearScript Developers

unread,
Mar 20, 2023, 8:45:12 AM3/20/23
to v8-dev
Greetings!

By adding the /Gz compiler switch and making a few minor tweaks, we've managed to build the V8 monolith with stdcall as the default convention.

Unfortunately, this build doesn't work. We can initialize V8 and spin up an isolate, but context creation crashes without a useful stack somewhere within the Genesis code.

Before we probe further, we were wondering if x86 stdcall was known to be fundamentally incompatible with V8.

Thank you!

Jakob Kummerow

unread,
Mar 20, 2023, 9:26:44 AM3/20/23
to v8-...@googlegroups.com
Yeah, this is probably expected. For calls from generated code into C++, V8 necessarily assumes that it knows what the C++ calling convention is.

You could probably work around that, either by teaching V8 about stdcall, or by figuring out how to use stdcall only for all _other_ functions (that aren't called from generated code), but either way it'll be some non-trivial work.


--
--
v8-dev mailing list
v8-...@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/98740a3d-5e02-4b2a-bc09-da79782cce2dn%40googlegroups.com.

ClearScript Developers

unread,
Mar 20, 2023, 10:25:57 AM3/20/23
to v8-dev
Thanks, Jakob!
Reply all
Reply to author
Forward
0 new messages