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

mixed assembly and c code in uvision 5.14

Hello
How can i write mixed assembly and c/c++ codes in keil mdk uvision 5.14?
Please provide some examples.
Thanks.

Parents
  • Most projects have a startup_arch.s file and a system_arch.c file, review those.

    The Cortex-Mx ones should have assembler code calling a C based SystemInit() function.

    Review some of the texts addressing C and assembler with ARM, and Keil, from the last decade, or so, you'll find most still have salient detail of import/export directives, and stack/register passing conventions.

    Any prior experience with assembler we can leverage against?

    Any particular ARM processor?

Reply
  • Most projects have a startup_arch.s file and a system_arch.c file, review those.

    The Cortex-Mx ones should have assembler code calling a C based SystemInit() function.

    Review some of the texts addressing C and assembler with ARM, and Keil, from the last decade, or so, you'll find most still have salient detail of import/export directives, and stack/register passing conventions.

    Any prior experience with assembler we can leverage against?

    Any particular ARM processor?

Children