chengshuyi opened issue #7060:
Thanks for filing a feature request! Please fill out the TODOs below.
Feature
cranelift-codegen adds a new eBPF backend
Benefit
eBPF bytecode can be generated from cranelift intermediate code. Cranelift is more lightweight and has fewer dependencies than llvm.
Implementation
I used clif to simply implement some functions[1]. If possible, I can improve this part of the function.
[1] https://github.com/aliyun/coolbpf/blob/master/lwcb/bpfir/src/be/isel.rs
chengshuyi edited issue #7060:
Thanks for filing a feature request! Please fill out the TODOs below.
Feature
cranelift-codegen adds a new eBPF backend
Benefit
eBPF bytecode can be generated from cranelift intermediate code. Cranelift is more lightweight and has fewer dependencies than llvm.
Implementation
I used clif to simply implement some functions[1]. If possible, I can improve this part of the function.
[1] https://github.com/aliyun/coolbpf/blob/master/lwcb/bpfir/src/module.rs
chengshuyi edited issue #7060:
Thanks for filing a feature request! Please fill out the TODOs below.
Feature
cranelift-codegen adds a new eBPF backend
Benefit
eBPF bytecode can be generated from cranelift intermediate code. Cranelift is more lightweight and has fewer dependencies than llvm. To be precise, the binary program I used to implement eBPF bytecode generation using cranelift is only about 10MB and has almost no dependencies.
Implementation
I used clif to simply implement some functions[1]. If possible, I can improve this part of the function.
[1] https://github.com/aliyun/coolbpf/blob/master/lwcb/bpfir/src/module.rs
bjorn3 commented on issue #7060:
I opened an issue for this a couple of years ago: https://github.com/bytecodealliance/wasmtime/issues/1129 I didn't have any concrete use cases for it back then though, so it has been labeled as moonshot.
chengshuyi commented on issue #7060:
I opened an issue for this a couple of years ago: #1129 I didn't have any concrete use cases for it back then though, so it has been labeled as moonshot.
Thanks for you quick reply. We are developing the ebpf scripting language to be able to write eBPF programs in a simple C-like language. We prefer to be able to deploy lightweight cranelift on the environment instead of llvm. I don’t know if this can be considered a case.
alexcrichton closed issue #7060:
Thanks for filing a feature request! Please fill out the TODOs below.
Feature
cranelift-codegen adds a new eBPF backend
Benefit
eBPF bytecode can be generated from cranelift intermediate code. Cranelift is more lightweight and has fewer dependencies than llvm. To be precise, the binary program I used to implement eBPF bytecode generation using cranelift is only about 10MB and has almost no dependencies.
Implementation
I used clif to simply implement some functions[1]. If possible, I can improve this part of the function.
[1] https://github.com/aliyun/coolbpf/blob/master/lwcb/bpfir/src/module.rs
alexcrichton commented on issue #7060:
Closing as a duplicate of https://github.com/bytecodealliance/wasmtime/issues/1129
Last updated: Nov 22 2024 at 16:03 UTC