[Don't merge] Use 'naked' attribute to implement naked asm

I wanted for some time to check if that would work and #483 reminded me about it. 
If we consider to merge this, we should really check this on all supported platforms