Pelles C forum

Pelles C => General discussions => Topic started by: Raedwulf on September 29, 2005, 08:52:45 PM

Title: Inline ASM
Post by: Raedwulf on September 29, 2005, 08:52:45 PM
Hi:

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

Thanks.
Title: Inline ASM
Post by: Pelle on September 29, 2005, 11:12:48 PM
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
Title: Inline ASM
Post by: Raedwulf on September 30, 2005, 09:21:03 AM
Thanks Pelle,
Thats what I like :D - full control hehe :P.