15 for(i
=0;i
<TAB_SIZE
;i
++) {
25 for(i
=0;i
<TAB_SIZE
+ 1;i
++) {
31 /* actually, profiling test */
38 for(it
=0;it
<NB_ITS
;it
++) {
39 for(i
=0;i
<TAB_SIZE
;i
++) {
52 tab4
= malloc(20 * sizeof(int));
67 tab4
= malloc(20 * sizeof(int));
77 /* XXX: currently: bug */
83 tab4
= malloc(20 * sizeof(int));
98 for(i
=0;i
<TAB_SIZE
+ 1;i
++) {
101 printf("i=%d %x\n", i
, p
);
138 memcpy(tab
, tab1
, 10);
139 memmove(tab
, tab1
, 10);
162 int (*table_test
[])(void) = {
178 int main(int argc
, char **argv
)
184 printf("usage: boundtest n\n"
185 "test TCC bound checking system\n"
192 index
= atoi(argv
[1]);
193 /* well, we also use bounds on this ! */
194 ftest
= table_test
[index
];
201 * without bound 0.77 s