Re: [cfe-users] BPF stack limit

2017-03-27 Thread Igor Sugak via cfe-users
llvm.org Subject: [cfe-users] BPF stack limit Hi, I'm using Clang to compile C to eBPF, not to run in the Linux kernel, but in ubpf. I occasionally encounter the error "Looks like the BPF stack limit of 512 bytes is exceeded". The limit seems to be hard-wired (llvm/lib/Target/B

[cfe-users] BPF stack limit

2017-03-22 Thread Steven Simpson via cfe-users
Hi, I'm using Clang to compile C to eBPF, not to run in the Linux kernel, but in ubpf. I occasionally encounter the error "Looks like the BPF stack limit of 512 bytes is exceeded". The limit seems to be hard-wired (llvm/lib/Target/BPF/BPFRegisterInfo.cpp): if (Offset <= -512) { (I'm us