-
Notifications
You must be signed in to change notification settings - Fork 100
Refactor zinc crate to support native build #303
Comments
Compiling the zinc crate natively works fine for me? It won't work of you enable one of the platform features, as that will enable that ISR vector code for that platform (and therefore some assembly). Note that the stuff in |
That's for test only, no? I mean, compile the dylib/rlib of zinc for native target. |
Also, #302 will sort out the dummy registers part. |
I think the
|
@bharrisau Regarding what you said in #305, i think a decent solution might be to come up with a system like rustc's "lang items". Then, i would agree, |
would be nice, but the only way to implement something like it, as far as I know, is to have a stable path and |
Note for self and anyone reading: the |
As of now it's not possible to build zinc crate as it uses arm assembly. Still, zinc contains lots of code that would be interesting to unit test and validate coverage.
The proposed solution is to extract all machine-dependent code into new file hierarchy, namely
arch/
, and allow that to depend on feature flags.Actual mcu code should be buildable for native arch as it's expected that it would be unit tested as well.
The text was updated successfully, but these errors were encountered: