[Users] Intel Compiler Issues

Frank Loeffler knarf at cct.lsu.edu
Tue Aug 9 14:06:12 CDT 2011


Hi,

On Tue, Aug 09, 2011 at 04:47:22PM +0100, Tim Lemon wrote:
> "Run-Time Check Failure: The variable 'd' is being used without
> being initialized"

I tried to reproduce this with this small program:



#include <iostream>
using namespace std;

typedef unsigned long long ticks;

static __inline__ ticks getticks(void)
{
      unsigned a, d;
      asm volatile("rdtsc" : "=a" (a), "=d" (d));
      return ((ticks)a) | (((ticks)d) << 32);
}

int main()
{
  ticks t = getticks();
  cout << "ticks: " << t << "\n";
}




I compiled it and can run it:

$ icpc -Wall test.cc -o test
$ ./test
ticks: 10401616400236550
$ icpc --version
icpc (ICC) 11.1 20091130
Copyright (C) 1985-2009 Intel Corporation.  All rights reserved.

I cannot see this problem.

Frank

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20110809/95fc078d/attachment.bin 


More information about the Users mailing list