문제

Block of memory is initialized and set at the start of program and didn't change(CONST). For example:

static const int a = 10;

If it's dependent on the environment/architecture, then are these settings safe:

  • Intel/AMD
  • Win/Linux 32/64bits
  • Thread per core or all threads at onecore.
도움이 되었습니까?

해결책

It is safe to read const for all architectures

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top