Advertisement
Guest User

Untitled

a guest
Jan 15th, 2024
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. // in the program that owns SHARED:
  2. far struct SharedVars volatile shmem __attribute__((location(0x10100))) = {};
  3.  
  4. // in the program that doesn't own SHARED:
  5. #define shmem (*(struct SharedVars volatile *)0x10100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement