| ??? 02/13/03 13:57 Read: times |
#38968 - RE: asm2c conversion Responding to: ???'s previous message |
I do not know how applicable this is to this post.....but there is a disassebler out there called IDA Pro. (I have commented about it before on this forum). It has a capability to perform disassebly of machine code and to be able to recognize the presense of C library code within the machine code. This works IF the person doing the disassembly knows the compiler that was used and what library was linked to the code originally. The IDA Package has a mode to setup and register the library with the disassembler. Then while the disassembly is in process C library routines are recognized and shown in the disassembly result. The same scheme is used by the program where by things like system calls can be registered in like manner (useful when disassembling a windows program that makes lots of Windows API calls for example).
Of course efficacy of any disassembly process is the topic for another discussion. And that has been discussed at some length on this very forum. If the conversion process being discussed here is to convert assembler language source code to C source code then it is a simple reply......there can be no tool that can do this effectively for an arbitrary bit of assembler source code. The best way to do do this type if conversion that I have found is to simply sit down and open two edit windows and read assembler in one window and write equivalent C code in the other window. The process is surprisingly very similar to the effort required to flow chart assembler code at the functional block level. I have done several conversions of this type. I found that the effort was not that hard and goes along surprisingly fast. (I suspect that for a typical sized project that one could spend almost as much time trying to find an automatic way to do the task as it would take to just sit down and just do it!!). Michael Karas |
| Topic | Author | Date |
| asm2c conversion | 01/01/70 00:00 | |
| RE: asm2c conversion | 01/01/70 00:00 | |
| RE: asm2c conversion | 01/01/70 00:00 | |
RE: asm2c conversion | 01/01/70 00:00 | |
| RE: asm2c conversion | 01/01/70 00:00 | |
| RE: asm2c conversion | 01/01/70 00:00 | |
| RE: asm2c conversion | 01/01/70 00:00 |



