News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Inline ASM

Started by Raedwulf, September 29, 2005, 08:52:45 PM

Previous topic - Next topic

Raedwulf

Hi:

Just playing around with Pelles C.... and was wondering how one could remove stack frames from functions with inline assembly....
Any suggestions?

Thanks.

Pelle

If you add __declspec(naked) to the function definition (see help file), you get a completely empty function - to be filled with any inline assembly you like (don't forget the return instruction!). You get no help from the compiler - except from decorating the function's name...

Pelle
/Pelle

Raedwulf

Thanks Pelle,
Thats what I like :D - full control hehe :P.