4 This variant of the sieve of Eratosthenes was, following its 1981 publication in Byte Magazine,
5 a popular benchmark for array acces throughout the 1980s and 1990s.
10 #if !defined (__SDCC_mcs51) && !defined (__SDCC_sm83) && !defined (__SDCC_pdk13) && !defined (__SDCC_pdk14) && !defined (__SDCC_pdk15) && !defined (__SDCC_pdk16) && !defined (__SDCC_stm8) && !defined (__SDCC_f8) // Lack of data memory
18 #if !defined (__SDCC_mcs51) && !defined (__SDCC_sm83) && !defined (__SDCC_pdk13) && !defined (__SDCC_pdk14) && !defined (__SDCC_pdk15) && !defined (__SDCC_pdk16) && !defined (__SDCC_stm8) && !defined (__SDCC_f8) // Lack of data memory
19 int i
, prime
, k
, count
, iter
;
20 for (iter
= 1; iter
<= 10; iter
++) {
22 for (i
= 0; i
<= size
; i
++)
24 for (i
= 0; i
<= size
; i
++) {
36 ASSERT (count
== 1899);