I would like to know what would be the relationship between $E_b/N_0$ and $\rm SNR$ when there is a coding rate of $R_c=K/N$. Normally when there is no channel coding according to this link.
$$\textrm{SNR(dB)} = \frac{E_b}{N_0}(\textrm{dB}) + 10\log10\left(\frac{R_b}{B}\right)$$
However what would happen if I have a linear block code or other coding schemes with code rate $R_c =1/2$ or other values, how to calculate the relationship between $\rm SNR$ and $E_b/N_0$ in this case ?