Waldek Hebisch wrote:
disallow executing code on the stack. In particular on reasonably new processors Windows can make stack non-executable. So, I suspect that
It was always possible, hardware wise, to make the stack non-executable, from the 80286 on up. On the 80286, it would be done by removing the execute bit from the stack segment. On 80386 or later, by removing execute permissions from the stack pages.
I'd be shocked if he had a windows that disallowed this. It would break hundreds of programs in existence, including several of mine. I use it all the time, you pretty much have to in order to get reasonable thunks.
Scott