TypeScriptCompiler icon indicating copy to clipboard operation
TypeScriptCompiler copied to clipboard

implement atomics

Open ASDAlexander77 opened this issue 1 year ago • 3 comments

Atomics https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/

ASDAlexander77 avatar Apr 04 '23 11:04 ASDAlexander77

I decided to ask chatGPT about how to store and access shared memory in C. And it gave an answer. Read chat

Sinfolke avatar Aug 17 '23 07:08 Sinfolke

C seems also has stdatomic.h lib with functions: atomic_int atomic_flag atomic_store atomic_load atomic_add atomic_sub

Sinfolke avatar Aug 17 '23 09:08 Sinfolke

I would use LLVM internals for it for example https://llvm.org/docs/Atomics.html

ASDAlexander77 avatar Aug 17 '23 15:08 ASDAlexander77