Constants do not create any overhead in the compiled code. They are optimized away.
I'm trying hard to imagine a world that needs hard coded magic numbers. Even most of the assembly language code I've seen and produced, used mostly identifiers, not magic numbers. In C, consider the Arduino core. All the register definitions and many more important values have identifiers.