"Y.K. ZHOU" wrote:
>
> My questions may seem naive to some gurus, but hope
> some of you can show me the reasons.
> Thanks in advance.
>
> ---------
> I observed in a:
> Generic_105181-21 sun4u sparc SUNW,Ultra-2
> workstation, module subroutine is compiled into
> .mod file, while in a:
> Generic_105181-21 sun4u sparc SUNW,Ultra-60
> workstation, module is compiled into .M file
>
> So what's the difference between .mod and .M ?
> What determines the file extension, is it the
> hardware?
> is there anything to do with the compiler?
>
The file extension is compiler-dependant. The standard doesn't say anything about it. It even doesn't say that there should be a separate file for module information.
> -------
> One weird thing I encountered is:
> I compiled same programs in two workstations,
> for the one with .M extension, my programs work
> well and the results are right,
> but for the one with .mod extension, I got SEGV,
> the dbx info read like:
>
>
>
> .....
>
> -------
>
> How to interpretate and exploit the following info:
> =>[1] dgeesx_(0x679f38, 0x4335c, 0x0, 0x1, 0x67a8e0,
> 0x1), at 0x6dc45818 ??
>
> Here dgeesx is a driver routine (in LAPACK)
> which can solve standard and generalized
> nonsymetric eigenvalue problems.
>
> I am quite sure the way I called dgeesx was correct,
> (I assigned enough spaces for the working arrays of
> dgeesx), the problem is I can't trace into "dgeesx"
> since it comes from the the sun performance libary
> (link option: "-xlic_lib=sunperf")
>
> Does anyone have some insight what could possibly
> be the problem? Thanks again.
>
To check if the dgeesx routine of sun is buggy or not, you should get the fortran source of it (on netlib for example), compile it and call it instead of the sun routine.
Regards,
Pierre
--
+-----------------------------------+----------------------------+
| Pierre Hugonnet | mail....CGG |
| | 1, rue Leon Migaux |
| R&D Data Processing | 91341 MASSY cedex |
| | FRANCE |
| COMPAGNIE GENERALE DE GEOPHYSIQUE | phone...(33) 164 47 45 59 |
| Paris Processing Centre | fax.....(33) 164 47 32 49 |
| http://www.cgg.com | [log in to unmask] |
+-----------------------------------+----------------------------+
My opinions are not necessarily those of CGG
--------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|