FWIW, I would guess that strcpy() in many cases compiles into MVST. Charles
-----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of Peter Relson Sent: Wednesday, January 31, 2018 4:50 AM To: [email protected] Subject: Re: Fair comparison C vs HLASM >I believe that nowadays the z has strlen() and >strcpy() in microcode. To quibble, that seems like a somewhat backwards statement. Nowadays z has an instruction (SRST, whether it is in the hardware, microcode, or millicode) that accomplishes what strlen wants to do. And therefore the compiler will take advantage of that instruction when the length of a 0-delimited string is wanted. But there are other uses for this instruction than finding the length of a 0-delimited string. So it's really not that the c function is "in" anything, but rather that it can be accomplished by an instruction that z provides.
