eactor Posted June 13, 2013 Report Share Posted June 13, 2013 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 Quote Link to comment Share on other sites More sharing options...
dakupoto Posted June 16, 2013 Report Share Posted June 16, 2013 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. Quote Link to comment Share on other sites More sharing options...
eactor Posted June 17, 2013 Author Report Share Posted June 17, 2013 Why not? There are tons of compilers building programms for microcontrollers, SOCs etc. , which work without the need for an ABI ( Application binary interface) of an OS. Quote Link to comment Share on other sites More sharing options...
maehne Posted June 17, 2013 Report Share Posted June 17, 2013 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.