comp.lang.ada
 help / color / mirror / Atom feed
* GNAT Inline machine code
@ 2002-06-03 11:48 Magnus Andersson
  2002-06-03 13:57 ` Mark Johnson
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Andersson @ 2002-06-03 11:48 UTC (permalink / raw)


How do I read the system clock using GNAT inline assembler?

This results in compiler error "No code generated for file rdtsc.ads
(package spec)":

asm("rdtsc                            ");
asm("movl   %%eax, %0", Outputs => Interfaces.Unsigned_32'Asm_Output ("=g",
high123)  );

Thanks
/ Magnus





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-03 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-03 11:48 GNAT Inline machine code Magnus Andersson
2002-06-03 13:57 ` Mark Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox