From: "Petter Fryklund" <qsbpefr@esavionics.se>
Subject: VxWorks: Link problem
Date: Fri, 1 Feb 2002 12:35:07 +0100
Date: 2002-02-01T12:35:07+01:00 [thread overview]
Message-ID: <a3dt2s$t7j$1@newstoo.ericsson.se> (raw)
I get undefined reference for high123 and low123 when trying to make
VwWorks_rom including this little neat machine code: (AdaMULTI builds OK!)
with Machine_Code;
procedure rdtsc (High, Low : out Interfaces.Unsigned_32) is
high123 : Interfaces.Unsigned_32;
low123 : Interfaces.Unsigned_32;
pragma Export (C, High123, "high123");
pragma Export (C, Low123, "low123");
procedure Do_Inline_Code is
use Machine_Code;
begin
asm'(inst => "rdtsc ");
asm'(inst => "movl %eax,high123 ");
asm'(inst => "movl %edx,low123 ");
end Do_Inline_Code;
begin
Do_Inline_Code;
High := High123;
Low := Low123;
end Rdtsc;
(This is done in order to get 64 bit tick counter.) Any suggestions.
next reply other threads:[~2002-02-01 11:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-01 11:35 Petter Fryklund [this message]
2002-02-01 16:37 ` VxWorks: Link problem Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox