PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Large Executables with C++

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Puru



Joined: 01 Oct 2004
Posts: 1

PostPosted: Mon Oct 25, 2004 5:07 pm    Post subject: Large Executables with C++ Reply with quote

I am getting pretty large executables using the c++ compilers. For a 13kb code the executables is 100Mb.

For testing i compiled the Hello world program here are the results

Source code : 82 bytes
GNU C++ Executable : 13935 bytes
pgCC Executable : 757699 bytes

Any suggestions why this might be happening? is it normal ?
It is a linux Redhat 7.3 system.

Hello World Code
Code:

#include <iostream.h>
int main()
{
    cout << "Hello World!\n";
    return 0;
}
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Tue Oct 26, 2004 9:31 am    Post subject: Reply with quote

This is an unfortunate side effect of the implementation of the STL and is a known issue. We are in the process of revising how our STL is done so this should get better in future releases.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group