By the Theorem of Milnor in his paper "On spaces having the homotopy type of a CW-complex", the function space $\operatorname{Hom}(X,Y)$ (with the compact-open topology) is homotopy equivalent to a CW complex (say $Z$) when $X$ is compact.
Do we know anything about the cell structure (of $Z$) in this case? [When $X$ is $S^n$, I believe there is a well-known construction, and I would like to know more about it as well.]