Re: [PATCH v2 seccomp 2/6] asm/syscall.h: Add syscall_arches[] array
From: YiFei Zhu
Date: Thu Sep 24 2020 - 10:38:06 EST
On Thu, Sep 24, 2020 at 9:20 AM David Laight <David.Laight@xxxxxxxxxx> wrote:
> > Granted, I have CC_OPTIMIZE_FOR_PERFORMANCE rather than
> > CC_OPTIMIZE_FOR_SIZE, but this patch itself is trying to sacrifice
> > some of the memory for speed.
>
> Don't both CC_OPTIMIZE_FOR_PERFORMANCE (-??) and CC_OPTIMIZE_FOR_SIZE (-s)
> generate terrible code?
You have to choose one for "Compiler optimization level" in "General Setup", no?
The former is -O2 and the latter is -Os.
> Try with a slghtly older gcc.
> I think that entire optimisation (discarding const arrays)
> is very recent.
Will try, will take a while to get an old GCC to run, however :/
YiFei Zhu