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.

C and assembly language in PIC

Status
Not open for further replies.

charu2539211

Junior Member level 3
Joined
Jul 22, 2013
Messages
31
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
200
Hi

can we write a code in C and use it as subroutine for a main program that is in assembly language??
if, yes can u suggest some example programs or websites which can help me...

Thanks
 

It is certainly possible.

How easily it can be accomplished, if at all, largely depends on the specific Assembler and C Compiler.

Typically, most C compilers allow for inline inclusion of assembler code.

To utilize C routines in an assembly program, would typically require the C code be compiled into a library or object file which is then linked with the object file generated from the assembly code.


BigDog
 

Hi..

i am using MPlab. will this complier support it??
if not,can u suggest some compliers that will support such functions???
 

yes you can use your compiler after compiling your c code click c\ASM list you can see your assembly code whic is correspond to your c code
 
thanks
i ll try it out. is there any site in which the process is explained step wise???
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top