have been following an assembly tutorial on youtube here through AT&T syntax. I have just learned about declaring(if that's the correct term here) a function with the .type directive, such as:
.type MyFunction, @function
Now I can define my function like:
MyFunction:
<code here>
And subsequently call it whenever:
call MyFunction
I know that previous to this in the tutorials, we were simply creating a label that was attached to some code:
MyLabel:
<code here>
which could then be called like this:
call MyLabel
So my questions are:
What exactly is the difference between a function declared with .type, and and 'function' declared simply with a label? When should one be used over the other, or does it matter?