Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top