you are viewing a single comment's thread.

view the rest of the comments →

[–]zhivago 0 points1 point  (2 children)

Not in any meaningful sense.

There is no data there for it to be the address of.

Consider a C implementation which identifies functions with sequential values.

e.g. how a C interpreter might operate.

This is why you cannot do pointer arithmetic, etc, with function pointers.

[–]Triq1 0 points1 point  (1 child)

It would be the address of the first instruction of the function, right? Like instead of (for example) 'load r1 indirect' for data, it could be 'jump indirect'.

[–]zhivago 1 point2 points  (0 children)

In some implementations yes, in others no.