3 ms·
Simply, varargs functions didn't use the register calling convention. Varargs is rarely used outside of printf, and so isn't worth the effort optimizing. Indeed
by WalterBright 7y ago
Simply, varargs functions didn't use the register calling convention. Varargs is rarely used outside of printf, and so isn't worth the effort optimizing. Indeed, the Linux 64 bit ABI for varargs is hopelessly klunky, but it doesn't really matter.
- tandr 7y agoThank you.
- saagarjha 7y ago> Varargs is rarely used outside of printf, and so isn't worth the effort optimizing. open(2) is also called relatively frequently and AFAIK requires varargs if it’s implemented in C.
- im3w1l 7y agoIt's relatively frequent to see it in source code, but those calls are cold code. People aren't calling open(2) millions of times per second in their inner loop.