From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16859 invoked by alias); 24 Sep 2005 09:03:53 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 16818 invoked by uid 22791); 24 Sep 2005 09:03:38 -0000 Received: from smtp05.web.de (HELO smtp05.web.de) (217.72.192.209) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 24 Sep 2005 09:03:38 +0000 Received: from [83.135.149.181] (helo=ask-c-system.hopto.org) by smtp05.web.de with asmtp (TLSv1:RC4-MD5:128) (WEB.DE 4.105 #317) id 1EJ5wV-0001Oy-00 for gcc-help@gcc.gnu.org; Sat, 24 Sep 2005 11:03:36 +0200 From: Ingo Krabbe To: gcc-help@gcc.gnu.org Subject: Re: C++ operators in gcc Date: Sat, 24 Sep 2005 09:03:00 -0000 User-Agent: KMail/1.8.1 References: <200509232348.08931@gj-laptop> In-Reply-To: <200509232348.08931@gj-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509241103.34262.ikrabbe.ask@web.de> X-Sender: ikrabbe.ask@web.de X-SW-Source: 2005-09/txt/msg00175.txt.bz2 Does this really make the binary file a bit larger. I don't think so. Every class you define (or structure with C) is automatically be able to be copied (in a flat manner of course) by the operator =. I think that someone who told you meant that behaviour, that is part of the ISO definition as I suppose and as such not specific to gcc. I assume there would be no single byte of code blow up for this behaviour. BYE INGO Am Freitag, 23. September 2005 23:48 schrieb Tommy Vercetti: > Hi list > > I was told that gcc by default, for every class creates operator =, and > probably something else. This makes binary file bit larger than it suppose > to be. Is it true, and if so, why this is the case ? Can gcc simply not > generate that operator? > > please CC me on replies.