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: Thu, 12 Jun 1997 22:26:44 -0400	[thread overview]
Message-ID: <87b7d33d7407810ca8a815a316e997f7.axp-list@archive.invalid> (raw)

Kelvin Lunsford wrote:
> 
> Does anybody out there know of a C compiler (DEC/GCC/NT) for the 
> Alpha processor which will let you set the default int size to 64
> bits.  This is for an embedded application, the resulting binaries
> would not be running under an operating system.

How about:

	% gcc -Dint=long "-Dunsigned=unsigned long"

This works even in cases of "unsigned int" and "unsigned long"
because on Linux/Alpha GCC sizeof(long)==sizeof(long long)==8.

This is the only solution I can think of.  The default programming
model for both DEC C and gcc on Alpha is sizeof(int)==4 and
sizeof(long)==8.  There's no easy way to change this (hell it was
a major feat back in the early days of my 32-bit Linux/Alpha port
to convince gcc to generate code where sizeof(void *)==4)

Does this help?

-- 
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-13  2:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-13  2:26 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
1997-06-14  2:51 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-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