[RFC] TVMC: Add support for µTVM

I agree we should support binary output. My thought is this would depend on the TVM target in use–but we can talk about it

Yeah I think so too. Like, I won’t be good to always generated a .so and a .o (for example) for the static runtime case, which afaics will only be “interested” in the .o to wrap it using the “adapters” (bundle.{c,cc}) to create a .so (dynamic case) or use link all the objects in a static executable (static case). In both cases I understand tvmc compile should not generate a .so.

Other use-cases, like for applications dlopen’ing the model library (.so) generated by the tvmc compile, it would be good to have .so as an output for command compile.

–would it not make sense to treat bundle.{c,cc} as an implementation of the Project API?

Yep, I’m wondering it too. It makes sense to have “adapters” like that implemented like a kind of project, so use the mechanism of the Project API.