Target Specific Code Generation in GCC Core
Ranjit Mathew
rmathew@hotmail.com
Tue Nov 19 09:06:00 GMT 2002
Andrew Haley wrote:
> Is "stdcall" used on all Windows targets or just x86?
I presume you mean "...with respect to JNI..." - in which
case I have experience only with Sun's JDKs on Windows
running on x86 where this holds true - I don't know about
other Windows targets, much less the behaviour of Sun's
JDKs on those (if such JDKs exist, that is).
> If JNI uses stdcall on every machine where stdcall is defined, there
> is no problem: we'll just define a TARGET_STDCALL macro which does the
> appropriate thing.
I know that even on Linux/x86 "stdcall" is a valid function
attribute, but JNI doesn't use "stdcall". Therefore, we
can't do such a thing, IMHO.
Using Google, I found the following header file in an
openly browsable Sun JDK 1.2.2 installation on Linux, where
you can easily verify this bit:
http://sansone.crema.unimi.it/linux/jdk1.2.2/include/linux/jni_md.h
Sincerely Yours,
Ranjit.
--
Ranjit Mathew Email: rmathew AT hotmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/
More information about the Gcc
mailing list