Chapter Contents

Previous

Next
Using the indep Option for Interlanguage Communication

Simple Multilanguage Programs

You can use the indep option for simple multilanguage programs without reading the rest of this appendix. Simple multilanguage programs are programs in which the other language calls C functions but C never calls the other language. (Even simpler types of multilanguage programs are discussed in Simple Interlanguage Communication.)

For this type of program, compile all of the C functions that can be called from the other language with indep , and link-edit normally. A non-reentrant load module is produced. If reentrancy is required, you need to read the description of the L$UPREP exit routine later in this appendix. Also, in order to close files and free memory allocated by the C program, you may want to call the library routine L$UEXIT (CEXIT in COBOL or FORTRAN) from the other language after all calls to C have completed. (L$UEXIT is described in more detail later in this appendix.)

If you plan to pass arguments to C functions, also read Calls to C.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.