Jump to content


  • Content Count

  • Joined

  • Last visited

  1. Hello, I've noticed that with SystemC 2.3.3, when I spawn a dynamic process, there is a huge memory consumption. Here' s the code generating the problem #include "test_module.h" void test_module::my_process(int temp) { printf("thread spwned @ %.1f\n",sc_simulation_time()); wait(1000,SC_NS); } void test_module::test_thread(void) { int temp=0; while(true) { printf("current time is %.1f\n",sc_simulation_time()); if (sc_simulation_time()>=100000000) { printf("stop here\n"); wait(); sc_stop(); } else { sc_spawn_options my_thread; sc_process_handle test_proc; my_thread.set_sensitivity(&clock.pos()); test_proc = sc_spawn(sc_bind(&test_module::my_process,this,temp),NULL,&my_thread); wait(10,SC_NS); } } } Basically, when I run the program I see the memory associated to the process steadily growing up second after second. SystemC has been configured with the following switches: --enable-shared=no --disable-async-updates and compiled as static library. The host OS is ubuntu 16.04 and G++ version is 5.4.0 20160609 The same code compiled on an ubuntu 10.04 with SystemC 2.2.0 does not show any memory problem. Any idea on why this happens? Thanks
  2. Hi everyone, During the past years I've developed a very nice simulator in SystemC 2.2.0 and now, since I've some clients interested in using the tool, I would like to sell it. Basically the idea is to sell the tool as a closed-source object code or, if it is not possible, to sell the source code of the simulator at a given price. Is it possible or there are some limitations with the SystemC license? I've read the license but I didn't found any limitation about "selling the object" or "selling the source code". Thanks in advance