Re: SuSE Linux 8.1 Alpha ... -m32 switch in gcc ?

Robert Schiele <[email protected]> Sun, 21 Nov 2004 13:12:10 +0100
Newsgroups gmane.linux.suse.axp
Message-ID <[email protected]>
--sm4nu43k4a2Rpi4c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Nov 20, 2004 at 07:23:26PM -0800, Jim McCarthy wrote:
> Hello --
>=20
> I have recently tested both Debian GNU/Linux -and- Red Hat 7.2 (from HP) =
on
> my DEC Alpha(s).  In both cases, I encountered gcc compiler warnings on
> Alpha when trying to build C software written for PC Linux (Intel 32-bit),
> and indeed the resulting executables fail at run-time.  Just today I found
> again "alphalinux.org" and mention of the SuSE Linux 8.1 Alpha Edition, a=
nd
> some further investigation of SuSE Linux then led me to this page:
>=20
> http://www.novell.com/documentation/suse91/suselinux-adminguide/html/ch10=
s04
> .html
>=20
> which describes (at least for SuSE Linux 9.1 for AMD64) a gcc compiler
> switch "-m32" that I believe would solve my problem (by limiting address
> pointers to 32-bits), *IF* this feature is also part of SuSE Linux 8.1 for
> DEC Alpha.
>=20
> Can anyone tell me if the SuSE Linux 8.1 Alpha Edition's gcc compiler also
> supports the -m32 switch, or if there is another (better/recommended)
> approach for building (on Alpha) C code written for 32-bit Intel PC Linux
> where addresses are assumed to be 32-bits ?

Alpha machines have 64-bit pointers.  There is no option for 32-bit pointer=
s,
thus a compiler cannot do anything for you.  Your only option is to fix your
broken software if you want it to run on Alpha machines.

Robert

--=20
Robert Schiele			Tel.: +49-621-181-2214
Dipl.-Wirtsch.informatiker	mailto:[email protected]

--sm4nu43k4a2Rpi4c
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBoIYaxcDFxyGNGNcRAnzTAKCZbiRApPFlNogcMzk0TjhTYb54+ACg27hQ
6vSkkiTFNCtuhrnICHXb9OY=
=40a5
-----END PGP SIGNATURE-----

--sm4nu43k4a2Rpi4c--