- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Looking for efficient compilation process
Operating System - Linux
1753436
Members
4692
Online
108794
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2002 02:32 AM
тАО09-04-2002 02:32 AM
Looking for efficient compilation process
I'm curently trying to optimize the way we produce executables on Unix. Some OS are really fast during the link phase, some other really aren't, especialy Linux (and HP-UX 10.20, but his is another story...)
For instance, on AIX 4.3.3, our whole application takes approximately 8 hours to compile entirely. On Solaris, it takes 11 hours (quite same configuration than AIX). On Linux (Redhat 7.1), it takes nearly 48 hours, even though this OS is ported on our (supposed) best server (PIII 1.1 Ghz).
The compilations are static, using archive files (libXXX.a, lots of), and gcc 2.96, with no particular options. Are there some options, or way of compiling (except shared libraries, due to management and history of our product) that may speed up the link (Producing just a .o file is fast on our Linux machine, it's ok)?
Compared with AIX, we've set up prelink (prelink of the libXXX.a into libxxx.o), which divided the compilation time by 16. I've tried the same on Linux, but got lots of undefined symbols, for the linker tried to link with every .o file in the "prelink" archive file (libXXX.o).
Thanks for any help.
Xavier
For instance, on AIX 4.3.3, our whole application takes approximately 8 hours to compile entirely. On Solaris, it takes 11 hours (quite same configuration than AIX). On Linux (Redhat 7.1), it takes nearly 48 hours, even though this OS is ported on our (supposed) best server (PIII 1.1 Ghz).
The compilations are static, using archive files (libXXX.a, lots of), and gcc 2.96, with no particular options. Are there some options, or way of compiling (except shared libraries, due to management and history of our product) that may speed up the link (Producing just a .o file is fast on our Linux machine, it's ok)?
Compared with AIX, we've set up prelink (prelink of the libXXX.a into libxxx.o), which divided the compilation time by 16. I've tried the same on Linux, but got lots of undefined symbols, for the linker tried to link with every .o file in the "prelink" archive file (libXXX.o).
Thanks for any help.
Xavier
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2002 02:06 PM
тАО09-04-2002 02:06 PM
Re: Looking for efficient compilation process
Hello,
I have heard that gcc is neither the fastest, nor the most efficient compiler on Intel architecture.
If you want performance, try the compiler provided by Intel (I don't remember the URL).
Another tip : if you are using GNU Make on a multi-processor machine, you can use "-j" option to parallelize compilation amoung CPUs.
On a 4-way machine :
make -j 4 ...
Good luck.
Kodjo
I have heard that gcc is neither the fastest, nor the most efficient compiler on Intel architecture.
If you want performance, try the compiler provided by Intel (I don't remember the URL).
Another tip : if you are using GNU Make on a multi-processor machine, you can use "-j" option to parallelize compilation amoung CPUs.
On a 4-way machine :
make -j 4 ...
Good luck.
Kodjo
Learn and explain...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2002 11:54 PM
тАО09-04-2002 11:54 PM
Re: Looking for efficient compilation process
Hello, Kodjo,
Thanks for the information, i'll investigate on Intel Side for any other compiler.
But my problem seems to be dependent on ld, not on gcc. Producing .o from .c files is rather fast enough on our Linux platform (in fact, it's even the fastest, compared with the other systems i'm using...)
And I don't use make. I know, I should, but we use big house-made scripts which were written years ago, when dinosaurs were leading the planet... ;-)
First of all, we compile .c file to get .o file, and then we launch something like that:
gcc -o myprog file1.o -llib1 -llib2 ... -lm
It works fine, but very slowly..
Thanks for the information, i'll investigate on Intel Side for any other compiler.
But my problem seems to be dependent on ld, not on gcc. Producing .o from .c files is rather fast enough on our Linux platform (in fact, it's even the fastest, compared with the other systems i'm using...)
And I don't use make. I know, I should, but we use big house-made scripts which were written years ago, when dinosaurs were leading the planet... ;-)
First of all, we compile .c file to get .o file, and then we launch something like that:
gcc -o myprog file1.o -llib1 -llib2 ... -lm
It works fine, but very slowly..
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP