Hi, > [snip] > I plan to compile the C code as well as a FORTRAN translation today and > compare them. I will also generate assembly using the C and FORTRAN codes > and see if I can figure out what to do to write assembly code that will > work both places. > sub1.f: ...       do i=1 ,n          t2 = i*dt          t2 = t2*t2          ts = sqrt( rs2*s(i) + t2 )          tg = sqrt( rg2*s(i) + t2 )          j(i) = ts + tg       end do ... Looking at the structure of your code I think it *should* be possible to get some acceleration exploiting regulatiry of sqrt argument: some_value*constant_for_this_cycle+delta^2*(i++)^2 for i=1,N I'm thinking about division of one argument over other. Can you expect any relation of general nature like some_value*constant_for_this_cycle< > Reginald Beardsley > > ------------------------------------------------------------------------ > Exploration Software Consultants Inc. > > Voice: 972-379-0557 email: rhb@acm.org > Fax: 972-379-0558 > ------------------------------------------------------------------------ Regards, Andrei