This topic is 4734 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Suudy: This sounds like an excellent way to use AngelScript. :) Does it work well in a multithreaded environment? I haven't worked too much on making it thread safe, just a few minor things that were necessary. You did compile the library with USE_THREADS, didn't you? [/QUOTE] We haven't heavily tested any of the multi-threaded capabilities. However, since it claims support... ;) We did compile with USE_THREADS. However, it is important to note that we are using ModelSim's SystemC compiler to compile the code. ModelSim uses MiniGW g++, which we used to compile into a static library. From there we link that using the SystemC compiler (sccom--based upon MiniGW) to link into a final shared library. ModelSim loads this shared library at simulation runtime. As a side note, what we really wanted to do was use the FLI and do callbacks from a VHDL model, rather than the SystemC interface. But the FLI is only supported on ModelSim SE (at a cost of $25k--no kidding!), where we could use SystemC in Modelsim PE (only$2k). But Angelscript works wonderfully within the SystemC paradigm. Thanks for the excellent library!

##### Share on other sites
Where did you see the claim for support for multithread? I need to know, because maybe I'll have to revise that claim.

I do not trust the library's support for multithreading, because I haven't been able to test it much. I want to support multithreading, but it is a difficult subject, and without a robust test framework I probably can't do it. Because of this, the support is only experimental. Also, it probably only works on Win32, since the methods used are from the Win32 API.

Should you have any problems with it, don't hesitate to tell me so that I can fix it.

I must admit I don't know what you're talking about [wink]. I don't know anything about FLI, VHDL, SystemC, or ModelSim.

Regards,
Andreas

##### Share on other sites
Quote:
 Original post by WitchLordWhere did you see the claim for support for multithread? I need to know, because maybe I'll have to revise that claim.

You are right, no explicit claim. My apologies.

What I meant ws that there are hooks for multithreading. And with that is an implication of support for multithreading.

Quote:
 I do not trust the library's support for multithreading, because I haven't been able to test it much. I want to support multithreading, but it is a difficult subject, and without a robust test framework I probably can't do it. Because of this, the support is only experimental. Also, it probably only works on Win32, since the methods used are from the Win32 API.

Fortunately we are using it on a Win32 box. So far, things are great.

Quote:
 I must admit I don't know what you're talking about [wink]. I don't know anything about FLI, VHDL, SystemC, or ModelSim.

Nor is it something you should worry about. It is more of an issue with Mentor Graphics and their decision to provide limited features in their mid-range product. I was throwing it out to give more of a feel for what we are doing.

Suudy

1. 1
Rutin
26
2. 2
3. 3
JoeJ
20
4. 4
5. 5

• 10
• 9
• 9
• 46
• 41
• ### Forum Statistics

• Total Topics
631751
• Total Posts
3002076
×