-
Notifications
You must be signed in to change notification settings - Fork 54
Allow targets to be added at runtime #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
XOC indeed does not support dynamic allocating different Targets at runtime, one of the reason for this is that it is expected to improve compilation speed by using compile-time constants. But I believe dynamic target allocation is an very important feature for multiple-targets compiler, I actually considered support it before. |
Fantastic. Should I write some draft code to support dynamic target allocation? Once I get it working and open a PR, we can discuss and improve my design.
Understood! I submitted my other code change at |
Fine! You could have a try first. And there are some commercial version branch that are not open source. May be I could cherrypick the new big feature into them when we done.
Did you mean PR with commit-id 4c3559f? I have merged it. |
Uh oh!
There was an error while loading. Please reload this page.
Hey @stevenknown. I've been working on a Conan package for XOC.
One issue I see is that XOC builds with its targets at compile time (by default it supports DEX). This makes it hard to make a package because the XOC binary that gets installed by a package manager will only support DEX.
This design is ok for LLVM because it comes with many targets and most users won't make their own target. But XOC only supports DEX so most users will have to implement their own target, which means they cannot use a precompiled package.
I don't know much about the XOC design, but I'm wondering if it's possible to support something like this:
Library header in XOC
Application code using XOC
If we can't support adding targets at runtime, then I don't think XOC can be packaged. I'm happy to help with the development work.
The text was updated successfully, but these errors were encountered: