Johnny Luo wrote:
Hi,

I was trying new METAL option of XL C and the following is the HLASM code
generated :

*  {
*    char a[20]="12345";
         MVC   88(6,13),0(11)
         MVI   @74a+6,0
         MVC   @74a+7(13),@74a+6
         MVI   @74a+6,0
         MVC   @74a+7(13),@74a+6
*   return;
* }

It initialized the buffer twice! I cannot think of why. Is it normal?




Not to point too many fingers, but since we did it first,
here's what Systems/C did with Johnny's example:

* *
* ***     char a[20]="12345";
         LA    14,@lit_6_0
         MVC   96(6,13),0(14)
* setting 14 bytes to 0x00
         XC    102(14,13),102(13)
* ***     return;
* ***   }


        - Dave Rivers -


--
[email protected]                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com

----------------------------------------------------------------------
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