function and stored procedure both are stored in compiled format in database.
SELECT dbo. anotherFunction (@Parameter)
Above statement is better if u need only select statement in function/procedure,because can not execute any other statement.
function can call from any statement.
like
select anotherFunction(@parameter)
above statement is possible
select anotherstoredprocedure
above statement is not possible.