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

cross assembler

Can the Cx51 be used as a cross assembler. If we write the C code can it be directly converted to assembly.
How can we link aspire and Cx51 toolset

  • Can the Cx51 be used as a cross assembler.

    Most of the packages contain an assembler, yes. I run it on a 80x86 PC and generate code for an 8051, which makes it a "cross assembler".

    If we write the C code can it be directly converted to assembly.

    Yes; see the SRC directive in the manual.

    Why would you want to do so on a regular basis?

    How can we link aspire and Cx51 toolset

    Aspire is the IDE? Perhaps that's a question best left to the Aspire user boards, if any. But the Keil 8051 tools are all command-line driven, and there's almost certainly some (IDE specific) way to configure an IDE to issue those commands.

    If the Aspire simulator shares an object file format with Keil, then you could perhaps build with Keil, then load the result into the Aspire simulator.

    Or you could use the Keil IDE and simulator.

  • How can we link aspire and Cx51 toolset

    By specifying the C51 as the compiler and A51 as the assembler in the Aspire IDE.

  • "Can the Cx51 be used as a cross assembler."

    No, it cannot - it is a cross-compiler, not an assembler.

    However, all of the Keil 51 packages contain the A51 cross assembler; The PK51 kit also contains the AX51 extended cross-assembler.

    See: http://www.keil.com/c51/selector.asp

    "If we write the C code can it be directly converted to assembly."

    As Drew says, this is possible, but why would you want to do it on a regular basis?

  • "How can we link aspire and Cx51 toolset"

    You mean Accutron Aspire?

    That would be a question for Accutron.

    See: http://www.accutron.com/products/faq.php#KeilV5