How to install SystemC?
1. Downloading the source code
Register at http://www.accellera.org and then download systemc-2.3.1.tgz from the Accellera SystemC standards download page2. Uncompressing the source code tarballs
$ tar zxvf systemc-2.3.1.tgz
This will uncompress the source of SystemC in directory
systemc-2.3.1
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.1
$ 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.1
$ 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