NSMethodSignature
classFor example:
The above example shows the initialization of a NSMethodSignature object given the complete selector's encoding. The example below shows the initialization of a NSMethodSignature object giving only the method types. This corresponds to a method that has the return type void and has an integer argument.
INIT_CUMULATIVE_ARGS should initialize the variable of type CUMULATIVE_ARGS described above.
FUNCTION_ARG_ENCODING determines the encoding of the next argument of a method. It must produce a NSString describing the Objective-C encoding and position of the argument in the arguments frame of the method.
If you want to determine how to write the encoding for a new machine you could use the program generated by signature-test.pl perl script. This generates a class with a lot of methods. You can look at the output of the program to see how the compiler encodes the methods. Also take a look in the objc-act.c file in the compiler to see how the methods are encoded.