Sysprogs forums › Forums › VisualGDB › Seeing the actual command line used for compiling with MSBuild
- This topic has 8 replies, 2 voices, and was last updated 8 years, 3 months ago by
support.
-
AuthorPosts
-
July 24, 2017 at 23:51 #11817
jmkresse
ParticipantWhen I use the Gmake option, I can see the actual command line used for compiling each file, etc., as it occurs.
I am trying to move a project from Gmake to MSBuild, but from examining the results of running the executable, it appears that perhaps a file was not compiled as expected.
I am trying to change the optimization level of just one file from -O3 to -Ofast, which in previous experiments using Gmake, has indicated a dramatic speedup in the code. Instead the code appears to be running much more slowly, as if it were perhaps compiled with the -O0 option.
July 25, 2017 at 05:12 #11820support
KeymasterHi,
You can enable the global verbose mode via Tools->Options->VisualGDB->Common->Output->Verbose Mode.
July 25, 2017 at 05:31 #11822jmkresse
ParticipantThanks!
What is the best/recommended way to specify the -Ofast compiler option (instead of -O3, for example). It’s not one of the listed optimization options.
(I think I found a workaround, but don’t know if it’s the best/recommended way.)
Thanks!
July 25, 2017 at 05:39 #11824support
KeymasterHi,
Normally you can just enter “-Ofast” in the corresponding field even if it’s not listed. VisualGDB will understand that you meant an out-of-list option and will handle it correctly.
July 25, 2017 at 19:44 #11827jmkresse
ParticipantI enabled global verbose mode, but it still didn’t show me what the compiler command was when it executed it.
Attachments:
You must be logged in to view attached files.July 25, 2017 at 19:46 #11830jmkresse
ParticipantAnd I tried entering -Ofast, but it ignores it.
Attachments:
You must be logged in to view attached files.July 27, 2017 at 00:18 #11844support
KeymasterHi,
If this is a locally built project, the regular VS verbosity setting (Tools->Options->Projects and Solutions->Build and Run->MSBuild project build output verbosity) should get VisualGDB to show the command lines. Alternatively you could simply check the .rsp files (they contain saved command lines). The regular Visual Studio Command Line page won’t show the custom options.
Please also ensure you are using the latest VisualGDB 5.2r9.
July 27, 2017 at 04:09 #11845jmkresse
ParticipantThanks! That helped a lot!
Now, there is still the issue that if I specify an optimization level of -Ofast, it is ignored. (And I am using VisualGDB 5.2r9.)
Thanks!
July 27, 2017 at 16:15 #11850support
KeymasterHi,
As a quick test, could you confirm that the same problem exists with v5.3 Preview 4? If yes, please try creating a “hello, world” project demonstrating the issue and attach it here (or send it to us via the support form). We should be able to investigate this and suggest a workaround or fix it.
-
AuthorPosts
- You must be logged in to reply to this topic.