Skip to main content

First post using stackedit

Welcome to StackEdit! Hey! I’m your first Markdown document in StackEdit1. Don’t delete me, I’m very helpful! I can be recovered anyway in the Utils tab of the Settings dialog.
Documents StackEdit stores your documents in your browser, which means all your documents are automatically saved locally and are accessible offline!
StackEdit is accessible offline after the application has been loaded for the first time.Your local documents are not shared between different browsers or computers.Clearing your browser’s data may delete all your local documents! Make sure your documents are synchronized with Google Drive or Dropbox (check out the Synchronization section). Create a document The document panel is accessible using the button in the navigation bar. You can create a new document by clicking New document in the document panel.
Switch to another document All your local documents are listed in the document panel. You can switch from one to another by clicking a document in the li…

Install SystemC in Cygwin

Note: This tutorial works with Cygwin 1.5.25-15 and SystemC 2.2.0.

Installing Cygwin

Hop over to cygwin's website and follow the installation procedure. I would recommend to do a full installation.

Installing SystemC

SystemC's class library and event based simulator can be downloaded from the website. You need to create a login before you can download the files.


export CXX g++

export CC gcc

I used the following procedure to install it:

  1. Download systemc-2.2.0.tgz and write to a suitable location
  2. Unzip the file using tar zxvf systemc-2.2.0.tgz
  3. Navigate to the systemc-2.2.0 directory
  4. Create a subdirectory as per the INSTALL file called objdir
  5. Navigate to the objdir directory
  6. create the destination directory mkdir /usr/local/systemc-2.2
  7. Execute ../configure --prefix=/usr/local/systemc-2.2
  8. Modify the default stack size SC_DEFAULT_STACK_SIZE which you can find in /systemc-2.2.0/src/sysc/kernel/sc_constants.h from 0x10000 to 0x50000

Line 57: const int SC_DEFAULT_STACK_SIZE = 0x50000;

  1. Build systemc using make pthreads
  2. Install systemc using make install
  3. Check the installation using make pthreads_check, you might get the following error:

/usr/local/systemc-2.2/include/systemc.h:175: error: `std::wctomb' has not been declared
/usr/local/systemc-2.2/include/systemc.h:177: error: `std::wcstombs' has not been declared

  1. If this is the case then open /usr/local/systemc-2.2/include/systemc.h and commend out the 2 lines as shown below:

Line 175: // using std::wctomb;
Line 176: using std::mbstowcs;
Line 177: // using std::wcstombs;

  1. re-run make pthreads_check and all tests should pass


Popular posts from this blog

Installing tensorflow on Mac OS 10.11

Tensorflow ( is the open source deep learning library from Google (

Installing Tensorflow is not easy on Mac if you follow exactly the installation instruction on the homepage. I have no idea why. I have error then error while trying to install Tensorflow with pip, with virtualenv, or even with Docker.

However, with Anaconda (, it will be easy. The trick is you should download the wheel file and install it offline other than retrieving it online as suggested by Tensorflow homepage.

So, with anaconda for python2 installed, I did:

# create a new environment with sklearn installed, up to you
# if you want a pure Python, replace scikit-learn by python
conda create -n tensorflow scikit-learn

# activate the new environment
source activate tensorflow

# download the wheel file


Luật doanh nghiệp năm 2005 song ngữ Việt - Anh

Văn bản: Luật doanh nghiệp số 60/2005/QH11, được thông qua tại kỳ họp thứ 8, Quốc hội khóa XI, ngày 29 tháng 11 năm 2005, có hiệu lực từ ngày 1 tháng 7 năm 2006.
Nguồn văn bản tiếng Anh: Bộ tư pháp

Định dạng: PDF
Song ngữ Việt - Anh.
Người biên tập:
Link download: