Misc Qns...

D

Dave Thompson

Mark F. Haigh wrote:

(snip regarding unaligned access and pointers)


Mostly because Fortran COMMON requires no padding bytes, so it is
easy to generate unaligned data.
To be clear, standardly *requires* that there *not* be any padding.
(At least it used to. It may have changed by now.)
COMMON hasn't. But there is a new improved and often preferable
*alternative*, a MODULE containing data (and possibly routines), which
does allow alignment and also (standardly) provides better checking.

Much as even C99 still has K&R1 functions, but prototypes are better.

- David.Thompson1 at worldnet.att.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,125
Messages
2,570,748
Members
47,302
Latest member
MitziWragg

Latest Threads

Top