Hi,

I've been trying to use some asm inline code in rust. But faced so many issues 
during the process and end up giving up because of this.

Simple asm inline works fine, but when working with clobbers and comunicating 
rust to asm seems to be broken.

I found several segmentation faults (null pointers) when trying to compile the 
code. Also, I found that there's no direct way to pass variables and set 
numeric values because both references use the same '$' prefix.

Then I tried to pass an input variable with a given value to be able to set a 
register to a specific value.. And then i got the assembler trying to compile 
32bit instructions mixed with 64 bit ones.

The question here is: which is the plan for supporting the asm directive? It 
aims to be gcc syntax compatible?

Should we go for a more direct syntax like msvc does with naked keywords and so 
on?

Also, i believe that mixing macros with inlined asm can be another cool way to 
extend the language possibilities, while allowing fine grained assembly code.

--pancake
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to