From owner-freebsd-questions@FreeBSD.ORG Fri Jul 13 02:11:24 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D431106566C for ; Fri, 13 Jul 2012 02:11:24 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id ECA468FC0A for ; Fri, 13 Jul 2012 02:11:23 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id q6D2CWAU046010 for freebsd-questions@freebsd.org; Thu, 12 Jul 2012 21:12:32 -0500 (CDT) Date: Thu, 12 Jul 2012 21:12:32 -0500 (CDT) From: Robert Bonomi Message-Id: <201207130212.q6D2CWAU046010@mail.r-bonomi.com> To: freebsd-questions@freebsd.org In-Reply-To: <20120712223130.GA58047@mech-cluster241.men.bris.ac.uk> Subject: Re: profiling library smaller than non-profiling, while it contains more symbols. Why? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2012 02:11:24 -0000 > From owner-freebsd-questions@freebsd.org Thu Jul 12 17:34:12 2012 > Date: Thu, 12 Jul 2012 23:31:31 +0100 > From: Anton Shterenlikht > To: freebsd-questions@freebsd.org > Subject: profiling library smaller than non-profiling, > while it contains more symbols. Why? > > While updating my port (math/slatec) to use > the new OPTIONS framework, I did some > experiments with the profiling library. > > I don't know much about this, so what surprised me > is that the profiling library is smaller: > > # ls -al lib*a > -rw-r--r-- 1 root wheel 6582354 Jul 12 22:56 libslatec.a > -rw-r--r-- 1 root wheel 6555122 Jul 12 23:02 libslatec_p.a > # It it possible that libslatac.a has debggingn symbols, and the profiling library does not? Or that the profiling library was compiled with a lower degree of optimization ? (many of the 'higher'-level optimizations cause _larger_, albeit faster, code to be generated) Any other differences in compilation flags?