Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: VAXman-  @SendSpamHere.ORG
Subject: Re: OpenVMS Still Only 32-Bit Addresses!?
Date: Sun, 13 Feb 2011 14:18:09 GMT	[thread overview]
Message-ID: <00AAAEE7.653655DE@SendSpamHere.ORG> (raw)
In-Reply-To: ij7fdn$e9d$1@lust.ihug.co.nz

In article <ij7fdn$e9d$1@lust.ihug.co.nz>, Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> writes:
>In message <65fd98f9-d503-4eaa-bbb7-
>bc4187eb3870@m7g2000vbq.googlegroups.com>, tothestarsby2100 wrote:
>
>> On Feb 12, 5:37 pm, Lawrence D'Oliveiro <l...@geek-
>> 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.

Like I said, YOU didn't make the transition.  Now, do you need full 64 bits?
If you're just playing about in normal process space, you've no need for it.
P0/P1 addresses extend to 00000000.xxxxxxxx and S0/S1 to FFFFFFFF.xxxxxxxx.

If you _require_ 64 bit addressing within portions of the code, you can use:

#pragma required_pointer_size save
#pragma required_pointer_size long

  <your 64 bit code>

#pragma required_pointer_size restore

In some cases, going to the 64 bit pointer will save you and instruction or
three due to implicit sign-extention operations but it's not really a great
big savings on CPU performance unless you're doing it a gazillion times.

-- 
VAXman- A Bored Certified VMS Kernel Mode Hacker    VAXman(at)TMESIS(dot)ORG

All your spirit rack abuses, come to haunt you back by day.
All your Byzantine excuses, given time, given you away.


  reply	other threads:[~2011-02-13 14:18 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-13  0:37 OpenVMS Still Only 32-Bit Addresses!? Lawrence D'Oliveiro
2011-02-13  1:44 ` tothestarsby2100
2011-02-13  2:24   ` Lawrence D'Oliveiro
2011-02-13 14:18     ` VAXman- [this message]
2011-02-13 22:16       ` Lawrence D'Oliveiro
2011-02-13 23:49         ` John Wallace
2011-02-14  0:18           ` VAXman-
2011-02-14  0:31           ` glen herrmannsfeldt
2011-02-13  3:06 ` Hans Bachner
2011-02-13  9:39 ` Hans Vlems
2011-02-13 10:34   ` Lawrence D'Oliveiro
2011-02-13 11:19     ` glen herrmannsfeldt
2011-02-13 14:21       ` Michael Kraemer
2011-02-13 14:32         ` John Wallace
2011-02-13 14:49           ` Michael Kraemer
2011-02-13 21:30             ` John Wallace
2011-02-13 22:44               ` glen herrmannsfeldt
2011-02-14  1:47                 ` Lawrence D'Oliveiro
2011-02-14 18:17                   ` Bob Koehler
2011-02-14 23:39                     ` Lawrence D'Oliveiro
2011-02-15 14:34                     ` Bob Koehler
2011-02-14  8:38               ` Michael Kraemer
2011-02-14  9:47                 ` Lawrence D'Oliveiro
2011-02-14 23:11                 ` Dennis Grevenstein
2011-02-14 23:42                   ` Lawrence D'Oliveiro
2011-02-15  2:11                   ` Michael Kraemer
2011-02-15  3:35                     ` Lawrence D'Oliveiro
2011-02-15  8:31                       ` Michael Kraemer
2011-02-15  8:46                         ` John Wallace
2011-02-15  9:57                           ` Michael Kraemer
2011-02-15 23:22                             ` Lawrence D'Oliveiro
2011-02-16  6:06                               ` Michael Kraemer
2011-02-16 11:59                                 ` Lawrence D'Oliveiro
2011-02-15 23:42                             ` John Wallace
2011-02-15 14:38                     ` Bob Koehler
     [not found]                     ` <ijcs9p$hv4Organization: Encompasserve <WE3oMqzMhq9Z@eisner.encompasserve.org>
2011-02-15 17:07                       ` Michael Kraemer
2011-02-15 23:21                         ` Lawrence D'Oliveiro
2011-02-16  6:09                           ` Michael Kraemer
2011-02-16 11:54                             ` Lawrence D'Oliveiro
2011-02-13 22:33           ` glen herrmannsfeldt
2011-02-13 22:18         ` Lawrence D'Oliveiro
2011-02-13 22:50           ` glen herrmannsfeldt
2011-02-14  1:50             ` Lawrence D'Oliveiro
2011-02-14  3:22               ` glen herrmannsfeldt
2011-02-14 18:18                 ` Bob Koehler
2011-02-14 19:35                   ` glen herrmannsfeldt
2011-02-14 20:07                   ` Bob Eager
2011-02-14 23:09                     ` Lawrence D'Oliveiro
2011-02-14 23:11                       ` Bob Eager
2011-02-14 23:39                         ` Lawrence D'Oliveiro
2011-02-15  0:12                           ` Bob Eager
2011-02-15  1:56                             ` Lawrence D'Oliveiro
2011-02-15  6:45                               ` Bob Eager
2011-02-15 12:26                               ` VAXman-
2011-02-15  2:51                             ` VAXman-
2011-02-13 22:28         ` glen herrmannsfeldt
2011-02-14 18:10   ` Bob Koehler
2011-02-14 20:44     ` Jerome H. Fine
2011-02-14 21:00       ` Michael Kraemer
2011-02-14 22:29       ` John Wallace
2011-02-14 20:04   ` John Wallace
2011-02-13 14:08 ` VAXman-
2011-02-13 14:34 ` John Wallace
2011-02-13 14:54   ` VAXman-
2011-02-13 22:14     ` Lawrence D'Oliveiro
2011-02-14  0:08       ` VAXman-
2011-02-14  0:51         ` John Wallace
2011-02-14  1:22           ` VAXman-
2011-02-14  4:00           ` glen herrmannsfeldt
2011-02-14  8:03             ` Michael Kraemer
2011-02-14 18:20               ` Bob Koehler
2011-02-14  0:11       ` VAXman-
2011-02-13 22:15   ` Lawrence D'Oliveiro
2011-02-13 23:40     ` John Wallace
2011-02-14  1:20       ` Hans Bachner
2011-02-14 18:09 ` Bob Koehler
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