Re: [PATCH] configure: fix performance regression due to PIC objects

2020-09-20 Thread Richard Henderson
On 9/19/20 8:56 AM, Paolo Bonzini wrote: > Because most files in QEMU are grouped into static libraries, Meson > conservatively > compiles them with -fPIC. This is overkill and produces slowdowns up to 20% > on > some TCG tests. > > As a stopgap measure, use the b_staticpic option to limit the

Re: [PATCH] configure: fix performance regression due to PIC objects

2020-09-19 Thread Philippe Mathieu-Daudé
Cc'ing Aleksandar as Ahmed is away. On 9/19/20 5:56 PM, Paolo Bonzini wrote: > Because most files in QEMU are grouped into static libraries, Meson > conservatively > compiles them with -fPIC. This is overkill and produces slowdowns up to 20% > on > some TCG tests. > > As a stopgap measure, use

[PATCH] configure: fix performance regression due to PIC objects

2020-09-19 Thread Paolo Bonzini
Because most files in QEMU are grouped into static libraries, Meson conservatively compiles them with -fPIC. This is overkill and produces slowdowns up to 20% on some TCG tests. As a stopgap measure, use the b_staticpic option to limit the slowdown to --enable-pie. https://github.com/mesonbuild