[ARCHIVE][October 24, 2013] How to install SystemC?
This is a deprecated content.
|
1. Downloading the source code
Register at http://www.systemc.org and then download systemc-2.2.0.tgz and TLM-2.0.1.tgz from the OSCI standards download page2. Uncompressing the source code tarballs
$ tar zxvf systemc-2.2.0.tgz
$ tar zxvf TLM-2.0.1.tgz
This will uncompress the source of SystemC in directory
systemc-2.2.0 and the source TLM 2.0.1 in directory TLM-2009-07-15
$ tar zxvf TLM-2.0.1.tgz
3. Patching the source code
Download and apply the following patch to SystemC 2.2.0: patch-systemc-2.2.0.gz$ cd systemc-2.2.0
$ gzip -dc patch-systemc-2.2.0.gz | patch -p1
$ gzip -dc patch-systemc-2.2.0.gz | patch -p1
4. Configuring SystemC
To configure, compile, and install SystemC in your home directory, do the following at the command prompt:$ cd systemc-2.2.0
$ mkdir objdir
$ cd objdir
$ mkdir ${HOME}/systemc
$ ../configure --prefix=${HOME}/systemc
$ mkdir objdir
$ cd objdir
$ mkdir ${HOME}/systemc
$ ../configure --prefix=${HOME}/systemc
5. Compiling and installing 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 compile SystemC with the built-in QuickThreads (recommended), do the following at the command prompt:$ make
$ make install
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 compile SystemC with the kernel POSIX
threads, do the following at the command prompt:
$ make install
$ make pthreads
$ make install
$ make install