Help: NAMELIST input on DEC ALPHA produces weird message 
Author Message
 Help: NAMELIST input on DEC ALPHA produces weird message

I'm running a fortran code on a DEC Alpha and getting some weird
warning messages that seem to have something to do with dimensioned
variables read by NAMELIST input.  I am using the standard f77
compiler supplied by DEC.  (Despite the warning messages, the results
from the Alpha agree perfectly with results from a DECstation 5000).
I've been able to recreate the problem with the following small
program:

      parameter (nx=2)
      dimension xx(nx)
      data xx/nx*0./

      namelist /input/ xx

      open(unit=10,file='INPUT',status='unknown')
      write(10,input)
      close(unit=10)

      open(unit=11,file='INPUT',status='old')

      read(11,input)
      close(unit=11)
      write(*,input)
      end
c==============================================================

---------------
output for nx=2
---------------

Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c687c ra=3ff808edd58 type=stq
Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c6a10 ra=3ff808edd58 type=ldq
Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c6a1c ra=3ff808edd58 type=stq
 $INPUT
 XX      = 2*0.0000000E+00  
 $END

---------------
output for nx=1
---------------

 $INPUT
 XX      =  0.0000000E+00
 $END

-------------------------------------------------------------------

Does anyone know whats going on here?



Sat, 16 Dec 1995 07:02:10 GMT  
 Help: NAMELIST input on DEC ALPHA produces weird message
|>
|>
|>I'm running a fortran code on a DEC Alpha and getting some weird
|>warning messages that seem to have something to do with dimensioned
|>variables read by NAMELIST input. atus='old')

[other info left out]

|>Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c687c ra=3ff808edd58 type=stq
|>Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c6a10 ra=3ff808edd58 type=ldq
|>Unaligned access pid=11517 <a.out> va=11ffff864 pc=3ff808c6a1c ra=3ff808edd58 type=stq

Unaligned access messages mean that the system tried an aligned access to memory
that was not naturally aligned.  In your case, the program referenced added 11ffff864
(which is longword but not quadword aligned) using a STQ instruction (which
wants a quadword aligned address).

The system fixed up the unaligned access, printed the message and continued
execution of your program.  It will be a little slower, but it will always produce
correct results.

You can turn off the messages using "uac p 0".  man uac for more info.

And ... I sent this off to the DEC Fortran team to check out.  The idea is that
you never see these messages.
--

Digital Equipment Corporation                   decwrl!rtl!cowan
110 Spit Brook Rd,
Nashua, NH 03062



Sun, 17 Dec 1995 01:31:54 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help on Namelist Input !

2. is there vhdl for dec/ultrix or dec /alpha

3. alpha/dec unix 4.0: Linking/ld f77 with gcc on dec unix 4

4. Rec's: Fortran w/ VAX ext on DEC Alpha running Linux/DEC Unix

5. Smalltalk Needed for DEC Alpha OSF1 - HELP!!!

6. help installing gnat on alpha dec osf 4

7. STORAGE_ERROR on Dec Alphas (OSF 3.2) - HELP PLEASE!

8. Help reading ethernet ID on DEC Alpha from FORTRAN

9. Help: Running CLP(R) on 64 bit DEC Alpha

10. HELP! -- AT&T PORT for Dec Alpha

11. GNAT on Linux, producing DEC Unix exe

12. NAMELIST input in C/C++

 

 
Powered by phpBB® Forum Software