John, It is feasible for a C program to address memory in a data space using Cell Pool Services. Member CSRCPC in SYS1.SAMPLIB provides all the definitions you need. Cell Pool services require you to be in AR-mode and know the ALET of the data space. Every CP service receives the ALET as a parameter, there is no real need to handle the ARs yourself. So you would need a small ASM program to change to AR-mode and issue DSPSERV and ALESERV to create a data space and an ALET for it then return the ALET. After that you can do all the data manipulation from C only. HTH, Gil.
On 10/11/05, John Krew <[EMAIL PROTECTED]> wrote: > > Someone who is well versed in Unix and less so in the mainframe world has > asked me a question which > sounds preposterous on the face of it. He asked if it would be at all > feasible for a C program to > establish addressabilty to memory contained in a data space. > > Considering the need to manipulate access registers, and not seeing any > way to reliably set an > access register from a C program (or reliably pair it with a GPR > containing the pointer), I told > him "no". Am I overlooking anything that anybody is aware of? > > John Krew > ---------------------------------------------------------------------- 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

