From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,28e4c7badb3be46f X-Google-Attributes: gidf678f,public From: koenigse@ux0umw50.umw.lhm-net.de (Christian Koenigseder) Subject: Re: problems with flag -xtaso_short to cc Date: 1996/03/14 Message-ID: #1/1 X-Deja-AN: 142630306 sender: koenigse@ux0umw50.umw.lhm-net.de references: 01: 53:03 GMT content-type: text/plain; charset=US-ASCII organization: Umweltschutzreferat Landeshauptstadt Muenchen mime-version: 1.0 reply-to: Christian Koenigseder newsgroups: comp.unix.osf.misc >>> On Thu, 29 Feb 1996 01:53:03 GMT, raines@jupiter.slac.stanford.edu (Paul E. Raines) said: In article 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