X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: kala AT sankya DOT com (Babu Kalakrishnan) Newsgroups: comp.os.msdos.djgpp Subject: Inline assembly problem Date: Sat, 26 Jan 2002 16:01:32 +0530 Lines: 25 Message-ID: NNTP-Posting-Host: ppp-177-140.bng.vsnl.net.in (203.197.177.140) X-Trace: fu-berlin.de 1012041886 37127674 203.197.177.140 (16 [76750]) X-Orig-Path: kala User-Agent: slrn/0.9.6.2 (Linux) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, The gcc bundled with djgpp 2.03 seems to choke on the following inline assembly statement : long long clk_time; __asm__("rdtsc":"=A"::"%eax","%edx"); The error message is : Error : Can't find a register in class `AD_REGS' while reloading `asm'. gcc --version returns 3.02 (Replacing "rdtsc" by ".byte 0x0f;.byte .0x31" doesn't help either. The same program compiles correctly on my Linux (RH 6.2) box where the gcc version returns egcs-2.91.66 Any ideas would be welcome. BK