From my knowledge, the calling convention is depending on whether the platform is Windows or Linux.
I wanna know,
- Compilers make the calling convention different.
- Platforms make the calling convention different.
Which one is true? if only 2 is true, is the calling convention is defined by the platforms, and do the compilers just follow the defined convention?