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

How to compile a code which was originally compiled by Archimedes C-51 compiler V4.23?

My code was compiled using the Archimedes C-51 compiler V4.23. I want to use Keil uVersion2 to compile it. But Keil only support those codes using at least Archimedes C-51 compiler Version 5.

Does anybody have any idea for compiling my codes?

Thanks

Parents
  • Maggie,

    You can't compile it directly, but I've ported some fairly large projects from an old version of archimedes and it really only took about a day. You have to convert all the port references from archimedes-style PX.Y to Keil's PX^Y. You also have to change all the interrupt function definitions. Also, you can no longer use a port-bit as an lvalue. That is, in archimedes you could do P3.2 = 1, but in Keil, you'll need to define an sbit for that.

    Anyhow... it should be no problem for anyone familiar with the 8051 to port over your code.

Reply
  • Maggie,

    You can't compile it directly, but I've ported some fairly large projects from an old version of archimedes and it really only took about a day. You have to convert all the port references from archimedes-style PX.Y to Keil's PX^Y. You also have to change all the interrupt function definitions. Also, you can no longer use a port-bit as an lvalue. That is, in archimedes you could do P3.2 = 1, but in Keil, you'll need to define an sbit for that.

    Anyhow... it should be no problem for anyone familiar with the 8051 to port over your code.

Children