|
From: Andreas F. <and...@di...> - 2003-08-01 07:33:13
|
Hi all, this is my first post here, so first let me say that I'm very impressed with valgrind and it's becoming an indispensible tool in my toolbox. I work for DICE and I'm developing the Linux port of our dedicated server for our game Battlefield 1942. My debug executable is about 90 megs in size, and valgrind runs it pretty happily. With the memcheck skin active there's no chance of actually playing on the server, but that's not the point either. :-) I noticed that the floating-point variations of cos(), sin() and friends are not supported by valgrind-1.9.6 (I'm using gentoo linux 1.4), so I had to whip up a sed script to replace these with their double couterparts for the valgrind build. Is this a known issue, or should it be added to the FAQ? I was thinking that this could be because Gentoo optimizes the c library for the CPU (AMD Athlon in my case) which could generate instructions not suitable for valgrind's synthetic CPU. Can anyone comment on this? Regards, Andreas Fredriksson |
|
From: Nicholas N. <nj...@ca...> - 2003-08-01 08:20:25
|
On Fri, 1 Aug 2003, Andreas Fredriksson wrote:
> this is my first post here, so first let me say that I'm very
> impressed with valgrind and it's becoming an indispensible tool
> in my toolbox.
Great, thanks :)
> I noticed that the floating-point variations of cos(),
> sin() and friends are not supported by valgrind-1.9.6
> (I'm using gentoo linux 1.4), so I had to whip up a sed
> script to replace these with their double couterparts
> for the valgrind build.
I'm not sure what you mean by "not supported". Does it abort execution?
I'd never heard of these functions, but I just ran this program:
#include <stdio.h>
#include <math.h>
int main(void)
{
float arg = 0.777;
float ans = cosf(arg);
printf("%f\n", ans);
return 0;
}
and it worked fine with the current version (which I think should operate
the same as 1.9.6 in this case).
Is this what you mean? Can you post a small test program in C or (even
better) assembly code?
N
|