- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So in visual Studio you can set the solution to either Debug or Release. With Release automatically setting certain optimizations. My question is, what are the command options that will achieve (a similar) optimization but in the command line (for both windows and linux)?
Thank you
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The build-log, which is generated after you build a project, contains the command line options. You may use those options in your command window session, or place some of the options in the default configuration file, ifort.cfg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or just look at the Command Line property page for the Release configuration and you'll see what it uses. Generally, as far as optimization goes, it is just /O2 which is the default anyway. (This assumes you have not changed the settings for that configuration.)

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page