stack overflow
Godmar Back
gback@cs.utah.edu
Fri Oct 29 15:50:00 GMT 1999
>
> At every procedure call, an additional parameter is being passed.
> This parameter contains the current stacklimit. On each procedure
> entry, the parameter is checked against the current stack pointer.
>
To follow up on my own email to point out some points regarding this
solution that occurred to me after reading the CNI documentation:
On obvious disadvantage of this approach is that it would undermine the
Java==C++ illusion CNI promises. Calling Java code from separately
compiled C/C++ code wouldn't be possible in a transparent manner.
However, under normal C calling conventions, calling C/C++ code from
Java would work fine---which is a common application of gcj, I think.
The problem of calling Java from C/C++ could be solved by extending CNI,
by adding the additional parameter manually, or by providing macros that
would add it. Unfortunately, none of this is very appealing.
- Godmar
More information about the Java
mailing list