I've sucessfuly compiled several c/c++ libraries into SWC libraries which I plan to use in my flex project. But I'm wondering is it beter to keep them as separate libraries or make one big glue.gg file with all interop code for all of this libraries?
Because Alchemy uses statics to keep track of its ram, etc, you sort of can't have more than one instance. The libraries would be sharing the same ram, which can cause problems.
However, you can dodge the issue by loading your alchemy libraries into separate Application Domains. I'm doing this in my project:
The other benefit of doing it this way is that if your alchemy lib crashes it won't affect any other alchemy libraries because they're using entirely separate ByteArrays for ram, etc.