VMS Help  —  PASCAL  /GRANULARITY=keyword D=/GRANULARITY=QUADWORD
                                   OpenVMS Alpha and OpenVMS I64 only

  Directs the compiler to generate additional code to preserve the
  indicated  granularity.   Granularity  refers  to  the amount of
  storage that can be modified when updating a variable.

  You can specify the following values for keyword:

   o  BYTE

   o  LONGWORD

   o  QUADWORD (default)

  To update a variable that is smaller than a longword, HP  Pascal
  may   issue  multiple  instructions  to  fetch  the  surrounding
  longword or quadword, update the memory inside  to  longword  or
  quadword,  and  then  write  the  longword or quadword back into
  memory.   Using  /GRANULARITY  causes  the  compiler  to   avoid
  fetching  surrounding  memory  at  a  potential increase in code
  size.

  If multiple processes are writing into memory that is  contained
  in  the  same  longword  or quadword, you might incur inaccurate
  results unless /GRANULARITY=BYTE or some  other  synchronization
  mechanism is used.
Close Help