|
|
View previous topic :: View next topic |
Author |
Message |
dakagui Guest
|
ASM + C |
Posted: Tue Oct 18, 2005 10:01 am |
|
|
Eu tenho um programa em asm e preciso construir um programa em C que chame suas fun��es. O�problema � que todos os tutoriais que eu peguei falam para usar extern, mas naum funciona. Eu t� achando que eu tenho que linkar os aruquivos .c e .asm. Mas como faz isso com o CCS? |
|
|
dakagui Guest
|
ASM +C |
Posted: Tue Oct 18, 2005 11:07 am |
|
|
I have a program in .asm and I need to build a program in .c that call its functions. The problem is that all the tutorials that I founded tell to use 'extern', but doesn't work. I have been thinking that I have to link the files .c and .asm. How could I do that? |
|
|
Ttelmah Guest
|
|
Posted: Tue Oct 18, 2005 2:57 pm |
|
|
You really can't.
CCS, does not support a linker, or external definitions. You might be able to trick this, by defining a dummy 'stub' function, to be resident at the address where the assembler is to go, compiling with this present, then load the CCS code into something like MPLAB, and load the assembler 'over the top' to overwrite the dummy. It will be a 'kludge', but should work.
Otherwise include the assembler source (which will need modifying, since the CCS assembler is slightly non standard...), into the CCS code.
Best Wishes |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|