Well, disabling optimization is not an option, unfortunately. There are pragmas in msvc to disable/enable optimization but those are global. eg. can't put them before macro, and after macro. For now I think I will stick with import table trick until ms adds this option again, or use /Od for a while