Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: Jeff Galyan <talisman@anamorphic.com>
Cc: java-linux@blackdown.org, axp-list@redhat.com
Subject: Re: [off-topic] stop bashing!
Date: Wed, 23 Jun 1999 07:56:58 -0400	[thread overview]
Message-ID: <3770CB8A.F4C1AE89@voicenet.com> (raw)
In-Reply-To: 37701981.5844C5E3@anamorphic.com

Please return a long/64 bits Window address. Lemme know what gets stored in in the java int valiable "lets_store_a_32_bit_address", which has the capacity to store 32 bits. I'm sorry, I thought a fairly simply program sample would demonstrate it best.

While ur pondering this porting delima, may u can figure out the other points that I was attempting, but failed to make to u. Again I'm sorry for my failure.


Jeff Galyan wrote:

> Uncle George wrote:
> > 5) In the land of alpha longs are 64bits as well as address pointers =>
> >
> >         .java
> >                 int    lets_store_a_32_bit_address;
> >                 private native    int wheres_my_window();
> >                 lets_store_a_32_bit_address = wheres_my_window();
> >                 ......
> >
> >         Native .c
> >                 int    wheres_my_window(blah*,blah ){
> >                      long    addr;
> >                     addr = (Window) w;
> >                     return(addr);
> >                 }
> > This particular example results in the truncation of a returned 64 bit 'c' address, into a 32bit '.java' variable/storage. u can of course change the 'c' routine to return all 64bits, but that will be, eventually, truncated by the jvm to 32bits. In the Land of "OSF/true64" for the Dec Alpha, u can convince the compiler to produce 32bit pointer arithemetic, where long == 32bits. But the currently available linux/alpha compilers a long==pointer==64bits.
>
> Your example is flawed in that you assume you should return an int from
> wheres_my_window(blah*, blah). If you return a long, everything is fine,
> since in the land of Java, long is defined as a 64-bit data type.
>
> >




  parent reply	other threads:[~1999-06-23 14:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199906171425.HAA10515@shell.accesscom.com>
     [not found] ` <376A353F.AD76951F@voicenet.com>
     [not found]   ` <376C3667.4AD168F1@anamorphic.com>
1999-06-20 23:11     ` [off-topic] stop bashing! Uncle George
1999-06-21  1:46       ` Larry Snyder
     [not found]       ` <376EFC87.D6FB5962@anamorphic.com>
1999-06-22 11:01         ` Uncle George
     [not found]           ` <37701981.5844C5E3@anamorphic.com>
1999-06-23 11:56             ` Uncle George [this message]
     [not found] <199906181829.UAA11712@alpha.cdg.acriter.nl>
1999-06-21 10:58 ` Uncle George
     [not found] <199906231125.HAA31150@vixen.sinz.org>
1999-06-23 13:30 ` Uncle George
1999-06-23 17:36   ` Christopher W. Curtis
1999-06-24 11:12     ` Phil Carmody
1999-06-24 17:05       ` Christopher W. Curtis
1999-06-24 17:06         ` mgraffam
     [not found]   ` <377179ED.F4F3423D@anamorphic.com>
1999-06-25 12:23     ` Uncle George
     [not found] <199906231720.KAA23112@taller.eng.sun.com>
1999-06-25 13:23 ` Uncle George
     [not found] <199906251757.KAA16139@taller.eng.sun.com>
1999-06-26 10:49 ` Uncle George
     [not found]   ` <000201bec051$c7c960a0$9bd7a2d1@nutriware.com>
1999-06-27  7:32     ` Uncle George
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox