Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2009 18:15:13 +1100
From:      leon zadorin <leonleon77@gmail.com>
To:        freebsd-threads@freebsd.org
Subject:   disable threads when recompiling libc
Message-ID:  <26d2cb010912202315g574353d9g872643d1717f4f86@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

is it possible to configure libc to be recompiled in a single-threaded
model only (i.e. disable any additional overhead for handling
thread-safety).

Basically what I'd like to do is to build a separate non-multithreaded
copy of libc and use it with the rest of "single threaded
environment":

recompiled gcc (./configure --disable-threads), etc.
c++ boost libs in non-multithreaded mode and so on

I would like to see if there are any additional performance-benefits
to this (my program does not need to be multi-threaded).

I think compiler itself can produce more optimisations (various
speculative loads et al) if it is building code for single-threaded
model only... I wonder if there are also "single-threaded" performance
benefits to libc et al ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26d2cb010912202315g574353d9g872643d1717f4f86>