Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] GTK in CVS


We've thought lots about running on 64-bit platforms.  There
is no clear answer.

Normally, 32/64 bit differences are hidden by the C compiler
defining "int" to be 64-bits and/or using the C compiler typedef
and/or preprocessor to hide the differences.  The problem is
that Java has no typdef, no preprocessor and int is defined to
be 32-bits.  What can we do?

We could intruduce a bogus wrapper class for "int" (and watch
performance go out the window), write our own preprocessor
(I believe Sun forbids this) or split a stream and change all
"int" to "long" (this is awful too, no Java IDE properly supports
code fragments - there isn't even #ifdef - so it'd be a copy of
the current work, yet another SWT platform).  Nothing is nice.

Question:  What do other strongly typed languages do?

Steve



Anthony Green <green@xxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

12/08/01 03:47 PM
Please respond to platform-swt-dev

       
        To:        platform-swt-dev@xxxxxxxxxxx
        cc:        
        Subject:        Re: [platform-swt-dev] GTK in CVS




Havoc Pennington wrote:

> BTW, I've noticed some code that appears to stuff pointers into the
> Java "int" type - isn't this going to blow up on 64-bit platforms?
> Or am I misunderstanding the code?

I didn't see a reply to this question.  I'm interested in building this
on
Alpha and IA-64 Linux, so it seems important.

Thanks,

AG
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top