# test structure access - is it cached in registers automatically? # yes - if you use -O2 HOORAY! use stdio.h use stdlib.h #struct g # char c struct foo int i int j int k go(foo *f) int s = f->i + f->j int t = f->i * f->j printf("%d %d\n", s, t) int main(int argc, char *argv[]) foo f f.i = atoi(argv[1]) f.j = atoi(argv[2]) go(&f) return 0