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

What C51 needs really bad is ...

Inline assembly!

asm {
;you assembly code goes here.
}

My version is so out of date, tho, it may already support it and I don't even know.

Parents
  • Can you say that this 2 ways always produce the same .OBJ:
    1) .C --> .OBJ
    2) .C --> .SRC --> .OBJ
    in case of no using any #pragma asm/endasm ?

    Method (2) means that you have to call both C51.exe and A51.exe separately, so you'd have to ensure that all your command-line options matched precisely

    Also, I'm not sure whether C51 disables all optimisation when generating .SRC?
    (this could make sense, given Jon's earlier comments about "tweakability")

Reply
  • Can you say that this 2 ways always produce the same .OBJ:
    1) .C --> .OBJ
    2) .C --> .SRC --> .OBJ
    in case of no using any #pragma asm/endasm ?

    Method (2) means that you have to call both C51.exe and A51.exe separately, so you'd have to ensure that all your command-line options matched precisely

    Also, I'm not sure whether C51 disables all optimisation when generating .SRC?
    (this could make sense, given Jon's earlier comments about "tweakability")

Children
No data