Assembly and C51

Hello,there: I have met a tough quesiton, how to program with C and Assembly in the project using KEIL(verison 3.0), for example, I wana program the frame with C, and the functions with assembly, especially for RTC conditions, hope someone to give some advice, great thanks advance!

Parents
  • You want to, or you need to?

    What exactly do you hope to gain by mixing C and assembler like that?

    When speed is of concern, then you normally move one or more levels of functions totally into assembler - the part where 90+ percent of the execution time is spent.

    If you are going to replace all your functions and just keep the skeletons, then it feels better to design from scratch with assembler and macros.

Reply
  • You want to, or you need to?

    What exactly do you hope to gain by mixing C and assembler like that?

    When speed is of concern, then you normally move one or more levels of functions totally into assembler - the part where 90+ percent of the execution time is spent.

    If you are going to replace all your functions and just keep the skeletons, then it feels better to design from scratch with assembler and macros.

Children
More questions in this forum