Jump to content
Sign in to follow this  
jcwpt

Porting Assembly Program Into Boostc

Recommended Posts

For starters, I did a search in this forum already and it looks like what I want to do may not be possible.

 

Essentially, I want to write a C-function and include it in an existing assembly program. I've tried putting the program into inline assembly, but it's just too time-consuming with about 1800 lines of code (including comments). And BoostC doesn't recognize directives such as EQU.

 

Someone who has more experience than me with this type of thing told me that theoretically you can compile the .asm files into .obj files and then link them with the C-project. This is what he does with .x86 assembly files. I've tried this but with no luck. Any directions or hints are welcomed.

 

Thanks.

Share this post


Link to post
Share on other sites
For starters, I did a search in this forum already and it looks like what I want to do may not be possible.

 

Essentially, I want to write a C-function and include it in an existing assembly program. I've tried putting the program into inline assembly, but it's just too time-consuming with about 1800 lines of code (including comments). And BoostC doesn't recognize directives such as EQU.

 

Someone who has more experience than me with this type of thing told me that theoretically you can compile the .asm files into .obj files and then link them with the C-project. This is what he does with .x86 assembly files. I've tried this but with no luck. Any directions or hints are welcomed.

 

Thanks.

Some compilers do allow pure assembly modules to be linked in. BoostC doesn't.

You will need to convert your assembly code to inline assembly contained with a 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...