From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <657aeab77c9c47973c9ade8578c750f0.axp-list@archive.invalid> X-Archive-Original-Message-ID: <9706140152.AA18858@ives.amt.tay1.dec.com> Date: Fri, 13 Jun 1997 22:51:08 -0400 From: Jim Paradis Subject: Re: Compiling 64 bit code Michal Jaegermann wrote: > > How about: > > > > % gcc -Dint=long "-Dunsigned=unsigned long" > > This would convert 'unsigned int' into 'unsigned long long' > (or we would recurse on unsigned? but this is easily avoidable) > not something you likely would want to see. You can probably > control a code you write to avoid such surprises but headers > will be a fun. Actually, I tried this out before posting it and it works just fine. It does not recurse on the "unsigned" bit. While it *does* turn "unsigned long" into "unsigned long long", that is no problem on Alpha; "long long" is a recognized datatype in GCC, and on Alpha it just *happens* to be exactly the same size as "long" (in the way that "int" and "long" used to be interchangeable on 32-bit architectures). In short, the solution I propose above (while a bit ugly and abhorrent to language purists) should solve the user's problem. -- Jim Paradis jrp@jrp.tiac.net http://www.tiac.net/users/jrp/index.html "It's not procrastination, it's my new Just-In-Time Workload Management System!" -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com