Cristi Terpea wrote:
I don't want to compile also the asm routine on the target machine. It would be great to have one executable (is it possible to link statically the asm object with the C object?). I also searched this area, but couldn't find an easy way to compile asm and how to link C and asm.
Yes, of course it is possible to link statically. Sounds like you could use our course "Secrets of Inter-Language Communication in z/OS". Currently we have a 3.5 day version that includes DLLs. I'm thinking of creating a two-day version that would not include the DLL part. The current course covers four languages (Assembler, COBOL, PL/I, and C), although the students decide which languages to include in lecture and labs (this could actually be done with a single language). Anyway, the discussion covers, for all selected languages: * How to define elementary data items - classic fields - null terminated strings * How to define structures and arrays * Ways to access the JCL PARM value * Static calls and function references * Passing arguments (by reference, by value, by content) * Receiving parameters (by reference, by content) * How to code and check for optional parameters * Object code formats and the program binder * How to code and use alternate entry points * How to code and use shared external data * Dynamic calls * DLL calls and more! For details, see: http://www.trainersfriend.com/Language_Environment_courses/m520descr.htm this page includes links to even more details: course objectives, and detailed topical outline I see from your email address you are in Romania. We would love to come and teach there! If that's of interest, contact me off list. Kind regards, -Steve Comstock The Trainer's Friend, Inc. 303-393-8716 http://www.trainersfriend.com z/OS Application development made easier * Our classes include + How things work + Programming examples with realistic applications + Starter / skeleton code + Complete working programs + Useful utilities and subroutines + Tips and techniques ==> Check out the Trainer's Friend Store to purchase z/OS <== ==> application developer toolkits. Sample code in four <== ==> programming languages, JCL to Assemble or compile, <== ==> bind and test. <== ==> http://www.trainersfriend.com/TTFStore/index.html <== ---------------------------------------------------------------------- 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

