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

Converting ASM to C tool?

Hi

I have a lot of ASM snippets and I am in the process of trying to recode most of them to C. It is a long and tedious process it seems to make sure they are identical and function identically.

Is there any scripts or tooling that can automate this process to rebuild the structural syntax and I relabel the global and local defines as needed after the process completes?

Parents
  • "I'm using an 89S8252 to make the job cleaner."

    What do you mean by that - in what way, "cleaner"?
    "Cleaner" than what?

    "Some of the asm is very specific to my MPU project"

    That is in the very nature of embedded systems - it will be no different if you you 'C' instead of assembler!

    "does someone have a snippet of code that can show the execution of a C call to asm function"

    Just look at the assembler generated by the compiler!
    Either use the SRC option to have the compiler produce an assembly output, or just step through it in the simulator!

    "My C is rusty..."

    So what language will you be using for your .NET application...?

Reply
  • "I'm using an 89S8252 to make the job cleaner."

    What do you mean by that - in what way, "cleaner"?
    "Cleaner" than what?

    "Some of the asm is very specific to my MPU project"

    That is in the very nature of embedded systems - it will be no different if you you 'C' instead of assembler!

    "does someone have a snippet of code that can show the execution of a C call to asm function"

    Just look at the assembler generated by the compiler!
    Either use the SRC option to have the compiler produce an assembly output, or just step through it in the simulator!

    "My C is rusty..."

    So what language will you be using for your .NET application...?

Children
No data