Beauty is in the eye of the beholder. This is an issue of properly documenting the engine function and how you're interfacing with it. Not using inline assembly allows the compiler to add instructions of it's own. It is really unwise to mix asm blocks with C code. You leave the compiler to do pretty much whatever it wants to the resulting output asm. It's why I write explicit function wrappers in OS, and use __declspec(naked) where appropriate.
e: When interfacing with blackbox software which has no code documentation, it is far better to be explicit in your source, especially if others are suppose to look at it and/or grok what is going on.
Bookmarks