Jump to content

Can Systemc compile once, run everywhere?


Recommended Posts

Hi,

Everyone, I have download SC on github and compile install on el7 which runs well. I want to use formmer compile SC result and copy the sc.a and include to my new el8 OS.

However, I get undefined error on new OS.

../include/systemc/sysc/datatypes/int/sc_uint_base.h:848: undefined referece to `sc_dt::sc_uint_base::to_string() const`

 

Here's my quenction, can we reuse the compile result of other OS? 

Link to comment
Share on other sites

Usually this does not work. There are quite a few dependenies to OS and compiler libraries which prevent this. If you build systemc as a shared library there is some chance to get it work.

Link to comment
Share on other sites

Hello @Allen yang,

As responded by @Eyck, it might work. But I would not recommend it.

You might hit issues due to incompatibilities in OS, system libraries, compiler generated output, etc.

You might get very hard to debug issues or random simulation crashes.

It's better to recompile for the target platform if you can to have a chance of better compatibility.

 

Regards,

Ameya Vikram Singh

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...