NO

Author Topic: Inline ASM  (Read 3084 times)

Raedwulf

  • Guest
Inline ASM
« 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.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Inline ASM
« Reply #1 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
/Pelle

Raedwulf

  • Guest
Inline ASM
« Reply #2 on: September 30, 2005, 09:21:03 AM »
Thanks Pelle,
Thats what I like :D - full control hehe :P.