www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/07/11/12:45:58

Date: Sun, 11 Jul 1999 18:38:48 +0200 (CEST)
From: Niteshadow <niteshadow AT hq DOT alert DOT sk>
To: pgcc AT delorie DOT com
Subject: Re: libm.a
In-Reply-To: <Pine.GSO.4.05.9907092025470.8343-100000@legolas.mdh.se>
Message-ID: <Pine.LNX.4.10.9907111831100.32271-100000@hq.alert.sk>
MIME-Version: 1.0
Reply-To: pgcc AT delorie DOT com
X-Mailing-List: pgcc AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 9 Jul 1999, Henrik Berglund  SdU wrote:

> When i remove -lm in the bytemark makefile on my k6-2 running linux and
> pgcc it does not complain about not finding (sin, cos, exp, sqrt, pow).
> but it does so on an ultrasparc running solaris. What is wrong does pgcc
> always include the math library by default?

as far as I know, pgcc (and gcc) include a set of functions directly
integrated in them. These include stuff like memmove, memcpy, etc. and
also they use the built-in FPU of the (at least Intel) processors. This
means that pgcc does not actually use library function to evaluate, say
cos, but it executes the FPU instruction to compute it instead. I do not
know much about the UltraSparc, yet I do not believe it includes these
math functions, so you have to link the math library to do the work.

> 
> Have a 3dnow library that i would like to try, it has some optimised cos
> sin sqrt funktions. 

I do not think that you can optimize these functions more than to execute
a single instruction in the FPU.

> 
> -----------------------------------------------------------------------------
> Henrik DOT Berglund AT mds DOT mdh DOT se 
> http://www.mds.mdh.se/~adb94hbd/
> 
> 

- ------------------------------------------------------------------------------
- From  : Robert 'Niteshadow' Varga
email : niteshadow AT hq DOT alert DOT sk, varga AT ibl DOT sk
PGPkey: http://hq.alert.sk/~niteshadow/pgpkey.txt
phone : +421 903 511 985 (mobile, always), +421 863 432 49 75 (home, rarely)
- ------------------------------------------------------------------------------
         We are Linux. Resistance means you didn't get the point.


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBN4jImKz3GZ0qtIKKEQJzTQCgzELwmD952xKE+8aqfG2CeHIEN1EAn1We
SYlCX7ZvxOkCxdM6Sm25gTfw
=iFpQ
-----END PGP SIGNATURE-----

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019