The restrict Keyword
restrict is a type qualifier, added to C in C99, by which the author of a function promises that an object reached through one pointer is reached through no other. It generates no instruction of its own. Nothing checks it. Deleting every instance of it from a conforming program does not change what that program computes.[1] What it changes is what the compiler is permitted to assume.
For years we have preached the gospel of restrict to customers — in code reviews, in training, in every report that recommended a one-word change to a kernel signature and then had to argue for it on principle, because the honest answer to "and what does it buy here?" was an assembly listing rather than a number. We finally have a real-world miracle to report, and we did not go looking for it: it turned up while implementing the emmtrix ONNX-to-C Code Generator, in a model nobody had written by hand. One qualifier on each operator parameter of a generated int8 language model took a decode step from 1150 ms to 236 ms. That number is the occasion for this article; the rest of it is the attempt to say what is general about it and what is not.
The standard states the bargain in one sentence, and it is worth having in mind before anything else:
- The benefit of the restrict qualifiers is that they enable a translator to make an effective dependence analysis of function
fwithout examining any of the calls offin the program. The cost is that the programmer has to examine all those calls to ensure that none give undefined behavior.[1]
This article says what the promise is in the standard's own terms, what it is worth as measured rather than as advertised, which compilers act on it, what C's array-parameter syntax adds that the pointer syntax cannot, and how the same problem is solved in Fortran, which has never needed the keyword, and in Rust, which gets the guarantee out of its type system instead.
Its measurements are of two kinds and they are not equally strong. The host-compiler observations — assembly, vectorization reports and the one benchmark — were made for this article on the toolchains named beside each result, and can be reproduced from the code shown. The end-to-end inference figures come from single runs, in a separate experiment, and are reported as such where they appear. Nothing here was measured on an embedded target, and the article makes no claim about one.
What the promise actually is
The informal version — "these pointers do not overlap" — is close enough to use the keyword correctly in the common case and too loose to reason with when something goes wrong. The normative version is built on one auxiliary notion:
- In what follows, a pointer expression
Eis said to be based on objectPif (at some sequence point in the execution ofBprior to the evaluation ofE) modifyingPto point to a copy of the array object into which it formerly pointed would change the value ofE.[1]
B here is the block the qualified pointer is declared in; for a function parameter it is the function body. The requirement is then that during each execution of B, if some object X is both read through an lvalue whose address is based on the restricted pointer P and modified by any means at all, then every other lvalue used to access X must also be based on P.[1] If that does not hold, the behavior is undefined.
The standard library has the clearest illustration of what that means, because it offers the same copy twice and makes the caller choose. <string.h> declares:
void *memcpy(void * restrict s1, const void * restrict s2, size_t n);
void *memmove(void *s1, const void *s2, size_t n);
Identical parameters, identical effect whenever the two regions are disjoint, and one qualifier of difference. memcpy is undefined if the objects overlap; memmove is specified to behave as if the source were first copied into a temporary array that overlaps neither object[1] — an "as if" that costs no temporary array in practice: comparing the two pointers and copying upwards or downwards accordingly is enough, since a byte-wise copy in the direction that does not overwrite what it has yet to read produces the same result. The cost is that comparison, plus a loop whose order now matters. That is the same runtime test, in miniature, that a compiler generates when it versions a loop it cannot prove non-overlapping, which is the subject of a section below.
Nothing inside either function distinguishes them. The difference is a promise about the arguments, it is made in the declaration, and it is the caller who has to keep it — which is the whole of restrict in a pair of functions every C programmer has already linked against. One detail of that pair is worth noting, because it recurs: the standard does not leave the overlap rule to the qualifier alone, but also states it in prose. The sentence binds whoever implements memcpy; the qualifier is the machine-readable half, and it is the half a compiler can act on.
Three consequences are easy to miss and all three matter in practice.
Only modified objects are constrained. Two restrict pointers may point at the same array as long as nothing writes to it. The standard spells this out with a function that reads two inputs and writes a third:
void h(int n, int * restrict p, int * restrict q, int * restrict r)
{
int i;
for (i = 0; i < n; i++)
p[i] = q[i] + r[i];
}
A call h(100, a, b, b) is well defined, because b is never modified inside h.[1] This is the rule that makes restrict usable on the inputs of a kernel without auditing whether a caller ever passes the same buffer twice — as long as those inputs really are read-only.
The promise is about every call, and the compiler checks none of them. The standard's own example is a two-line function and a caller that breaks it in a way nobody would notice in review:
void f(int n, int * restrict p, int * restrict q)
{
while (n-- > 0)
*p++ = *q++;
}
void g(void)
{
extern int d[100];
f(50, d + 50, d); // valid
f(50, d + 1, d); // undefined behavior
}
Both calls pass two pointers into one array. The first is fine because the halves are disjoint; the second is undefined because d[1] through d[49] are reached through both parameters and written through one of them.[1] The difference is an offset. It is not visible at the call site, it is not visible in the function, and it is exactly the kind of thing a refactor introduces.
The compiler is free to ignore it. One short paragraph of the standard reads, in full: A translator is free to ignore any or all aliasing implications of uses of restrict.[1] That is not a theoretical escape clause. Of the six C compilers tried below, two accepted every spelling of the keyword and then produced byte-identical code with and without it.
restrict is also not the same mechanism as type-based aliasing — the rule that an int and a float may be assumed not to be the same object, which GCC and Clang switch off with -fno-strict-aliasing. Type-based analysis costs the programmer nothing and is often enough. The section on quantized inference below is a case where it is worth nothing at all, and restrict is the only lever left.
What it is worth
The minimal case: a store that cannot leave the loop
The smallest honest example is not a vectorization example. It is this:
void acc(float *out, const float *in, int n)
{
for (int i = 0; i < n; i++)
*out += in[i];
}
A reader sees an accumulator. The compiler sees that in might point at *out, in which case every iteration must observe the previous iteration's result — so the store has to happen on each pass, in order. Compiled for TriCore with HighTec's GCC 4.9.4 at -O3, the loop body is:
.L3:
ld.w %d2, [%a5+]4
add.f %d15, %d15, %d2
st.w [%a4]0, %d15
loop %a15, .L3
Qualify both parameters with restrict and the same compiler emits:
.L3:
ld.w %d2, [%a5+]4
add.f %d15, %d15, %d2
loop %a15, .L3
st.w [%a4]0, %d15
The store has moved past the loop: one write to memory per call instead of one per iteration. Note what the compiler managed without the qualifier — it hoisted the load of *out out of the loop, because a load that immediately follows a store to the same address can be satisfied from that store whatever else aliases. It is the store it could not touch, and no amount of cleverness inside the function could have fixed that, because the answer is at the call sites.
The case usually advertised, and why it is weaker than it sounds
The standard pitch for restrict is auto-vectorization, and on a simple one-dimensional loop the pitch is largely obsolete. Given
void saxpy(int n, float *y, const float *x, float a)
{
for (int i = 0; i < n; i++)
y[i] += a * x[i];
}
GCC 14.4 at -O3 -march=x86-64-v3 vectorizes the loop with or without restrict. What it does without it is version the loop: subtract the two pointers, compare the distance against the vector width, and branch to a scalar copy of the loop if the buffers are too close.
movq %rdx, %rax
subq %r8, %rax
subq $4, %rax
cmpq $24, %rax
jbe .L3 ; overlap possible: take the scalar path
The vector code is reached either way; restrict removes the test and the duplicated scalar body, which took this function from 109 to 84 lines of assembly. That is a code-size and an instruction-cache argument, not a factor. Anyone who has added restrict to a loop of this shape, measured nothing, and concluded that the keyword is folklore has measured correctly.
Where it is still a factor: loop nests
Versioning works because the test is cheap and there is one pair of pointers to test. Neither holds once the aliasing question sits inside a nest. A textbook matrix multiply:
void matmul(float c[M][N], const float a[M][K], const float b[K][N])
{
for (int i = 0; i < M; i++)
for (int j = 0; j < N; j++) {
float s = 0.0f;
for (int k = 0; k < K; k++)
s += a[i][k] * b[k][j];
c[i][j] = s;
}
}
GCC 14.4's own report, at -O3 -march=x86-64-v3, says what happens. Without the qualifier it weighs a guard and then gives up:
consider run-time aliasing test between (*_3)[k_38] and (*_50)[j_35] consider run-time aliasing test between (*_7)[j_35] and (*_50)[j_35]
No loop is vectorized, and the inner loop comes out scalar, one vmulss and one vaddss per element. With restrict on all three parameters the report is one line —
optimized: loop vectorized using 32 byte vectors
— and the j loop is vectorized eight columns at a time with vbroadcastss, vmulps and vaddps. Measured over 20,000 calls at M = N = K = 64, both versions producing identical results:
| Compiler | Plain | With restrict |
Factor |
|---|---|---|---|
GCC 14.4, -O3 -march=x86-64-v3 |
72.2 µs/call | 12.6 µs/call | 5.7 |
Clang 20.1.8, -O3 -march=x86-64-v3 |
82.6 µs/call | 82.3 µs/call | 1.0 |
Clang's row is not a typo, and it is the useful half of the table. Clang 20.1.8 does not vectorize this loop nest in either version — its hot loop is a scalar, unrolled chain of vfmadd…ss with and without the qualifier. The information restrict supplies is necessary for the transformation GCC performs, and is not sufficient to make another compiler perform it. "Does this compiler act on restrict" and "does this compiler perform the optimization the information would unlock" are two different questions, and the second is the one that shows up in a profile.
The real-world case: quantized inference
The measurement promised in the lead was made on single-token decode of TinyLlama 1.1B Chat — the public int8 ONNX export, DynamicQuantizeLinear and MatMulInteger, 22 layers and 2,688 nodes, with a KV cache — compiled to C by the emmtrix ONNX-to-C Code Generator and built with GCC 14.4 at -std=c99 -O2, without -march, on an Intel Core Ultra 7 270K Plus. No -march means generic x86-64, so everything below happens on SSE2. Each operator is emitted as its own function, and above a thousand of them the generator stops inlining by default — a single function with 2,688 operators in it is not something to hand a compiler. That decision is what creates the problem: once the kernels are no longer inlined, the model's buffers reach them as parameters, and nothing in a parameter list says they are distinct. The mean time per decode step over 24 steps was:
| Variant | ms per decode step |
|---|---|
Operators as separate functions, no restrict |
1150 |
| Operators as separate functions, parameters qualified | 236 |
| Operators inlined into one function | 270 |
A factor of 4.9 from the qualifier, on a machine whose widest vector is 128 bits. The qualified out-of-line build also came out ahead of the fully inlined one, by 13 per cent; why has not been looked into, and nothing should be read into it.
Three caveats belong with those numbers. Each variant was run once, with no repetition and no variance. Per-kernel timings were not collected, so which of the kernels account for how much of the gap is unknown. And the 1150 and the 236 are two revisions of the generator rather than one build compiled twice: the difference between them is the qualifier on the operator parameters, and a variant of the older output with restrict added textually was checked to produce identical logits, but its time was not recorded. Treat the table as three observations.
What was checked is that the fast build is still the right build. The greedy tokens of the qualified version match ONNX Runtime 24 out of 24, and the logits of the first four steps differ from the reference by at most 9.5 × 10-7.
The mechanism is visible in GCC's vectorization report: 12 loops vectorized without the qualifier, 30 with it. The ones that join are the int8 projection and down_proj matrix multiplies, the attention score matmul, and the elementwise float kernels around them — the RMSNorm and RoPE multiplies, the residual add, the dequantization scale, the SiLU multiply. On the matrix multiplies GCC states the obstacle outright:
runtime alias check not supported for outer loop
That message is the whole section in one line. The loop GCC wants to vectorize is the outer one over output columns, computing several at a time so that the weight matrix is read along a contiguous row instead of down a column with a 2,048-byte stride. Versioning is not available for an outer loop — so the escape hatch that made the saxpy case a non-event is gone, and the compiler needs an actual proof that the output does not alias the inputs.
A second model behaves the same way with a smaller effect: Granite 4.0 H 350M decode goes from 219 ms per token to between 172 and 188, with identical tokens.
Why it bites so much harder here is the interesting part. The weights are int8_t and uint8_t; the accumulator is int32_t. Type-based alias analysis, which would cheerfully keep a float array apart from an int array, is of no use whatsoever: character types may alias any object, so the compiler has to assume that writing the int32_t output might modify the int8_t weights it is about to read. Every quantized kernel has this shape. In a float pipeline the type system does part of the work for free; in an int8 pipeline it does none of it, and restrict is the only thing left that can answer the question.
The elementwise float kernels in the same model make the point from the other side. They have no character types in them at all — and type-based analysis is no use there either, because their input and their output are both float. Between a quantized kernel, where the types alias by rule, and a float kernel, where the types are simply the same, there is not much of a gap left for a type to close. That is the shape of nearly every operator in an inference graph.
Which compilers act on it
The keyword's syntax is universally available in C; its effect is not. Each compiler below was handed the same two files — the accumulator above, with and without the qualifier — and a file using the four spellings C permits on a parameter. "Acts on it" means the generated code differed.
| Compiler | Target | restrict |
a[restrict n] |
Acts on it |
|---|---|---|---|---|
| GCC 14.4 | x86-64 | yes | yes | yes |
| Clang 20.1.8 | x86-64 | yes | yes | yes |
| HighTec GCC 4.9.4 | TriCore | yes | yes | yes |
| Synopsys MetaWare V-2023.12 | ARC | yes | yes | yes |
| TASKING VX-toolset 6.3r1 | TriCore | yes | yes | no |
| TASKING SmartCode 10.4r1 | ARC | yes | yes | no |
The two TASKING compilers accepted all four spellings at -O3, in both their default and their --iso=99 mode, and emitted the accumulator loop with the load and the store inside it in both versions — identical instruction sequences. That is conforming behavior, exactly as licensed by the paragraph quoted earlier, and it is why the last column exists. A codebase that sprinkles restrict and never looks at the output has bought the undefined behavior without the optimization.
MSVC was not measured here, and its story is not simply "same keyword". Plain restrict is documented as a C11/C17 feature, available under /std:c11 or /std:c17;[2] the Microsoft extension __restrict works in both C and C++ but is explicitly weaker: When __restrict is used, the compiler won't propagate the no-alias property of a variable, which the documentation then contrasts with the behavior of the C99 C language restrict keyword.[3] Assigning a __restrict pointer to an ordinary one loses the guarantee. There is also a separate __declspec(noalias), which is a statement about a whole function — that it doesn't modify or reference visible global state and touches only the first-level indirections of its pointer parameters[4] — and not a drop-in replacement for the qualifier.
On GCC and Clang the translation is literal enough to watch. Compiling the accumulator to LLVM IR, without and then with the qualifier:
define void @acc(ptr nocapture %0, ptr nocapture readonly %1, i32 %2) define void @acc(ptr noalias nocapture %0, ptr noalias nocapture readonly %1, i32 %2)
The qualifier becomes LLVM's noalias parameter attribute, whose reference documentation says the resemblance is deliberate: Note that this definition of noalias is intentionally similar to the definition of restrict in C99 for function arguments.[5] It also marks the one place the two part company: noalias means something on a return value, where C99's restrict is not meaningful.[5]
The array-parameter syntax, and what C++ loses by not having it
A parameter declared as an array is adjusted to a pointer, and the qualifiers that adjustment carries are the ones written inside the brackets:
- A declaration of a parameter as "array of type" shall be adjusted to "qualified pointer to type", where the type qualifiers (if any) are those specified within the
[and]of the array type derivation.[1]
So all four of these declare the same parameter type, and the standard lists them together as compatible:[1]
void f(double (* restrict a)[5]);
void f(double a[restrict][5]);
void f(double a[restrict 3][5]);
void f(double a[restrict static 3][5]);
The qualifiers and the keyword static may appear in that position only in a function parameter, and then only in the outermost array derivation.[1] It is a syntax that exists for one purpose, and the last line is the one that earns its keep: it holds the shape of the argument, the extent of its leading dimension and the no-aliasing promise in a single declaration, and static adds that every call must supply a non-null pointer to at least three rows.[1] For generated code that is the difference between a signature a reader can check against the model it came from and a row of bare float *. It is why the interface the emmtrix Edge AI Compiler generates looks like
void model(const float a[restrict 2][3][4],
const float b[restrict 2][3][4],
float out[restrict 2][3][4]);
rather than like three pointers and a comment.
None of this is available in C++, and not only because C++ has no restrict. The qualifier itself has a vendor spelling that works everywhere that matters — __restrict on GCC, Clang and MSVC — but the array-parameter form has no equivalent at all. Clang rejects it in terms that leave nothing to interpret:
error: qualifier in array size is a C99 feature, not permitted in C++
The nearest C++ comes is void f(float (*__restrict a)[5]), which keeps the trailing dimensions and the promise and loses both the leading extent and static. Anything that generates C and C++ from one description has to carry that difference.
Why C++ never adopted the qualifier is a long story whose short version is that it was not for want of proposals. Towards restrict-like semantics for C++ was circulated in 2013; a later paper revisiting the objections raised against it lists, among others, that it was unclear whether the qualifier should affect name mangling or overloading, that the semantics of capturing a restricted pointer in a lambda were undefined, and that C's own formulation has insufficient expressiveness.[6] That paper, P0856, proposes a library route instead — a restrict access property on span and mdspan — on the grounds that reconceptualizing non-aliasing semantics as a customization point on a library feature addresses many of the previous ambiguities.[6] Neither route has landed. C++ has no standard restrict, and its library wording still has to speak of an ISO C restrict qualifier when it needs one.[6]
Fortran, where it was never a keyword
The reputation Fortran carries for numerical performance is to a large extent this one rule, granted by default. A Fortran compiler may assume that a dummy argument is not reachable under another name, and the assumption runs both ways: Modifications to a dummy argument cannot affect other names by which that bit of storage may be known.[7] The prohibition falls on the program rather than on the compiler — Fortran famously passes actual arguments by reference, and forbids callers from associating multiple arguments on a call to conflicting storage, and a Fortran compiler is free to assume that a program conforms with this rule when optimizing.[7] Flang's notes trace the rule back to Fortran II and cite subclause 15.5.2.13 of Fortran 2018, "Restrictions on entities associated with dummy arguments", for the current wording.[7]
Which is to say: a Fortran subroutine's arguments are what a C function's restrict parameters are, except that the programmer gets them without asking and cannot switch them off for one argument. Aliasing in Fortran is the exception, and it is opt-in through the type system rather than opt-out: pointers can be pointed only at objects that have the explicit TARGET attribute, or at the targets of other pointers, so a variable that does not have the TARGET attribute is generally safe from aliasing with pointers.[7] The old escape hatches remain — EQUIVALENCE and COMMON give one object several names — and they are what Flang's notes spend most of their length on, which is itself the point: the hard part of aliasing in Fortran is the handful of constructs that break the default, where in C the default is the hard part.
Two details are worth carrying back to C. First, the guarantee attaches to a calling convention and not to a pointer, which is why Flang observes that at the Fortran language level, no language construct has the same useful guarantees against aliasing as dummy arguments have, and why inlining a procedure can lose the information unless the compiler carries metadata along with it.[7] A C compiler inlining a function with restrict parameters has exactly the same problem. Second, INTENT(IN) is not Fortran's const-plus-restrict: it is necessary but not sufficient to guarantee safety from modification.[7] VALUE is, being as safe from aliasing as a local variable of the subprogram is.[7]
Rust, where the promise is in the type
Rust arrives at the same guarantee from the other end. It has no aliasing qualifier because its references carry the property: &mut T must point to memory that is not read or written by any pointer not derived from the reference and that no other reference points to while they are live (with no exceptions).[8] Shared references get the weaker half — &T must point to memory that is not mutated while they are live, barring an UnsafeCell.[8] The Rustonomicon makes the link to the optimization explicit, with a function of the same shape as the accumulator above: the transformation relies on knowing that aliasing doesn't occur, and in Rust we know this input should be impossible because &mut isn't allowed to be aliased.[9]
Where C has a keyword the programmer must justify at every call site, Rust has a borrow checker that justifies it mechanically — and the payoff is the same payoff: rustc hands the property to LLVM as noalias on the parameter, the very attribute the C qualifier produces.
The history of that one attribute is the best calibration available for what the information is worth and what it costs to use. Rust turned mutable noalias on, found that LLVM miscompiled code with it, and turned it off again in 2018; the tracking issue is named for the undoing.[10] The root cause was not in Rust: loop unrolling duplicated the scope metadata that keeps an inlined call's noalias local to that call, so the attribute leaked across the whole function.[10] It stayed off for two and a half years. The pull request that re-enabled it, merged in March 2021 for Rust 1.54, says only that it is going back on as previously known miscompiles have been resolved, and notes that the attribute is still withheld for types that are not Unpin, as a hedge against self-referential structures.[11]
Three years of a major compiler being unable to safely tell LLVM what its own type system already guaranteed is worth remembering. The information restrict conveys is valuable enough to be worth that fight, and sharp enough that the tooling around it took years to be trusted with it.
Using it without lying
Nothing below is novel; all of it follows from the rules above. It is collected here because the failure mode of restrict is not a compile error.
- Qualify at a boundary you own.
restricton the parameters of a leaf kernel is a contract with that kernel's callers, which is a set you can enumerate.restricton a parameter of a widely called utility is a contract with code that has not been written yet. - Write the contract down. The qualifier is the compiler's copy of the promise. The caller's copy has to be a comment or a document, because the compiler will not warn the caller, and the caller cannot see the qualifier from the call site.
constis not a substitute, and not useless either.constalone says nothing about aliasing — a pointer toconstcan perfectly well point at an object somebody else is writing. But the standard's own examples show thatconstandrestricttogether let a compiler reason about a pair of parameters where only one of them is qualified, because this combination ofrestrictandconstmeans that objects referenced usingqcannot be modified.[1]- Read-only inputs may share. Per the
h(100, a, b, b)example, passing one buffer as two qualified inputs is defined, as long as the function writes neither. - Look at the output, once. A diff of two assembly listings takes a minute and separates a compiler that used the promise from one that took it and did nothing — two of the six here.
- Treat the aliasing cases as a test matrix, not an assumption. The in-place call is the one that breaks. A kernel called with the same buffer as input and output is undefined the moment both parameters are qualified, and it is the call a user will try first.
Why a code generator has the easy half of this
Every rule above is a way of coping with the same asymmetry: the qualifier is written in one place and has to be true in all the others. A generator does not have that problem, and it is worth spelling out why, because it is the only setting in which the standard's bargain is not a bargain at all.
The cost clause says the programmer has to examine all the calls. A generator emits all the calls. It is not inspecting a codebase and hoping; it is deciding, for a call it is about to write, from facts it already holds. In the emmtrix ONNX-to-C Code Generator those facts are that every argument is a model input or output, a weight, a state buffer or a temporary, and that the temporaries live at planned offsets in a pool with inclusive live ranges — so the buffers of any one call occupy disjoint byte ranges by construction. The qualifier then goes on per call site rather than per function, and three cases are left out by hand:
- A parameter pair the same call passes the same buffer to keeps its plain declaration. An in-place state update, where past and present are one buffer, is the ordinary example, and so is
Add(x, x). - A call that passes anything but a plain buffer name — a pointer expression — gets no qualifier at all, because the reasoning above was about buffers.
- Deduplication happens after that decision, not before. Two calls with different aliasing produce different text and stay two functions: the layers that update in place get a variant without the qualifier on the aliased pair, the rest get one with it everywhere.
The first of those is the place where this article's own rules meet a compiler's opinion. By the standard, a pair of read-only parameters sharing a buffer is fine — that is exactly h(100, a, b, b), defined because h writes neither. GCC's -Wrestrict warns about it anyway. The generator withholds the qualifier there rather than argue, which is the right call for output that has to compile quietly in somebody else's build, and a reminder that "defined behavior" and "no diagnostics" are not the same target.
What none of this buys is a free pass at the boundary. The generated model() entry point is qualified too, and there the generator is in the same position as any other author of a library function: it cannot see its callers. So that one is a documented precondition — do not hand two qualified parameters overlapping storage — with --no-restrict-arrays to turn the whole thing off for a caller who cannot promise it.
For hand-written code there is no equivalent, and the keyword stays what it has always been: a promise, checked by nobody, worth a factor of five when it is true and worth a long afternoon when it is not.
See also
- emmtrix ONNX-to-C Code Generator
- emmtrix Edge AI Compiler
- emmtrix Code Vectorizer
- The alias attribute
- Loop Interchange Transformation
- Automatic C to Rust Translation
References
- ↑ 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 ISO/IEC 9899:2024 (en), N3220 working draft — subclause 6.7.4.1 paragraph 9 (the intent of the qualifier), 6.7.4.2 (formal definition, the examples, and the freedom to ignore), 6.7.7.3 paragraph 1 and 6.7.7.4 paragraph 6 (array parameter declarators) — open-std.org — https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf
- ↑ /std (Specify Language Standard Version) — learn.microsoft.com — https://learn.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version
- ↑ __restrict — learn.microsoft.com — https://learn.microsoft.com/en-us/cpp/cpp/extension-restrict
- ↑ noalias — learn.microsoft.com — https://learn.microsoft.com/en-us/cpp/cpp/noalias
- ↑ 5.0 5.1 LLVM Language Reference Manual, parameter attributes — llvm.org — https://llvm.org/docs/LangRef.html
- ↑ 6.0 6.1 6.2 P0856R0, Restrict Access Property for mdspan and span, D. S. Hollman, H. C. Edwards and C. Trott, 12 February 2018 — open-std.org — https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0856r0.html
- ↑ 7.0 7.1 7.2 7.3 7.4 7.5 7.6 Aliasing in Fortran — flang.llvm.org — https://flang.llvm.org/docs/Aliasing.html
- ↑ 8.0 8.1 The Rust Reference, Behavior considered undefined — doc.rust-lang.org — https://doc.rust-lang.org/reference/behavior-considered-undefined.html
- ↑ The Rustonomicon, Aliasing — doc.rust-lang.org — https://doc.rust-lang.org/nomicon/aliasing.html
- ↑ 10.0 10.1 rust-lang/rust issue 54878, Enable noalias annotations — github.com — https://github.com/rust-lang/rust/issues/54878
- ↑ rust-lang/rust pull request 82834, Enable mutable noalias for LLVM >= 12 — github.com — https://github.com/rust-lang/rust/pull/82834