Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

On some of the Language Environment notes, I see the term Language Environment-conforming. How do we make an assembler program Language Environment-conforming and what are the benefits?

0
Posted

On some of the Language Environment notes, I see the term Language Environment-conforming. How do we make an assembler program Language Environment-conforming and what are the benefits?

0

Answer You can make an assembler program Language Environment-conforming through the use of CEEENTRY and CEETERM. Also, in assembler programs that call PL/I or C/C++ programs, or that call LE callable services, make sure that register 12 points to the CAA before such calls. When the Language Environment is set up (call to CEEENTRY) Language Environment sets up R12 to the address of the CAA. If your program uses R12 it has to be sure to reset it to the address of the CAA before calling any other routine (except COBOL programs) or Language Environment service – that’s why we recommend that some assembler programs programs should not use R12. One of the benefits of Language Environment-conforming assembler is that the environment is already set up so that repeatedly calling high-level language subroutines will not incur the overhead of initialization and termination of Language Environment.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123