Restrict: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Recupero di 1 fonte/i e segnalazione di 0 link interrotto/i. #IABot (v2.0beta14) |
m Bot: specificità dei wikilink |
||
Riga 1:
{{titolo minuscolo}}
La [[parola chiave (informatica)|parola chiave]] <code>restrict</code> è usata nel
Tale informazione consente al compilatore di generare codice meglio ottimizzato: in principio, l'aggiunta di <code>restrict</code> allo standard C consente di colmare il divario rispetto a [[Fortran]] in applicazioni di [[calcolo numerico]].<ref name=drepper>{{Cita web|url=https://lwn.net/Articles/255364/|titolo=Memory part 5: What programmers can do|opera=What every programmer should know about memory|autore=[[Ulrich Drepper]]|data=23 ottobre 2007|editore=[[lwn.net]]|citazione="...The default aliasing rules of the C and C++ languages do not help the compiler making these decisions (unless restrict is used, all pointer accesses are potential sources of aliasing). This is why Fortran is still a preferred language for numeric programming: it makes writing fast code easier. (In theory the restrict keyword introduced into the C language in the 1999 revision should solve the problem. Compilers have not caught up yet, though. The reason is mainly that too much incorrect code exists which would mislead the compiler and cause it to generate incorrect object code.)"}}</ref>
|