Comment by SavantIdiot

5 years ago

Just here to say that the use of those #defines for huge parameter lists makes sad. I realize that's a common pattern, but if your call list is that big, how about a struct pointer?

That would defeat the entire purpose: they need to be six parameters to ensure that they are all in registers.

However I was considering whether they could be a struct with six members passed by value. If the ABI would pass that in six registers we could get rid of the #defines, which I agree would be nicer.