As mentioned earlier, the classic 68K runtime environment supports several different C calling conventions. This section describes the C calling conventions used by the SC compiler in the MPW development environment.
C allows either a fixed or variable number of parameters to be passed to the called routine.
Therefore, number is a fixed parameter. Parameters passed by routines are pushed onto the stack from right to left. The return address of the routine is the last item pushed onto the stack. Inc. All rights reserved.