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