The invention discloses a compiling implementation method for a variable-parameter function. The compiling implementation method comprises the steps that (1) the number of fixed parameters in a function prototype is obtained, and the storage position of the first variable parameter is determined according to the number of the fixed parameters; (2) the parameters in the function are read, whether the current parameters are variable or not is judged, if the current parameters are not variable, a parameter register is used preferentially for transmission, and when no parameter register is available, a stack is used for transmission, and if the current parameters are variable, the stack is used for transmission; (3) traversal is conducted on the parameters from the first variable parameter, each parameter is obtained through the storage position of the parameter, the storage position of a next parameter is obtained according to the storage positions of the parameters and the values of the parameters, and traversal is ended until all the variable parameters are obtained. The compiling implementation method for the variable-parameter function has the advantages that the method is simple, operation is convenient, the utilization rate of hardware resources is high, the execution efficiency is high, and the flexibility is high.