hackndev / zinc

The bare metal stack for rust
zinc.rs
Apache License 2.0
1k stars 100 forks source link

assembler files #378

Closed pftbest closed 7 years ago

pftbest commented 8 years ago

Hi, can you please tell me how does src/hal/cortex_m3/sched.S get compiled using cargo? I can't find any reference to this file in the project. And there seems to be no language feature to include assembly files. I need to have a custom assembly file in my project, but I can't get it to link properly using cargo.

mcoffin commented 7 years ago

The scheduler assembly file is currently not built at all. The way forward would be to use the build.rs build script to build the assembly and then link against the resulting object file, similar to how one would include regular old C code in a Rust crate.

pftbest commented 7 years ago

@mcoffin Thank you.