From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: d180ab3bd8,ddd5f2f431fd91ca X-Google-Attributes: gidd180ab3bd8,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.sys.dec Subject: Re: OpenVMS Still Only 32-Bit Addresses!? Followup-To: comp.sys.dec Date: Sun, 13 Feb 2011 15:24:55 +1300 Organization: Geek Central Message-ID: References: <65fd98f9-d503-4eaa-bbb7-bc4187eb3870@m7g2000vbq.googlegroups.com> NNTP-Posting-Host: 118-92-93-33.dsl.dyn.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: lust.ihug.co.nz 1297563896 14637 118.92.93.33 (13 Feb 2011 02:24:56 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Sun, 13 Feb 2011 02:24:56 +0000 (UTC) User-Agent: KNode/4.4.7 Xref: g2news1.google.com comp.sys.dec:2799 In message <65fd98f9-d503-4eaa-bbb7- bc4187eb3870@m7g2000vbq.googlegroups.com>, tothestarsby2100 wrote: > On Feb 12, 5:37 pm, Lawrence D'Oliveiro central.gen.new_zealand> wrote: > >> I just ran a C program on gein.vistech.net (Alpha OpenVMS 7.3.1, I >> believe) containing the following line >> >> fprintf(stdout, "sizeof(void *) = %d\n", sizeof(void *)); >> >> and was surprised to see it print out >> >> sizeof(void *) = 4 > > The systems at vistech are 32 bits ... No, they do 64 bits. And OpenVMS 7.0 and later do support 64-bit addressing. I figured it out. You have to compile with /POINTER_SIZE=LONG. I now get sizeof(void *) = 8 as I expected.