In a recent note, Charles Mills said:

> Date:         Sat, 18 Nov 2006 16:58:40 -0800
> 
> I thing stronger typing, such as a warning if an LH referenced a fullword,
> would be a plus in the assembler.
> 
Bravo.  I have long felt that the alignment warning should be issued
whenever the instruction operand is not of a type that forces the proper
boundary, and not omitted when the operand merely by happenstance falls
on a suitable boundary.

I know of a case in which an entire program contained no construct that
forced fullword alignment, but did a fullword reference to a character
string in the literals pool.  For many years it assembled without warnings
until an addition to the Copyright boilerplate macro, called near the top,
caused the fullword misreference near the bottom to fall on an odd
halfword boundary; then it got an alignment warning.  A conscientious
assembler would have warned of the construct the first time the program
was assembled.

Yes, alignment warnings can be turned off.

-- gil
-- 
StorageTek
INFORMATION made POWERFUL

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to