Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do you need JIT though? Does Xcode support inline ASM, or various compilers extensions that can read/write a cpu register?


If you put this in your app directly, Apple can just find it and reject it at submission time. If JIT were an option, that wouldn't be enough, because the app could do it at runtime. Since it isn't, there is no way to "hide" something like this from the App Store static analyzer.


Hrm. It seems like inline ASM allows for passing the register name dynamically, though I can't tell for sure. If that's the case, it seems like it would be hard to tell ahead of time, other than "app calls msr/mrs".


Inline assembly must resolve register names at compile time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: