applied indexloop
compile with debugging information for gdb