From owner-freebsd-current@FreeBSD.ORG Wed Jan 23 21:31:42 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B1D28D38; Wed, 23 Jan 2013 21:31:42 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by mx1.freebsd.org (Postfix) with ESMTP id 06006E5; Wed, 23 Jan 2013 21:31:41 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id gg13so4946099lbb.2 for ; Wed, 23 Jan 2013 13:31:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=xK7P6FMCraSo+D+GPtnZzG/sez00jwel/VgCAcPRDZc=; b=aPJYIU4wynCUVePA8GOHNpXr9x93qfb3U+ajyrSQibz/+lWBvbSbzVCrSc2NefnobK aUJj1ImL28fxYyNmRRK7UpHfTWmXZ8HFQca+cUL6Y6hXoz3UCx5BbOk9WFTG2mBL49X0 D9VTOaZWQJuLlJfMIOIxKh7ImDGh5XE4m9DGjq80EqO8+jgyG0MoQBscrGhEs1E8WNSM mQW6KrzzVbVDsUDlV5mnInZCa9td9h7SQkpGU6UZ3dM8yY6icRrGQ6HKNj9tB2GmonpW UVPyOBPdn1JBP1geLrmd/vNFpVB6KEKigFuO4UAsfiP+n7Pnv89K19m9ESHE+g6RGr5b cBjg== MIME-Version: 1.0 X-Received: by 10.112.102.9 with SMTP id fk9mr1323907lbb.100.1358976700604; Wed, 23 Jan 2013 13:31:40 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.93.200 with HTTP; Wed, 23 Jan 2013 13:31:40 -0800 (PST) In-Reply-To: <51003956.50301@FreeBSD.org> References: <20130123163238.GB56212@onelab2.iet.unipi.it> <51003956.50301@FreeBSD.org> Date: Wed, 23 Jan 2013 13:31:40 -0800 X-Google-Sender-Auth: 6pgT4-eU0wPz3Ha7wtcuTLoLBuc Message-ID: Subject: Re: __builtin_memcpy() slower than memcpy/bcopy (and on linux it is the opposite) ? From: Luigi Rizzo To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 21:31:42 -0000 On Wed, Jan 23, 2013 at 11:26 AM, Dimitry Andric wrote: > Which compilation flags did you use to test this? When I compiled your > testcase program with clang 3.2, gcc 4.2 and gcc 4.7 at -O2, with all > other settings at their defaults, all three compilers just called libc's > memcpy() for the __builtin_memcpy tests. > just -O2 -Wall -Werror, no special -m* or -f* flags cheers luigi