Software Archive
Read-only legacy content
17061 Discussions

Compile Cilk Plus GCC Runtime Libraries for Debug

Thomas_W_1
Beginner
616 Views

Hello All,

I was wondering whether there was some way to modify the makefiles for the GCC build of Cilk Plus to keep the labels for debugging (i.e. compile with -g).  I am trying to get a fuller picture of how the runtime system works in order to possibly modify it

 

Thank you!

Tom

0 Kudos
1 Reply
Hansang_B_Intel
Employee
616 Views

Hi Tom,

Which package are you using?

The Cilk Plus runtime source package available at http://www.cilkplus.org already includes "-g" by default and works fine with GDB.

You can also modify the default compiler options as follows:

1. Set environment variables (CFLAGS, CXXFLAGS) before invoking "configure"

2. Modify CFLAGS, CXXFLAGS, GENERAL_FLAGS in Makefile (if 1. does not work)

0 Kudos
Reply