From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,1945c5c7fbfe47dd X-Google-Attributes: gid1164f8,public X-Google-Thread: f678f,1945c5c7fbfe47dd X-Google-Attributes: gidf678f,public From: timw@isac.hces.com (Timothy M. Wieman) Subject: Re: 32-bit mode for cxx? Date: 1995/09/29 Message-ID: <1995Sep29.223607.24753@isac.hces.com>#1/1 X-Deja-AN: 110980762 references: organization: PACE Health Management Systems followup-to: comp.sys.dec,comp.unix.osf.misc newsgroups: comp.sys.dec,comp.unix.osf.misc Adam J Ferrari (ajf2j@uvacs.cs.Virginia.EDU) wrote: : Is there a "32-bit" mode or some similar feature for the cxx : C++ compiler. I would like to ensure that all pointers fit : within 4 bytes instead of the 8 usually required on the alpha. : I'm less concerned about longs fitting in 4 bytes. Thx in advance : for any tips. 'cc' has the flags '-taso' and '-xtaso_short' which will give you 32 bit pointers. For the longs, I recommend typedef'ing 'Long' (or something similar) to 'int' and then globally replace 'long' with 'Long'. We don't have the C++ compiler, so I don't know if this holds true for it. Tim -- ------------------------------------------------------------------------ Timothy M. Wieman | Software Engineer | timw@hces.com | PACE Health Management Systems, Inc.