This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: more cross-compiler work...



Per Bothner <per@bothner.com> writes:
> > This doesn't make sense to me -- different platforms have different
> > size types. Since, in theory, you can cross-compile from any platform
> > to any other, how would it ever be possible to come up with a single
> > value that would work for all cross-compile scenarios?

> Not all, but should should be able to do something that works
> on all targets (at least any that use 8-bit bytes) if you
> use gcc or some other modern compilers, by using stdint.h.

So the SIZEOF values can be smaller than they really are? In other
words, SIZEOF(int, 4) will work on a machine with 64-bit ints?

If that's the case, then it all makes sense -- I thought those numbers
had to be exact (rather than simply lower bounds on the true value).

  - a


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]