0
我正在準備一個編譯器檢查,我發現在過去的論文以下兩個問題,我不知道該怎麼回答:編譯考試說明
1. Array bounds checking requires code to check each array subscript to ensure it
falls within the array's declared range. How could induction variable analysis be
used to avoid repeated bounds checks in "for" loops.
2. Give a short example in Java in which one array address calculation is loop-
invariant and another array address is an induction variable.
我知道什麼是不變的,並歸納變量手段,關於解釋這兩個解決方案,我並不知道我期望什麼。
如果有人幫我解釋,我將不勝感激。
謝謝!