You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax - the main thing we'd need to support is some sort of string interpolation to allow referencing Scala definitions, translating them into addresses/constant values, and wiring in those translations in the LLVM IR Example:
valhello=24valstr=c"yo"
inline_assembly(asm"""mov X1, #5mov W2, %${hello} ; transformed into the address of hellomov W3, %${str} ; transformed into the address of str in constant pool""")
This is a tracking issue for allowing to use inline assembly from Scala Native programs.
The mechanism by which this can be achieved is using the "Inline assembler expressions" in LLVM IR: https://llvm.org/docs/LangRef.html#inline-assembler-expressions
Prior art:
asm!
macro: https://doc.rust-lang.org/rust-by-example/unsafe/asm.htmlasm
function: https://firexfly.com/clang-inline-assembly/Considerations:
Example:
Reading material:
I'm not actually working on it, especially given I can't get any C examples to run on my Mac. This is merely an information dump
The text was updated successfully, but these errors were encountered: