This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

calling an assembler fonction from c program

I do my main program in c.
I want to call in this c program a fonction (procedure) in assembler.
How can I do this ?
with a #include <xxxx.a51> ?
how can I do a mix program with c and assembler procedure?

thanks for your answer.

Parents
  • "and this warning came without any assembler code in my programm."

    The trouble is, you have convered your entire project to assembler.
    This means that the Linker doesn't know that it should be a 'C' project, and doesn't automatically include the necessary 'C' runtime support.

    If you search for those messages in the knowledge base, you will find more detailed descriptions.

    "what can I do for this?"

    Don't convert the entire project to assembler!

    Have just one file that contains the "skeleton" for just one function, and apply the SRC directive to that file only.

Reply
  • "and this warning came without any assembler code in my programm."

    The trouble is, you have convered your entire project to assembler.
    This means that the Linker doesn't know that it should be a 'C' project, and doesn't automatically include the necessary 'C' runtime support.

    If you search for those messages in the knowledge base, you will find more detailed descriptions.

    "what can I do for this?"

    Don't convert the entire project to assembler!

    Have just one file that contains the "skeleton" for just one function, and apply the SRC directive to that file only.

Children