This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6RunLib C64 and Assembly Language Input

I have some optimized modules written in C64 assembly that I want to link into a C6Run library project.

I assume the easiest way is to use the C6000 tools (assembly optimizer->assembler->archiver) directly to create a library which I then link with the C6RunLib archiver?

  • Have you got any solution to your problem ??

    Even with C6000 tools, can we link the asm object file with c6runlib objects ??

  • it's been a while, but I think I ended up just including the asm files in a giant flat build makefile rather than linking it later, but that was because I was lazy, not because I couldn't get it to work the other way. If I remember right, asm files compiled fine with the same command as a C source like gcc does.

  • Thanks for your reply....

    Can you explain a little more on how you have included asm files ?? Basically, I am able to compile the .sa (assembly ) file, but couldn't link that up with the other files which are compiled with c6runlib-cc. I hope you got my problem...

     

     

  • Can you create a C wrapper function that calls your asm routines and compile and link it with c6runlib?

    Edit:

    Let me clarify a bit - here's what I'd do first in your situation:

    compile some simple asm routine with the regular c6000 tools modelled after one of the really simple c6runlib examples

    create a c wrapper function that you would call from the arm side

    compile the c wrapper with c6runlib and then link both with the c6runlib archiver. 

    There are several other things that you need to be careful of with c6runlib that you may be having trouble with but I'm pretty sure I at least got the above steps into a runnable library.

  • I will  try with wrapper. Earlier I was directly using the asm.

    Thanks for your time.