--(Peter Shenkin) <[log in to unmask]> --
> Yes and no. Under UNIX (SGI and AIX), I definitely do *not* see
> slow compilation of individual files that USE even a large number
> of MODULES, directly or indirectly. Are you quite sure that it
> is this that you are seeing, and not simply the recompilation
> of many routines when a low-level MODULE changes? (You do
> mention this separately, but are you quite sure the latter
> doesn't account for all your observations?)
The last 5 files in the compilation takes close to 20 minutes. A
couple of these files are large (~300 lines), others much smaller.
Recently, I added a wrapper module for all the major objects (about 5)
in my program. Basically I do something like this
MODULE wrapper
USE type1
USE type2
SUBROUTINE save
SELECT CASE(obj_type)
CASE (TYPE1)
CALL type1_save(type1)
CASE(TYPE2)
CALL type2_save(type2)
...
I expanded operations from 5 operations like "save" to about 10
operations and this problem hit me. I spent entire night before I got
rid of all the compilation/link errors and obtained one successful exe
file. Even now, When I comment the 5 new operations, the compilation
speed increases dramatically.
If nothing works, I might use conditional compilation directives to
temperorily eliminate the code that is tested and have only the code
that I am working on.
> Finally, it might be that the DEC compiler is trying to be
> very smart indeed. For example, it might be trying to do
> fancy interprocedural optimizations or inlining, by looking
> not just at the .mod files but also at the source or object
> files. This is something else that an IDE should make possible.
>
This is not the case since I am using Debug mode. If this is case, I
definitely would not mind waiting 1/2 hr to get optimized exe.
--
Hari Sundararaghavan, | Email: [log in to unmask]
Ph. D. Student, Ocean Engineering, | [log in to unmask]
University of Hawaii at Manoa. | Ph:(808)-956-8198 FAX:(808)-956-3498
--------------------------------------------------------------------------
Visit my home page at <URL:http://oceaneng.eng.hawaii.edu/~sharik>
--------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|