Let $\phi ：C\_1\to C\_2$ be morphism of projective singular curve. Let $\tilde{C}\_1$ and $\tilde{C}\_2$ be their smooth compactification.
Then $\phi$ extends to $\tilde{\phi} : \tilde{C}\_1\to \tilde{C}\_2$.
Let $\deg \phi$ be degree of $\phi$ and $e\_\phi (P)$ be ramification degree at $P \in C\_1$.



> 
> Does $\deg \phi=\deg \tilde\phi$ and $e\_{\phi} (P)=e\_{\tilde \phi} (P)$ hold?
> 
> 
> 


Background. If this is true, we can easily calculate the genus of $C\_1$ from he genus of $C\_2$ by applying the Riemann–Hurwitz formula to $\tilde{\phi}$.


N.B. Sorry, my link was wrong, the meaning of smooth compactification is in this paper of page $2$, <https://arxiv.org/pdf/2112.02470.pdf>



Are degrees and ramification degrees preserved upon passing to the smooth compactification?
The first claim is true. The degree can be defined as the degree of the extension on function fields $k(C\_1)/k(C\_2)$, but $k(\tilde{C}\_1) = k(C\_1)$ and $k(\tilde{C}\_2)= k(C\_2)$ so $k(C\_1)/k(C\_2) = k(\tilde{C}\_1)/k(\tilde{C}\_2)$.


The second claim is true for smooth points lying over smooth points. This is because it is clear from the definition of ramification degree that it may be computed locally (say in the Zariski topology) and $C\_1$ is isomorphic to $\tilde{C}\_1$ locally in the Zariski topology around smooth points. I am not sure if one can define the ramification degree for singular points.


We would normally refer to what you call the "smooth compactification" as the "normalization" or maybe "resolution of singularities" since it's not the compactification of $C$ but rather of a smooth open subset of $C$.


