>>> Sam Siegel posted: 
On Wed, Jan 9, 2013 at 11:23 AM, Chris Craddock 
<crashlu...@gmail.com>wrote:

> >>
> >> On 09.01.2013 06:36, Sam Siegel wrote:
> >>
> >>> The Language Environment Vendor Interfaces (SA22-7568-09) mentions 
the
> >>> ability to use XL C/C++ in an SRB.  This is the full XL C/C++, with
> some
> >>> restrictions, not METAL-C.
>
> Beware that the "some restrictions" can be quite significant in 
practice.
> Many of the C/C++ library routines you might expect to use just don't 
work
> in that environment.
>

What about just pure C/C++ code without calling LE library routines or
C-Runtime library routines and assuming that malloc/free and new/delete
eventually invokes the STORAGE OBTAIN/DELETE provided by the substitute
service routines?
<SNIPPAGE>

If your routines cause any of the proscribed functions to be invoked, your 
SRB will be terminated. Things such as an SVC will cause this.

So unless you know that the compiler generated, and library contained 
routines, that will be used for the code you wrote, will not do something 
that is prohibited in SRB "mode", give it a whirl.  However, I can tell 
you that this can be a frustrating proposition where you find something 
that was working yesterday, crashes tomorrow because of some unknown or 
unseen difference that causes a slightly different code path to be taken 
and some kind of I/O (OPEN any one?) gets done.

Regards,
Steve Thompson

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to