Mixing Assembly and C Code in KEIL

Hullo guys , I want to write some performance-critical sections in Assembly to be called from the C code , The C compiler in my KEIL is ARMCC and the Assembler is ARMASM .
Any help or guide to good documentation or examples ?

Parents
  • Write C functions and have the compiler generate list output - then you get how to pick up the parameters and return results.

    I have to assume that you do know how to write assembler code for the ARM architecture or for a couple of other architectures - because it isn't trivial to win over the compiler unless your task can be helped by some special processor instruction that the comiler doesn't know how to use.

    ARM obviously have quite a lot of documentation about the instruction set for the different core types, including timing information.

Reply
  • Write C functions and have the compiler generate list output - then you get how to pick up the parameters and return results.

    I have to assume that you do know how to write assembler code for the ARM architecture or for a couple of other architectures - because it isn't trivial to win over the compiler unless your task can be helped by some special processor instruction that the comiler doesn't know how to use.

    ARM obviously have quite a lot of documentation about the instruction set for the different core types, including timing information.

Children
More questions in this forum