| | @@ -9,7 +9,7 @@ |
| 9 | 9 | This report defines the language. It is short on purpose. Whatever it |
| 10 | 10 | doesn't allow, raz doesn't have. |
| 11 | 11 | |
| 12 | | -This is version 2026-10.17 of the report; section 12 says what each |
| 12 | +This is version 2026-10.18 of the report; section 12 says what each |
| 13 | 13 | version changed. 2026-10.11 and 2026-10.12 are a thaw the owner chose, |
| 14 | 14 | for a language anyone can build again. They break programs written |
| 15 | 15 | for 2026-10.10 and before: for 2026-10.9, say, the report of compiler |
| | @@ -1068,8 +1068,12 @@ |
| 1068 | 1068 | and pointer arguments arrive in `rdi`, `rsi`, `rdx`, `rcx`, `r8` and |
| 1069 | 1069 | `r9`, `F32` and `F64` ones in `xmm0` to `xmm7`, and the result goes in |
| 1070 | 1070 | `rax` (and `rdx` for a second) or `xmm0`. Its parameters and results |
| 1071 | | -are therefore of the types C can take (section 9), at most six integer |
| 1072 | | -and eight real parameters, and at most two results. The instructions |
| 1071 | +are therefore of the types C can take (section 9), or slices, at most |
| 1072 | +six integer and eight real parameters, and at most two results. A |
| 1073 | +slice is two integers, as System V passes a struct of them: as a |
| 1074 | +parameter its address arrives in one register and its length in the |
| 1075 | +next, the two counting among the six; as the result its address goes |
| 1076 | +in `rax` and its length in `rdx`, and it is the only result. The instructions |
| 1073 | 1077 | are the whole procedure, `ret` included; they must keep `rbx`, `rbp`, |
| 1074 | 1078 | `rsp` and `r12` to `r15` as they found them. The compiler doesn't look |
| 1075 | 1079 | past what they say. |
| | @@ -1925,6 +1929,8 @@ |
| 1925 | 1929 | `copy` (section 11). |
| 1926 | 1930 | - **2026-10.17.** `COPY` copies the elements of one array or slice to |
| 1927 | 1931 | another as a block (section 6.8). |
| 1932 | +- **2026-10.18.** A code procedure takes and returns slices (section |
| 1933 | + 8). |
| 1928 | 1934 | |
| 1929 | 1935 | ## Appendix A. What an implementation chooses |
| 1930 | 1936 | |