Hi Joost,
On Fri, Oct 30, 2009 at 4:41 PM, VandeVondele Joost <vond...@pci.uzh.ch> wrote:
> Hi Li,
>
> I've attached 'Fortran-aware' delta. I tries to guess cut a Fortran file in
> more reasonable places (e.g. between subroutine boundaries, after enddos).
> It works reasonably well, but is a hack.

I think another way might be doing like what topformflat did in c/c++
code. Move these lines between {do enddo} or {subroutine} in one line
without breaking into delta. But anyway, your idea is good too and it has
been accomplished!

>
> Especially with Fortran90 and modules, iterated delta runs can help a lot
> (i.e. first runs removes 'public/use' module statements, next round cleans
> more efficiently). It also features 'randomized' bisection. That helps to
> reduce towards a minimized testcase when iterating delta runs.
>

This really helps, I'll try your hacked delta for fortran code.

> I usually call it with the following script:
>
>> cat do_many
>
> for i in `seq 1 30`
> do
>  ~/delta-2006.08.03/delta -suffix=.f90 -test=delta.script
> -cp_minimal=small.f90  bug.f90
>  cp small.f90 small.f90.$i
>  cp small.f90 bug.f90
> done
>

Thanks,
Li

Reply via email to