- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to write a HLS module(writing in C and using i++) that periodically(almost every second) copies a block of memory to another location. How can I implement the wait time? should I just implement a for loop without body? how can I be sure that optimizer doesn't get rid of it since it doesn't do anything?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
You can explore the usage of volatile keyword in case you don't want the compiler to optimize away specific contents.
Thanks and Regards
Anil
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