configure pick other build options than makefile.vc on win
Closed / Fixed1091967fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-12-28 00:48:57
I have build tcl8.4.9 on the same w2k box with the same VC++ 6.0 compiler, one time with makefile.vc, the other time with VC++ 6.0/msys/configure. With both ways, build/install was painless and worked very well. Though, the created tclsh84 binaries behave slightly different. The with msys/configure created one obviously has a lower recursion limit. stack.test and the 2 test out of tclbench as of 2004-12-27 (509 STR reverse recursive, 400 c, 510 STR reverse recursive, 400 ue) fail therefor. The with msys/configure created tclsh84 is notable slower, than the makefile.vc created one. The overall runtime for a runbench.tcl run was msys/configure tclsh84: 10:34 min makefile.vc tclsh84: 13:28 min The explanation for this is probably. that the msys/configure way of building picks other compiling/linking options, than the one, makefile.vc use. After I've hand-edited the optimization options after the configure run, both exe's run equal fast according to tclbench and the recursion limit problem was gone.
pointsmanplain2004-12-28 07:53:21
Logged In: YES user_id=13222 Err, the timings must be read as: msys/configure tclsh84: 13:28 min makefile.vc tclsh84: 10:34 min Or in words: the makefile.vc created tclsh84 was notable faster. Sorry.
hobbs Ticket [1091967fff]: 2 changes
[History diff]2004-12-28 08:01:42
hobbsplain2004-12-28 08:01:43
Logged In: YES user_id=72656 Need to use -O2 or even -Ox for the cl compiler options, and bump the win-gcc to -O2 from -O.
pointsmanplain2004-12-28 09:25:54
Logged In: YES user_id=13222 To be precise: After vcvars32 set CC=cl sh configure I edited the Makefile and changed CFLAGS_OPTIMIZE from -nologo -Oti -Gs -GD -MD to -nologo -O2 -Op -Gs -MD (following that, what I found in makefile.vc for cdebug. Haven't investigated, which option change exactly made the difference. After that change, the VC 6.0/msys/configure build run as fast as the VC 6.0/makefile.vc build, according to tclbend. In general, I seems to make sense, that using configure and using makefile.vc end in the same compiler/linker option for the VC compiler.
hobbsplain2004-12-30 07:32:29
Logged In: YES user_id=72656 Applied fixes to TEA for better default -O levels.
hobbsplain2004-12-30 08:48:54
Logged In: YES user_id=72656 Applied for post-8.4.9 and 8.5a3.
Log in (anonymous is fine) to add a comment.