PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

-Hx compiler option
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
DavidLambert



Joined: 26 Jun 2013
Posts: 5

PostPosted: Tue Jul 16, 2013 1:01 pm    Post subject: -Hx compiler option Reply with quote

-Hx,123,8 -Hx,123,0x40000 -Hx,0,0x40000000 -Mx,0,0x40000000 -Hx,0,0x20000000

I'm joining a project using pgfortran with visual studio 2012 on windows 7. What, please, do these command line options do? Thank you, David Lambert.
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Jul 16, 2013 4:56 pm    Post subject: Reply with quote

Hi David,

These are internal flags to the Fortran compilers. Users should not use them directly.

"-Hx,0,0x40000000 -Mx,0,0x40000000" tells the front and back end compiler to use Visual Studio error formatting.

"-Hx,0,0x20000000" suppresses some extraneous warning messages.

"-Hx,123,8" generates makefile dependency information used to create dependency list automatically for your project.

"-Hx,123,0x40000" skips a check for "__STDC__".

- Mat
Back to top
View user's profile
DavidLambert



Joined: 26 Jun 2013
Posts: 5

PostPosted: Wed Jul 17, 2013 8:01 am    Post subject: Reply with quote

I will probably use the makefile dependency output.

Thank you.
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Jul 17, 2013 9:13 am    Post subject: Reply with quote

Quote:
I will probably use the makefile dependency output.
The named flag for this is "-MD" which then gets internally set as -Hx,123,8. Please use the named flags since internal flags can change.

- Mat
Back to top
View user's profile
DavidLambert



Joined: 26 Jun 2013
Posts: 5

PostPosted: Tue Sep 17, 2013 7:32 am    Post subject: The -MD option is intended for the c languages. Reply with quote

To me, MS deliberately obscures their systems, and I certainly haven't learned to work with them. Visual studio chose these -Hx,blah-blah flags without documentation which I merely found and copied. I also struggle with paths. Microsoft says "Let's look in the Library". My file is on a path that's long to type or requires ... never mind. Just about everything I do with Windows turns into a fight, and has since first release in the mid '80's.
Anyway, thank you.


(Why would Word have consumed all the time on one core all morning? I have no instances of WinWord running as an application. Come on! Word's been around 30 years. Shake out the bugs!)
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
Goto page 1, 2  Next
Page 1 of 2

 
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