Source File not Found. Assembly code is shown instead of source file.

Source File not Found. Assembly code is shown instead of source file.

Hello,I started to use intel inspector xe 2011 on linux suse.After compiling the project with gcc, I start the analyze with the inspector, it does find errors but don't show me the errors in the source code? I tried setting the path, but didn't help.What could it be?This message appears in the source window: "Source File not Found. Assembly code is shown instead of source file. Source:"Any ideas?Thanks in advanceEmanuel

7 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

As I said in other thread, add "-g" option to build. -peter

Hello Peter,thanks for your answer! An indeed it worked for the simple code.But for the project I wanted to use intel inspector, it does not work. The project is written in c and the code is separated in a large set of sub functions? Can this cause the problem?I compile the program with a make filein following format:************MakefilePROG =nameSRCS = file1.c file2.cOBJS = file1.o file2.oLIBS = -lm /usr/local/lib/libfftw.a /usr/local/lib/librfftw.aCC = gcc -fopenmpCFLAGS = -O0 -g -ILibsFC = f77FFLAGS = -OF90 = f90F90FLAGS = -OLDFLAGS = -sall: $(PROG)$(PROG): $(OBJS) $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)clean: rm -f $(PROG) $(OBJS) *.mod.SUFFIXES: $(SUFFIXES) .f90.f90.o: $(F90) $(F90FLAGS) -c $file1.o: file1_incld.h************EOFWhat could it be?Yours,Emanuel

Hi Emanuel,

For CFLAGS, that is OK!

For F90FLAGS,I suggest touse "F90FLAGS=-O0 -g -debug inline-debug-info"

Thanks, Peter

Hello Peter,I tried what you supposed but it didn't worked. Now I try to use icc compiler,here i would use following flags:CC = icc -openmpCFLAGS = -O0 -g -ILibsI think maybe the code structure is too complex, as the parallel for loop is in a subsub function?Thanks anyway, I will come back if I have further questions or some solution.Yours, Emanuel

Not sure what "the code is separated in a large set of sub functions" means, but if your source is spread out over several or more directories, you need to use the Search Directories tab of the Project Properties dialog to tell the tool where to find the source files.

Regards,
MrAnderson

Hello MrAndersonwith "the code is separated in a large set of sub functions" I wanted to say that the multi tread loop in a sub function: I try to explain it with a diagrammain - function 1 in main - function 2 in function 1 - function 3 in function 2 paralleled loop
I hope it is more clear now. The individual functions are all in separated files.My source files are all in the same directory, where I set the path to.What else could it be?Yours,Emanuel

Deixar um comentário

Faça login para adicionar um comentário. Não é membro? Inscreva-se hoje mesmo!