Skip to content
Prev 8533 / 63424 Next

Samples of external code with various compilers?

On Tue, 3 Dec 2002, Duncan Murdoch wrote:

            
S-PLUS 2000 was like R.  S-PLUS 6 is cleverer and tries to figure out
(from the decoration on the symbol, I believe) if stdcall or cdecl is
required, but it defaults to stdcall.
You can't because of callbacks into R from the compiled code.  That's
where the problems arise with S-PLUS 6: such callbacks have to be stdcall
there.

stdcall requires that all the calls have the right number and type of
parameters.  That's really difficult to check with Fortran code (or with C
code with incomplete headers).  Working with S-PLUS 6 has been much more
error-prone precisely because of the use of stdcall, and I don't see it as
a way forward.