Stream: cranelift

Topic: dynamic exec: e.g., arm => x86 => loongson


view this post on Zulip Erddorn (Oct 07 2026 at 21:21):

I just noticed on the Bytecode Alliance homepage for Cranelift it says yall are running this in production to run untrusted code. Would it be possible, and what kind of slowdown are we talking about, if I wanted to, outside of critical loops, use Cranelift to switch between hardware architectures on the fly as a poor man's way to prevent copy-paste shellcode?

view this post on Zulip Chris Fallin (Oct 07 2026 at 21:40):

What do you mean by "switch between hardware architectures"? It's not clear to me the context of your question. Do you want to emulate one ISA on another?

view this post on Zulip mac (Oct 08 2026 at 18:46):

I'm guessing he means something like https://github.com/ssrg-vt/HeterSec but eddorn cranelift is a compiler, if you are considering binary inputs you need to look elsewhere ; remill/anvill on llvm would be your lift from eg x86 and you could then use cranelift as the drop onto a different isa


Last updated: Oct 11 2026 at 02:20 UTC