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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...