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

Cortex-M3 calling c functions from assembly

Hi,
We are trying to call a 'C' function from assembly code and are not terribly successful (i.e won't assemble). Does anyone know how this is done or know of any links to example(s) of how this is done? We are using Keil RealView compiler as well as the ARMASM assembler.

Thanks in advance,
Glenn

Parents
  • The methods to do this are pretty much the same for all C compilers in the worlds:

    1) You got documentation. Use it!

    2) If that fails: "Use the source, Luke". The C compiler obviously knows how to call C functions. So an assembler listing (or disassembly) of compiled code will show you how it's done.

Reply
  • The methods to do this are pretty much the same for all C compilers in the worlds:

    1) You got documentation. Use it!

    2) If that fails: "Use the source, Luke". The C compiler obviously knows how to call C functions. So an assembler listing (or disassembly) of compiled code will show you how it's done.

Children