Jump to content
eactor

SystemC for bare metal

Recommended Posts

Hello,

Is it possible to compile SystemC for any Processor for bare metal without the needed user space with threading of an OS?

So in other words is it possible to include the pthreads into a bare metal implementation?

cheers

eactor

 

 

Share this post


Link to post
Share on other sites

Hello,

That is an interesting question, but doubtful if it will work. First of all, the

SystemC is a C++ library, very much dependent on its compiler. But the

chief problem is that it is very doubtful if any compiler can work without

a supporting OS.

 

Share this post


Link to post
Share on other sites

Hello,

 

to compile SystemC, your compiler needs to be C++'03 compliant including standard library (C and STL). Additionally, SystemC requires the infrastructure to executes co-routines with an own stack, which can be interrupted and resumed. The proof-of-concept implementation by ASI realizes this using Fibers on Windows, QuickThreads or Pthreads on Unix in the src/sysc/kernel/sc_cor*.{h|cpp} implementation files. It may be easiest to port QuickThreads to your target platform than Pthreads, as it is more lightweight. The tracing requires file/stream I/O capabilities.

 

Best regards,

 

Torsten

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×