Csound Csound-dev Csound-tekno Search About

possible compiler bug in VC++5

Date1997-07-22 17:08
FromRichard Dobson
Subjectpossible compiler bug in VC++5
Has anyone hit problems compiling Csound under Visual C++ V.5?

On compiling the file lptrkfns.c I hit an Internal Compiler Error, which
seems to relate to the floating-point optimiser. A get-around is to go
to the Code-Generation part of the Setting Dialogs, and use Custom settings
rather than the blanket 'Optimize for Speed'.

Microsoft claim a 35% increase in f/p performance under the new compiler, which
is pretty impressive, if it is safe.

More insidiously, when compiling the standard CARL implementation of the 
Phase Vocoder (our CDP port of the original Fortran code to C), the 
compilation completed normally, but pvoc generated an obviously incorrect
output. Changing the Settings as described above restored pvoc to correct
operation.

This is obviously a worry, as it means that a Release compile cannot be
guaranteed to be correct. I have never had a problem with VC++ V.4.

Richard Dobson