On Sep 11, 2019, at 1:47 PM, Jose E. Marchesi <jose.march...@oracle.com> wrote: > > I am working on a new compilation mode for what I call xbpf, which is > basically eBPF plus extensions to eliminate the current restrictions to > C. The purpose of -mxbpf is mainly to test the compiler. Once the > support is in, I will revert this and similar other patches.
Yeah, not a bad way to do it. I have a machine with limits on certain memories in hardware that trip up gcc's testsuite, and in my simulator, I have a special gcc testing mode that simply gives me a ton more memory (17 MB) that on real hardware, I don't have. This let's me easily test under simulation without worrying about the limits. I can also have my simulator select the small mode to reflect what hardware does, and everything else uses this. Best of both world.