Use 'naked' attribute to implement naked asm

I wanted for some time to check if that would work and #483 reminded me about it.