Bloomberg LP Interview Question
Financial Software DevelopersSimplest way out, if you have a function
typename f(...)
, you do the following declaration:
typename f(...) __attribute__ ((noinline));
If you also want to disable all other possible optimisations, stick the line
asm("");
somewhere in the function - compiler thinks it's got some Assembler to handle, so it will take things easy...
Make it virtual.
- Rohan October 13, 2009