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
Visit site
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???
 

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

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