I have a C++ program and DLL, both of which have been optimized with MSVC /O2 option, 64 bit.
The program calls a function in the DLL as follows (pseudocode):