Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Slow Linking under Linux
icon5.gif  Slow Linking under Linux [message #5196] Sun, 10 September 2006 12:41 Go to next message
residue is currently offline  residue
Messages: 9
Registered: September 2006
Promising Member
Hi,

i'm running U++ (TheIDE) under Fedora Core 5. Linking the programm is very slow.

compile-time: 2699 msecs
linking-time: 0.59.44

is there a way to speedup linking?

gcc: 4.1.1 20060525 (Red Hat 4.1.1-1)
ld: GNU ld version 2.16.91.0.6 20060212

with best regards
peter

Re: Slow Linking under Linux [message #5197 is a reply to message #5196] Sun, 10 September 2006 14:08 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Well, while linking in linux is slower, one minute is quite a lot.

What are ˙ou linking and what is the hardware?

Possible solution is to compile in debug mode as SO (packages are compiled into shared libraries). It is however possible that in current dev version shared mode is brokem.

Mirek
Re: Slow Linking under Linux [message #5213 is a reply to message #5197] Sun, 10 September 2006 20:27 Go to previous messageGo to next message
residue is currently offline  residue
Messages: 9
Registered: September 2006
Promising Member
I've tried SHARED Mode, but it is not really faster. It saved 6 seconds.

I'm using U++ 605 on a Intel(R) Pentium(R) 4 CPU 2.60GHz with a SATA Harddisk.

with best regards
peter
Re: Slow Linking under Linux [message #5218 is a reply to message #5213] Sun, 10 September 2006 21:02 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
That is quite strange. I will checks my link times ASAP and report.

BTW, it is "SO" ("All shared") mode, not "SHARED" ("Use shared libs").

If you are building with debug info, I think you should be able to reduce link times by deactivating debug info for individual packages (again, in Output mode).

Another thing to check is whether your SATA drive works at full speed (possible driver problem?).

Mirek
Re: Slow Linking under Linux [message #5219 is a reply to message #5218] Sun, 10 September 2006 21:57 Go to previous messageGo to next message
residue is currently offline  residue
Messages: 9
Registered: September 2006
Promising Member
I did the test with "SO" ("All shared").

Here some performance from the SATA drive.

writing:
100240000 Bytes (100 MB) kopiert, 0,506279 Sekunden, 198 MB/s
1002400000 Bytes (1,0 GB) kopiert, 29,8953 Sekunden, 33,5 MB/s

reading:
Timing buffered disk reads: 150 MB in 3.07 seconds = 48.94 MB/sec


I don't think there is a problem on the system. Other projects (non U++) linking within some seconds (less then 10 secs).

with best regards
peter
Re: Slow Linking under Linux [message #5252 is a reply to message #5219] Mon, 11 September 2006 14:08 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Well, I have just checked with my UBuntu; full rebuild of examples/UWord:

[code]
Linking...
/home/cxl/out/GCC32.Debug_full.Gui.Shared/UWord (12058847 B) linked in (0:02.42)

OK. (1:04.48)
[/quote]

I consider that quite acceptable...

gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
GNU ld version 2.16.91 20060118 Debian GNU/Linux

Machine is AMD64@2.4Ghz, 1GB RAM

Mirek
icon14.gif  Re: Slow Linking under Linux [message #5259 is a reply to message #5252] Mon, 11 September 2006 22:17 Go to previous messageGo to next message
residue is currently offline  residue
Messages: 9
Registered: September 2006
Promising Member
Hi,

OK, it seems to be a bug within ld and debugging symbols.

http://www.mail-archive.com/bug-binutils@gnu.org/msg02052.ht ml


thanks for your support.


with best regards
peter
Re: Slow Linking under Linux [message #5260 is a reply to message #5259] Mon, 11 September 2006 23:30 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Great to know that it is bug of somebody else this time Wink

Mirek
Re: Slow Linking under Linux [message #6594 is a reply to message #5260] Sun, 19 November 2006 23:57 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Is there any solution to this?

I have made mistake upgrading to latest ubuntu and at that moment, I got a new ld with it... and slow linking.

Well, I have found that you can speedup it significantly by avoiding debug info, but that is not solution.

Mirek
Re: Slow Linking under Linux [message #6595 is a reply to message #6594] Mon, 20 November 2006 00:30 Go to previous message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
By bugzilla, it is resolved in Linux binutils 2.17.50.0.5.
http://sourceware.org/bugzilla/show_bug.cgi?id=3111
Previous Topic: UPP_MAIN__ is not exported to env in linux
Next Topic: what is "paralellization 100%" ?
Goto Forum:
  


Current Time: Wed May 15 08:06:20 CEST 2024

Total time taken to generate the page: 0.03618 seconds