From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 861A340E12 for ; Wed, 9 Oct 2002 12:41:24 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g99GfO203570 for axp-list@listman.redhat.com; Wed, 9 Oct 2002 12:41:24 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g99GfOf03566 for ; Wed, 9 Oct 2002 12:41:24 -0400 Received: from server8.software-ag.de (server8.software-ag.de [193.26.193.23]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g99GLcX04886 for ; Wed, 9 Oct 2002 12:21:38 -0400 Received: from sql.de by server8.software-ag.de; (8.9.3/8.9.3) id SAA19143; Wed, 9 Oct 2002 18:41:24 +0200 Message-ID: <3DA45C2D.25B62136@sql.de> Date: Wed, 09 Oct 2002 18:41:17 +0200 From: Joerg Bruehe Organization: SQL Datenbanksysteme GmbH X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: "taso" compiler option (was: Open Office) References: <200210090244.g992iDZ20074@evrtwa1-ar5-4-65-006-229.evrtwa1.dsl-verizon.net> <3DA3F578.6A7787CD@sql.de> <20021009090711.C10788@ellpspace.math.ualberta.ca> <874rbvzlgx.fsf@student.uni-tuebingen.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: Hi! Falk Hueffner wrote: > > Michal Jaegermann writes: > > > On Wed, Oct 09, 2002 at 11:23:04AM +0200, Joerg Bruehe wrote: > > > > > > AFAIK, "-taso" (and "-xtaso") are options of the Tru64 C compiler > > > (ex Digital, ex Compaq, now HP), I never heard about them for GCC. > > > > Actually, depending on a version of binutils, you may have '-taso' with > > Linux as well. Possibly this option may need to be passed down with > > '-Wa,...' and '-Wl,...'. I do not think that this was ever widely used > > and well tested. I am also not sure how this works with libraries which > > would expect a full address range. Things are mapped that way that > > upper address bits are always insignificant? My impression is that Digital implemented this feature to ease the porting of badly designed code to Tru64. I had to use it with code that assumed the identical size of 32 bit for "int", long", and "void *" - until I had fixed it. However, this design was so deep within the code that I still had to use a C "union" to store a pointer in two consecutive elements of an "int" array. (I check the sizes to ensure it fits.) Bad and ugly, but easier than changing the array (to "long []") or even the whole design. Using "-taso" masked the design fault completely: Pointers are stored in 64 bit (important when passed to modules compiled without this option), but on copy to/from "int" (32 bit) they remain valid. > > I don't think that's possible... rather it's mapped into the lower 31 > bits and the compiler makes sure the upper ones are clear (31 bits so > ldl/addl won't fill the upper bits with the sign extension). For the > latter, ccc has a -xtaso_short switch (or so), which makes > sizeof(void*) 4 and emits appropriate instructions. This would > probably not too hard to be to add to gcc (but I won't do it, people > should rather fix their broken code). I fully agree, but depending on the code's complexity this may be hard and difficult. Friedrich von Schiller has some lines in his "Wallenstein" drama: This is the curse of the evil deed, that, propagating itself, it must permanently give birth to new evil. (German: Das eben ist der Fluch der boesen Tat, dass sie, sich selbst fortzeugend, staendig neues Boeses muss gebaeren. Quoted and translated from memory.) This quote fits much too often! Regards, Joerg Bruehe -- Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany (speaking only for himself) mailto: joerg@sql.de