mix assembly and C in Keil

Status
Not open for further replies.

raviraj.jr

Junior Member level 1
Joined
Mar 5, 2009
Messages
16
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Activity points
1,394
keil assembly code in c using #pragma

I've written a function in assembly and which i've mixed with C code in keil complier using
#pragma ASM
------------------
----------------
#pragma


but i'm getting error like this

building target'target 1'
compiling xyz.c....
target not created

why is this happening????
 

keil compiling assembly

Hi Boss,

To work both assembly and C code you need to
1) add .lib file to group and compile
2) enable Generate assembler src file option in the group.
Now your code will work.

Regards,
Sam
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…