This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc on Linux


Dear Colleagues:

	I have written a program that employed a lot of array 
allocation and deallocation routines such as 
  vector.c/free_vector.c 
  matrix.c/free_matrix.c
from Numerical Recipes in C.  
	The program has been compiled and run fine on either
an SGI (with a IRIX 6.x OS) or a SUN (with a Solaris OS) 
workstation.  It has been compiled without any error message
or warning on a new Dell Pentium4 Server with dual processors
and running a Linux OS (RedHat).  But the program would run 
into a stall when one of the allocation and deallocation 
routines (based on malloc) was called.  Even more puzzling
is the fact that it did not stall when the routine was 
called first but later.
	I used the following command line arguments to do the
compilation:

  cc -o exe_filename main.c xxx1.c xxx2.c .... -lm

	I am wondering if I use gcc incorrectly or there is 
a bug in gcc.

	Thank you very much for your early reply.

Jianyun Lu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]