3 ms·
Walter, I think your Zortech compiler was one of the first (if not The First) to introduce register calling convention. I don't remember much, but how did you g
by tandr 7y ago
Walter, I think your Zortech compiler was one of the first (if not The First) to introduce register calling convention. I don't remember much, but how did you get around varargs implementation?
- WalterBright 7y agoSimply, 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.