This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: Use of pointer casts in the interpreter
- To: java-patches@sourceware.cygnus.com
- Subject: Re: Use of pointer casts in the interpreter
- From: Per Bothner <per@bothner.com>
- Date: 09 Aug 1999 16:25:06 -0700
- References: <199908081420.HAA21002@fencer.cygnus.com> <m2g11tcw6s.fsf@magnus.bothner.com> <wxp907lf4wy.fsf@harp.is.s.u-tokyo.ac.jp>
Kresten Krab Thorup <krab@gnu.org> writes:
> #define PUSHA(V) \
> - ({ jobject __v=(V); *(jobject*)sp++ = __v; })
> + ({ jobject __v=(V); (sp++)->o = __v; })
I'm curious as to why you use the temporary variable __v.
To me it seems like nothing but overhead (more verbose, harder to
read, more work for the compiler, more variables to emit in
the debugging symbols).
--
--Per Bothner
bothner@pacbell.net per@bothner.com http://home.pacbell.net/bothner/