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

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
  • From your post I assume that you are not too familiar with C51 assembly. If this is true then it will be far better for you to stay in the C language. The Keil Compiler/Linker can build better code than you can write in assembly.

    If you are more familiar with the C51 assembly language then look into the Keil PK51 User's Guide for instructions how to output C code in assembly language. By selecting the SRC options, Keil will convert your C code to assembly with all the hooks already built. You can then mess up the good C code as you wish.

    Bradford

Reply
  • From your post I assume that you are not too familiar with C51 assembly. If this is true then it will be far better for you to stay in the C language. The Keil Compiler/Linker can build better code than you can write in assembly.

    If you are more familiar with the C51 assembly language then look into the Keil PK51 User's Guide for instructions how to output C code in assembly language. By selecting the SRC options, Keil will convert your C code to assembly with all the hooks already built. You can then mess up the good C code as you wish.

    Bradford

Children