From: Arno P. <ar...@pu...> - 2009-10-19 09:43:07
|
Panayotis Katsaloulis wrote: > Now, about parsing the ObjC binary - I don't think this is the > direction to go on. I find it safer to parse .h files from the SDK, > since this is the actual "showcase" of the application. well, I would argue that it is generally easier to parse binaries (especially when you have a powerful reflection mechanism) than source code (that is also the reason why we read byte codes and not Java source code in XMLVM). Think about the nasty things you can do even in ObjC .h files: from pre-processing directives to constant expressions. All that goes away if you parse the binary versions of the libraries. A small prototype might be an interesting first step to evaluate the complexity of the various approaches. Arno |