naked functions on x86

James Lemke jim@TheLemkes.ca
Thu Jun 3 20:08:00 GMT 2004


On 3 Jun, 2004, at 10:34, Jonathan Wilson wrote:

> Is there a way to get the same functionality as __declspec(naked) in 
> visual C++ with GCC on x86?

Try: function() __attribute__ ((naked));
I think that works.

--
Jim Lemke   jim@wasabisystems.com   Orillia, Ontario



More information about the Gcc mailing list