[ARCHIVE][December 16, 2014] How to install SystemC?
This is a deprecated content.
|
1. Downloading the source code
Register at http://www.accellera.org and then download systemc-2.3.0.tgz from the Accellera SystemC standards download page2. Uncompressing the source code tarballs
$ tar zxvf systemc-2.3.0.tgz
This will uncompress the source of SystemC in directory
systemc-2.3.0
3. Configuring SystemC
To handle threads, SystemC relies on QuickThreads, a fast implementation of user's threads. QuickThreads speeds-up threads switching compared to the slower kernel POSIX threads and thus considerably improves overall simulation performance. To configure the SystemC building process with the built-in QuickThreads (recommended), do the following at the command prompt:$ cd systemc-2.3.0
$ mkdir objdir
$ cd objdir
$ mkdir ${HOME}/systemc
$ ../configure --prefix=${HOME}/systemc --disable-shared
However, if you intend to instrument your simulator (e.g. with
valgrind) to debug the simulator memory leaks, bad memory accesses,
pointers, and uninitialized memory reads, you should use the slower
kernel POSIX threads. To configure the SystemC building process
with the kernel POSIX threads, do the following at the command
prompt:
$ mkdir objdir
$ cd objdir
$ mkdir ${HOME}/systemc
$ ../configure --prefix=${HOME}/systemc --disable-shared
$ cd systemc-2.3.0
$ mkdir objdir
$ cd objdir
$ mkdir ${HOME}/systemc
$ ../configure --prefix=${HOME}/systemc --enable-pthreads --disable-shared
$ mkdir objdir
$ cd objdir
$ mkdir ${HOME}/systemc
$ ../configure --prefix=${HOME}/systemc --enable-pthreads --disable-shared
5. Compiling and installing SystemC
To compile SystemC, do the following at the command prompt:$ make
$ make install
$ make install