- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can anyone tell me how to prevent a loop from being optimised?
EDIT: My mistake: a typing error in the code.
But I'm still interested to know: is there a directive that can be placed before the loop to prevent it from being optimised?
Can anyone tell me how to prevent a loop from being optimised?
EDIT: My mistake: a typing error in the code.
But I'm still interested to know: is there a directive that can be placed before the loop to prevent it from being optimised?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - zugvogel
Hello,
Can anyone tell me how to prevent a loop from being optimised?
EDIT: My mistake: a typing error in the code.
But I'm still interested to know: is there a directive that can be placed before the loop to prevent it from being optimised?
Can anyone tell me how to prevent a loop from being optimised?
EDIT: My mistake: a typing error in the code.
But I'm still interested to know: is there a directive that can be placed before the loop to prevent it from being optimised?
You can put the NOUNROLL, NOVECTOR, NOSWP, NOPREFETCH, NOPARALLEL depending on what you're trying to prevent.
http://www.intel.com/software/products/compilers/docs/fmac/doc_files/source/extfile/lref_for/source_files/pgjcdor.htm
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That was exactly what I was looking for - thanks!

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