Caaling assembly routine in c
- From: sbillore@xxxxxxxxxxxxxx (Sachin)
- Date: 29 Apr 2005 03:03:39 -0700
Hi All,
I am working on MIPS architecture and I am
compiling my project using GHS tool chain.
I want to call a assembly routine into c function.
My code is like that:
..globl asm
..ent asm
asm:
----
----
..end asm
I am calling this routine in c function like that:
extern void asm(void);
void foo()
{
asm();
}
On compiling, error message comes that
symbol asm unresolved.
Could any one tell that how I can do it for GHS.
Regards,
Sachin
.
- Follow-Ups:
- Re: Caaling assembly routine in c
- From: Hariprasad Govardhanam
- Re: Caaling assembly routine in c
- From: Ravi Uday
- Re: Caaling assembly routine in c
- From: Tim Prince
- Re: Caaling assembly routine in c
- Prev by Date: Re: how to find a number whether its a power of 2 or not
- Next by Date: Re: Count maximum contiguous set bits in an integer .
- Previous by thread: how to use static function defined in one file in another file is that impposiible in 'c '
- Next by thread: Re: Caaling assembly routine in c
- Index(es):
Relevant Pages
|