Jump to content
Sign in to follow this  
Kwooda

Is It Possible To Include/link With Existing Asm Files?

Recommended Posts

If I have some existing libray code written in MPLAB assembly, is there a way I can include it or link it into a BoostC program? I tried using the asm directive and cutting+pasting some code in there, but the compiler didn't like that. I really just want to include it as part of the build, primarily during the process of incrementally rewriting some of the code in C.

Share this post


Link to post
Share on other sites

Kwooda,

If I have some existing libray code written in MPLAB assembly, is there a way I can include it or link it into a BoostC program? I tried using the asm directive and cutting+pasting some code in there, but the compiler didn't like that. I really just want to include it as part of the build, primarily during the process of incrementally rewriting some of the code in C.

No it can't be done.

The best method is to wrap the assembly code in a C functions using inline assembly and call the newly created C function.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...