Create heap snapshot for x86 from 64 bit process

51 views
Skip to first unread message

Darin Dimitrov

unread,
Aug 26, 2019, 4:41:01 AM8/26/19
to v8-users
Is it possible to create heap snapshot using the "mksnapshot" tool for x86 or armeabi-v7a CPU architectures from a 64 bit process. If yes, what are the steps to build such "mksnapshot" executable?

Mac OS Catalina drops support for 32 bit executables and we would like to still be able to produce heap snapshots for x86 or armeabi-v7a architectures on this host OS.

Jakob Gruber

unread,
Aug 26, 2019, 4:51:08 AM8/26/19
to v8-u...@googlegroups.com
On Mon, Aug 26, 2019 at 10:41 AM Darin Dimitrov <darin.d...@gmail.com> wrote:
Is it possible to create heap snapshot using the "mksnapshot" tool for x86 or armeabi-v7a CPU architectures from a 64 bit process. If yes, what are the steps to build such "mksnapshot" executable?

Unfortunately, no. Cross-bitness builds are not supported at the moment. Would building inside a Linux VM be an option?


Mac OS Catalina drops support for 32 bit executables and we would like to still be able to produce heap snapshots for x86 or armeabi-v7a architectures on this host OS.

--
--
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/aeb27954-4333-4a50-8f0f-273dbee63923%40googlegroups.com.

Darin Dimitrov

unread,
Aug 26, 2019, 6:24:38 AM8/26/19
to v8-users
Thanks Jakob, we were considering exactly this option. Just wanted to make sure we weren't missing something before going that way.

On Monday, August 26, 2019 at 11:51:08 AM UTC+3, Jakob Gruber wrote:
On Mon, Aug 26, 2019 at 10:41 AM Darin Dimitrov <darin....@gmail.com> wrote:
Is it possible to create heap snapshot using the "mksnapshot" tool for x86 or armeabi-v7a CPU architectures from a 64 bit process. If yes, what are the steps to build such "mksnapshot" executable?

Unfortunately, no. Cross-bitness builds are not supported at the moment. Would building inside a Linux VM be an option?


Mac OS Catalina drops support for 32 bit executables and we would like to still be able to produce heap snapshots for x86 or armeabi-v7a architectures on this host OS.

--
--
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-u...@googlegroups.com.

zhao shengyue

unread,
Oct 24, 2019, 12:31:14 AM10/24/19
to v8-users
Does V8 have any plan on it,  by enabling a 64-bit version of mksnapshot that can produce 32-bit arm code?

i found Flutter/Dart has same problem, and fix it already,  see Enable gen_snapshot to be compiled for X64 host and ARM target (SIMARM_X64 build) .


在 2019年8月26日星期一 UTC+8下午4:51:08,Jakob Gruber写道:
On Mon, Aug 26, 2019 at 10:41 AM Darin Dimitrov <darin....@gmail.com> wrote:
Is it possible to create heap snapshot using the "mksnapshot" tool for x86 or armeabi-v7a CPU architectures from a 64 bit process. If yes, what are the steps to build such "mksnapshot" executable?

Unfortunately, no. Cross-bitness builds are not supported at the moment. Would building inside a Linux VM be an option?


Mac OS Catalina drops support for 32 bit executables and we would like to still be able to produce heap snapshots for x86 or armeabi-v7a architectures on this host OS.

--
--
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-u...@googlegroups.com.

Jakob Gruber

unread,
Oct 24, 2019, 1:04:59 AM10/24/19
to v8-u...@googlegroups.com
On Thu, Oct 24, 2019 at 6:31 AM zhao shengyue <shy...@gmail.com> wrote:
Does V8 have any plan on it,  by enabling a 64-bit version of mksnapshot that can produce 32-bit arm code?

We don't currently have plans to implement 64-to-32-bit cross compiles. Please feel free to file a bug at crbug.com/v8/new though, I don't think we have one tracking this yet.
 
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/aa2fb210-2404-468f-87a8-31c8ed143a74%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages