Search code examples
gem5

Why am I getting "internal compiler errors" for adding cout statements in Gem5?


I am trying to print data as it is fetched from memory locations by Gem5 simulation. I am editing packet.hh for this purpose. The aim is to be able to edit data in transit.

But even adding cout statements to check the datapointer/data values lead to "internal compiler error".

Should I be using Debug flags instead ? Is this a cout/io-stream thing or does it have something to do with gem5 compilation ?


Solution

  • Circumvented this by using cprintf() statements available in Gem5 code.