I am reading the System V Application Binary Application Interface , and there is one part that I cannot understand about.
First, the document states that
No attempt was made to specify ABI for languages โโother than C
(p. 10).
Later, on page 20, arrays are classified as MEMORY, POINTER, etc .:
The classification of aggregates (structures and arrays) and types of trade unions as follows:
...
Classification is then used to determine the calling conventions โ how values โโand boundaries on them are passed and returned from functions. If I read the algorithm correctly, the array can be classified as INTEGER, MEMORY or SSE.
But in C, arrays are always passed and returned as pointers. So, why is it useful to classify arrays and in what situation does the class of the array matter?
source share