I have a .lib file(which holds simple mathematical calculation) generated for C51(P89v51RD2) tool chain. Now how can i use this lib file in arm tool-chain ARM Cortex M3(LPC 1788)
Why bother over simple mathematical calculations?
Reverse-engineering code is not something that is easy or quick to do. It's more like code breaking. If you know what the functions does, then it is way faster to create new source code.
Next thing is that the 8051 is 8-bit and the ARM is 32-bit. So you don't want to just duplicate the behavior of any 8-bit assembler instructions from disassembling 8051 code.
Actually its a password generation code implemented by our previous engineer who is not available with us at present. He provided us a .lib file. Till we worked with C51 micro-controllers it was Ok. But now we want to shift ARM micro-controller.
It takes 4 bytes and returns back 4 byte through array pointer like-
void GetKey(unsigned char *Input, unsigned char *Output)
and I don't know the calculation logic. what to do?? Pls. help.
code implemented by our previous engineer who is not available with us at present
So how come nobody insisted that he should leave behind not just the compiled library, but also the source code for it?
what to do??
Give up on that library, task somebody with writing a new one from scratch (or from the same requirements, assuming you at least managed to archive those) and keep the source code, this time round. And consider the price of that exercise the appropriate punishment for being grossly negligent about source code control, before.