Good guess. The clobber list tells the compiler that your going to change those registers so it shouldn’t use them. It has nothing to do with saving them.
> On 1 Apr 2020, at 4:40 am, Charles Mills <[email protected]> wrote: > > My wild-@ssed *guess* would be that the compiler is clever enough to avoid > the use of the "clobbers" registers, and save/restore them if it cannot do > so reasonably. > > That darned C compiler is pretty smart about registers. > > Charles > > > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of Joseph Reichman > Sent: Tuesday, March 31, 2020 11:39 AM > To: [email protected] > Subject: Metal C __asm options > > Hi > > > > Have a question about Metal C __asm option > > > > The format is HLASM string : output : input : clobbers > > > > Regarding the clobbers operand the complier doesn't seem save any of the > registers pointed to by this if so what the point for the clobbers I had > :"R0","R1","R15"); as I didn't use the parms which indicated the other regs > 2 - 14 would be used regardless the complier doesn't seem to save them. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
