And "stores integers in big-endian form" is not unconditionally true. There are the LOAD REVERSED and STORE REVERSED instructions which load and store, respectively, the bytes in the register specified into the memory location specified in reverse sequence. I.e. bytes 0..3 or 0..7 load or store into bytes 3..0 or 7..0 of the specified memory location. Of course, integers in registers do need to be in big-endian format in order to be used for arithmetic operations (at least if you want the correct result).
-- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets® 9151 Boulevard 26 • N. Richland Hills • TX 76010 (817) 255-3225 phone • john.mck...@healthmarkets.com • www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets® is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. –The Chesapeake Life Insurance Company®, Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > On Behalf Of Charles Mills > Sent: Tuesday, September 04, 2012 9:57 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: The IBM zEnterprise EC12 announcment > > Just because you *can* create a malformed string with no delimiter does > not mean that my statement about proper C behavior is untrue. > > It is a true statement that "the z architecture stores integers in big- > endian form." Nonetheless, I *can* create a little-endian integer on z. > That does not make the statement untrue. > > BTW, C++ gives an error for the s6[6] = "wombat" case. > > Charles > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN