Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: koenigse@ux0umw50.umw.lhm-net.de (Christian Koenigseder)
Subject: Re: problems with flag -xtaso_short to cc
Date: 1996/03/14	[thread overview]
Message-ID: <ag1jood2.fsf@ux0umw50.umw.lhm-net.de> (raw)
In-Reply-To: yfs20ne99ts.fsf@jupiter.SLAC.Stanford.EDU

>>> On Thu, 29 Feb 1996 01:53:03 GMT, raines@jupiter.slac.stanford.edu (Paul E. Raines) said:
In article <yfs20ne99ts.fsf@jupiter.SLAC.Stanford.EDU> raines@jupiter.slac.stanford.edu (Paul E. Raines) writes:

  >>>  To port some code from AIX, we wish to use 32-bit pointers. The
  >>> C compiler appears to provide the -xtaso_short flag for this.
  >>> We have found several problems with it. One is that it does not
  >>> seem to be consistant. Here is the output of a simple program to
  >>> print the size of objects. Note that witht he -xtaso_short flag,
  >>> sizeof(int*) is 4 while sizeof(&i) where i is an integer is
  >>> still 8.
  >>> 
  >>> 
  >>> $ cc -g -taso -xtaso_short ptest.c -o ptest $ ./ptest

1.) Use following compiler flags:
 -taso -xtaso

2.) Remove all occurences of "long" in your Sourcecode

3.) Insert:  #pragma pointer_size short
    in your source file.

Maybe have a look to the Migration Guide Manual!!!!
-- 
Christian Koenigseder                   UNIX-System & Network Manager
Umweltschutzreferat LHM                 Tel/Fax: +49 89 233-23619/-23442
Bayerstr. 28a                           E-mail: koenigse@umw.cube.net
80335 Muenchen, Germany                 Public PGP-Key on request



      reply	other threads:[~1996-03-14  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-29  5:00 problems with flag -xtaso_short to cc Paul E. Raines
1996-03-14  5:00 ` Christian Koenigseder [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox