- 
                Notifications
    
You must be signed in to change notification settings  - Fork 280
 
Closed
Description
Current c2rust produces assembler in the style of asm!("cpsie i" : : : "memory" : "volatile"), which is the style nowadays used with the llvm_asm macro since rust-lang/rust#71007 was merged.
A short-term solution I'm currently using as a workaround is to replace " asm!(" with " llvm_asm!(" in the output (hoping nobody puts this into literals); that's the route I'd like to take for a fix in c2rust as well. It has produced working binaries, though I'm not sure it ever passed through the asm code. (But hey, at least it built).
(A long-term solution might be using modern asm!, but a) that can wait until stable and b) it's probably better suited for a separate ... casm2rust? project, if it's ever really needed at all).
Metadata
Metadata
Assignees
Labels
No labels