- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think the compiler switches /optimize:2 and /O2 are not equivalent. The current documentation says that /O2 is equivalent to /optimize:1 + /optimize:2. However, that does not seem to be working either.
Focusing only on loop vectorization, for example, with the default /O2 loops are vectorized while use of /optimize:2 does not do it.
Are /optimize:n deprecated?
Abhi
Focusing only on loop vectorization, for example, with the default /O2 loops are vectorized while use of /optimize:2 does not do it.
Are /optimize:n deprecated?
Abhi
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are correct that the documentation is wrong. /optimize:3 is equivalent to /O2 - /optimize:2 is equivalent to /O1. /optimize is the "DEC spelling" and is indeed deprecated.
I will let the writers know. Thanks for bringing this to our attention.
To summarize:
/optimize:0 = /Od
/optimize:1 or 2 = /O1
/optimize:3 or 4 = /O2
/optimize:5 = /O3

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