473,398 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

a possible performance bug in VC 7.1 compiler

To Carl (or other folks from MSFT):

When compiling LAPACK (a numerical library) on VC 7.1 I
encountered a file that took forever to compile under the
Release mode. The file has under 2,000 lines and it takes
over 8 minutes to compile that file alone on my super new
dual Xeon 4GB RAM machine. Each of the other files in this
library takes under a second to compile and some of them
are much larger.

I realize that it is the content of the source file that
mostly influences the time needed for compilation. Still,
it seems to me that something is not right.

If you have LAPACK library, the name of the file is
clarfx.c. If you don't I will be happy to email it to you.

Bumbrlik
Nov 16 '05 #1
4 1075
Bumbrlik wrote:
To Carl (or other folks from MSFT):
I'm not from MSFT - just an MVP.

When compiling LAPACK (a numerical library) on VC 7.1 I
encountered a file that took forever to compile under the
Release mode. The file has under 2,000 lines and it takes
over 8 minutes to compile that file alone on my super new
dual Xeon 4GB RAM machine. Each of the other files in this
library takes under a second to compile and some of them
are much larger.

I realize that it is the content of the source file that
mostly influences the time needed for compilation. Still,
it seems to me that something is not right.

If you have LAPACK library, the name of the file is
clarfx.c. If you don't I will be happy to email it to you.


That's a long time. Other than being aware that LAPACK is a numerical
library, I know nothing about it. Is it C or C++? I ask because the only
time I've seen compile times like that for VC is with C++ code that makes
heavy use of templates (e.g. Spirit-based parsers).

-cd
Nov 16 '05 #2
The code is pure C - just some for cycles and a few goto
statements.

Bumbrlik

PS: Forgive my ignorance - what is MVP ?

-----Original Message-----
Bumbrlik wrote:
To Carl (or other folks from MSFT):
I'm not from MSFT - just an MVP.

When compiling LAPACK (a numerical library) on VC 7.1 I
encountered a file that took forever to compile under the Release mode. The file has under 2,000 lines and it takes over 8 minutes to compile that file alone on my super new dual Xeon 4GB RAM machine. Each of the other files in this library takes under a second to compile and some of them
are much larger.

I realize that it is the content of the source file that
mostly influences the time needed for compilation. Still, it seems to me that something is not right.

If you have LAPACK library, the name of the file is
clarfx.c. If you don't I will be happy to email it to

you.
That's a long time. Other than being aware that LAPACK is a numericallibrary, I know nothing about it. Is it C or C++? I ask because the onlytime I've seen compile times like that for VC is with C++ code that makesheavy use of templates (e.g. Spirit-based parsers).

-cd
.

Nov 16 '05 #3
Bumbrlik wrote:
The code is pure C - just some for cycles and a few goto
statements.
That's very odd - pure C usually compiles lightning fast. I'll make sure
someone from the VC team sees your original posting - there's got to be
something odd about that file to make it go so slowly.

Bumbrlik

PS: Forgive my ignorance - what is MVP ?


See http://mvp.support.microsoft.com

-cd
Nov 16 '05 #4

"Trevor Misfeldt" <mi******@centerspace.net> skrev i meddelandet
news:32**************************@posting.google.c om...
We see it, too, when compiling CLAPACK. Most of those C files take on the order of 0.01 seconds to compile but clarfx.c takes around 100
seconds. I don't see anything unusual in that particular file. I'm
running VC 7.0 on a P4.
I see *some* unusual things in that file - that it is one single
function running for 2000 lines of code. It also has 8 parameters and
about 60 local variables. And lots of gotos. Doing some kind of data
flow analysis on this *would* take a lot of time.

This is not the kind of code a C++ compiler is tuned for.
Bo Persson
bo**@telia.com


- Trevor

--
Trevor Misfeldt
CEO, CenterSpace Software
http://www.centerspace.net

"Carl Daniel [VC++ MVP]" <cp******@nospam.mvps.org> wrote in message

news:<O5**************@tk2msftngp13.phx.gbl>...
Bumbrlik wrote:
The code is pure C - just some for cycles and a few goto
statements.


That's very odd - pure C usually compiles lightning fast. I'll make sure someone from the VC team sees your original posting - there's got to be something odd about that file to make it go so slowly.

Bumbrlik

PS: Forgive my ignorance - what is MVP ?


See http://mvp.support.microsoft.com

-cd


Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Michael Bader | last post by:
Hi, I'm currently working on a matrix multiplication code (matrix times matrix), and have come along some interesting/confusing results concerning the running time of the (apparently) same...
4
by: zzfreddybb | last post by:
We are using HP aCC compiler on a HP Itanium box ( 11.23) We are having some severe performance hits using exception handling ( try/catch ) scenarios. The online aCC documentation says: HP...
2
by: Kenneth Massey | last post by:
I was noticing significantly worse performance in some of my C++ codes compiled with gcc 3.4.3 as compared to gcc 3.3.4. I have boiled it down into one relatively short code that illustrates. It...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
29
by: Olaf Baeyens | last post by:
Because of historical reasons, I have both C# and C++ managed/unmanaged code mixed together in my class library. But I prefer to port code to C# since it compiles faster and the syntax is much...
24
by: Arne Demmers | last post by:
Hi, As a project of mine I have to do some C programming, which in fact isn't the real problem. The problem it self is that I will have to write some code that is as minimal as possible, and as...
29
by: Tuvas | last post by:
I have a function in a program that works something like this. def load_pic_data(width,heigth,inpdat, filt=TRUE): data='' total=0 tnum=0 size=100 for y in range(0,heigth): row='' for x in...
37
by: jortizclaver | last post by:
Hi, I'm about to develop a new framework for my corporative applications and my first decision point is what kind of strings to use: std::string or classical C char*. Performance in my system...
71
by: Jack | last post by:
I understand that the standard Python distribution is considered the C-Python. Howerver, the current C-Python is really a combination of C and Python implementation. There are about 2000 Python...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.