Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jim Paradis <jrp@jrp.tiac.net>
Subject: Re: Compiling 64 bit code
Date: Fri, 13 Jun 1997 22:51:08 -0400	[thread overview]
Message-ID: <657aeab77c9c47973c9ade8578c750f0.axp-list@archive.invalid> (raw)

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

             reply	other threads:[~1997-06-14  2:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-14  2:51 Jim Paradis [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-06-16  4:23 Compiling 64 bit code Jim Paradis
     [not found] <01BC77F9.83016500@pengwin.qantel.com>
1997-06-15 23:48 ` Thomas Pornin
1997-06-14  3:12 Jim Paradis
     [not found] <9706131527.AA17307@cadosf.hlo.dec.com>
1997-06-13 21:14 ` Ross A. Knepper
1997-06-13 19:58 Kelvin Lunsford
     [not found] <33A0AFE4.3973144C@jrp.tiac.net>
1997-06-13  3:54 ` Michal Jaegermann
1997-06-13  2:26 Jim Paradis
1997-06-12 21:06 Kelvin Lunsford
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