3 ms·
No. Inline assembly is a static construct targeting the same compute unit as the C code during compile-time. What is needed is "runtime inline assembly" which
by belleandsebasti 11y ago
No. Inline assembly is a static construct targeting the same compute unit as the C code during compile-time.
What is needed is "runtime inline assembly" which assembles inline assembly for a different target architecture at runtime.
This is essentially what shader programs are and you don't need special syntax to support it. Just store your shader program in a char* and bundle an assembler/compiler with your host program.