Subject: Re: compiling openssl
To: <>
From: Ignatios Souvatzis <is@netbsd.org>
List: port-amiga
Date: 10/07/2002 07:40:13
--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Oct 06, 2002 at 07:29:33PM -0400, webmaster@datazap.net wrote:
> Hi All,
>=20
> I am hoping that someone can shed some insight on what is going. I am
> running NetBSD 1.5.3, and I just used sup to download the latest pkgsrc
> tree. I would like to update my install of openssl, but when I type make
> it compiles with -O2 -m68020-40 and not for the 68060. I can't understand
> this because I have:
>=20
> M68060=3DYES
> COPTS+=3D-O3 -m68060
> CFLAGS+=3D-m68060
>=20
> ...in my mk.conf. Is there something that I am missing? Is there a way to
> get openssl to compile for the 68060?

-m68020-40 will potentially create code that partially uses 68060-emulated
instructions. However, the only such _integer_ instructions (I'm assuming
ssl doesn't use floating point) are division of 64 bit through 32 bit with
32 bit result and multiplication of 32x32 bit with 64 bit result.

The compiler does only create the latter for a clever division by a small
constant - which should not happen inside a loop in OpenSSL, I guess. So
the only real problem would happen if they used an assembler version of
integer multiprecision emulation - those like to use 32x32->64 on 68020-40.

You can always check by running "systat vmstat". A counter for 68060 integer
emulation is there. If you don't see LOTS of them (like, much more than
10000/second), don't worry. The 50MHz 68060 CPU is saturated at about 220000
32x32->64 emulations per second.

I might be able to have a look later today at the ssl code, to tell you
more.

Regards,
	-is



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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE9oR49PCRcZ/VMtk4RAgVfAJwIxJs2jvhFkN80bjUyzKgW0wO+WQCdHQ8r
hhZyHdaGbiKDDnEAliR2+04=
=4mBf
-----END PGP SIGNATURE-----

--AhhlLboLdkugWU4S--