Teledyne-lecroy SAS_SATA Protocol Suite Verification Script Engine Manuale Utente Pagina 96

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 97
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 95
96
Appendix E Limitation of For and While Loops
To prevent infinite loops in improperly written script code there is a maximum limitation of 40,000 iterations in the
case of “For” and “While” loops.
Use the following nested loop get around this limitation:
for( i = 0; i <= 40000; i++ )
{
for( j = 0; j <= 40000; j++ )
{
k = i * 40000 + j; # k will iterate from 0 to 1600040000 thus overriding 40000
limitation
... # Do something with k
}
Vedere la pagina 95
1 2 ... 91 92 93 94 95 96 97

Commenti su questo manuale

Nessun commento