Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: When is a data access atomic?

$
0
0
The simple answer is no. None of these operations is atomic when you look at assembler code. Depending on the addresses and the surrounding code all operations may require more than one assembler instruction. So every operation may be interrupted. Data alignment is of no importance as this does not change the generated code. Misaligned data will require additional instruction cycles for access, but a data access in itself cannot be interrupted. Misaligned data access only slows the processor down.

Viewing all articles
Browse latest Browse all 59170

Trending Articles