Hi all. I have a program that I have been compiling using MIPS compiler. I have recently been tasked to port this to our new Intel system using icc.
It compiles fine, but when I run it, I get "Segmentation fault" with no other info.
Someone suggested it may be an endian problem. I turned on warnings and it seems like every one of my macro definitions has a problem.
Here is an example of the first one I have come to:
Code:
#define DEBUG_ENTER(name) {tdepth++;
if(tnames[tdepth] == NULL) tnames[tdepth] = memalign(8, sizeof(char)*MAXLEN);
strcopy(tnames[tdepth],name);
FU_DEBUG("Entering \n");}
What is actually going wrong here? How do I fix this in my program? It is a really large piece of software with many many macros and such. Is there a compiler "switch" that can correct this problem?