PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Seeing source code

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



Joined: 30 Jun 2011
Posts: 103

PostPosted: Wed Sep 18, 2013 8:00 am    Post subject: Seeing source code Reply with quote

What is/are the command(s) if one wants to see the changed source before it is compiled? By that I mean if one asks for vectorization with the command line
-Mvect and pgcc vectorizes the code before compiling, but now I want to see the code. There must be acommand that allows the programmer to see this.

Any help appreciated.

Respectfully,

THX 1138
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Sep 18, 2013 8:54 am    Post subject: Reply with quote

Hi THX1138,

The compiler targets assembly code which you can keep via the flag "-Mkeepasm". Though, the compiler does not rewrite the code back in the original language after optimization.

- 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