Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHi Marek,
> Does anyone knows a solution to tell the compiler to automatically convert volatile > pointer memory instructions to correct ldio/stio instructions? There is none :-( -- the volatile keyword has nothing to do with cache. It _may_ however, affect optimizations with respect to memory access (cache or no-cache). > Any solutions? The quick 'n dirty is to use cache bypass (set bit 31 of the address). The "purist" way is a rewrite. Unfortunately, you may find a rewrite is like peeling an onion -- it seems like there's always another module that needs a re-write. Regards, --Scott