Xinan Tang wrote:
>
> Hi
>
> On Wed, 7 Jun 2000, Chandrasekhar Murthy wrote:
>
> > One thing to bear in mind is that we do not guarantee either the
> > correctness or whether the generated C or Fortran program
> > (depending on whether you use whirl2c or whirl2f) can be
> > compiled successfully.
> >
>
> Please elaborate what you meant.
>
> As far as I know, most of compilers have IR-2-C dump and C code
> generated is guaranteed to be compiled successfully.
>
> As for the correctness of code generated, of course it depends
> the optimization passes that one throws upon.
>
> Thanks
>
> --Tang
whirl2c and whirl2f were both meant as tools to help the developers look
at the transformations done during the optimization phases.
Some of the reasons why you might not be able to compile are as follows
1. We have made changes to our IR (WHIRL) which might not be fully
supported in whirl2c/whirl2f
2. Certain features such as nested functions, attribute
specifications
might not be handled correctly.
3. Using whirl2c on an intermediate file generated by F90 and other
similar scenarios.
Murthy
|