compiler test 中文意思是什麼
compiler test
解釋
編譯程序檢驗-
You want to measure how fast operation x is, so you don t want to do anything else besides x. but often, the result is a do - nothing benchmark, which the compiler can optimize away partially or completely without you realizing it, making the test run faster than expected
您想要度量操作x有多快,所以除了x外您不想做其他任何事。但是,這樣做得到的往往是一個不做任何事的基準,在您不知情的情況下,編譯器可能將此操作部分地或者完全地優化掉,使得測試運行起來比預期更快。 -
Listing 1 shows the for - each loop for iterating over an array and a collection ; in each case, the loop variable test condition and update expression is generated by the compiler, as if the programmer had coded it the usual way
清單1顯示了基於數組和集合的迭代的for - each循環;任何一種情況下,循環變量測試條件和更新表達式由編譯器生成,就好像編程人員把它編碼成通常的方法一樣。
分享友人