delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/30/00:16:16

From: myshin AT etri DOT re DOT kr (myshin)
Newsgroups: comp.os.msdos.djgpp
Subject: Compiler is Killed by C source code ?
Date: Thu, 30 Oct 1997 01:07:52 GMT
Organization: ETRI
Lines: 109
Message-ID: <33e1aa67.6007629@news>
NNTP-Posting-Host: myshin.etri.re.kr
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Why I can't compile next source in DJGPP?
Next source have many micro functions.
In main(){
	unsigned long TBM0[ 64][ 2], TBM1[ 64][ 2];
	unsigned long (*cTBM)[ 2], (*nTBM)[ 2];
this is good compile!
But ,
In main(){
	unsigned long TBM0[ 64][ 4], TBM1[ 64][ 4];
	unsigned long (*cTBM)[ 4], (*nTBM)[ 4];
this source is no good.

These is only different array size !
If I try to compile second source, my computer is down !
No response from compiler !
gcc -c op.c 
......  [Ctrl]{Alt][Del]

I using DOS in Winodws'95.

Is this BUG of DJGPP ?
My mistake ?
Or others ?

Help me! 

THANKS.

----------------------------------------------------
#define _ShiftLeft( IDX) \
{\
	nTBM[ IDX][ 1] = ( cTBM[ IDX][ 1] << 1) | ( cTBM[ IDX][ 0] >>
(32-1));\
	nTBM[ IDX][ 0] = ( cTBM[ IDX][ 0] << 1);\
}\

#define BUTTERFLY(i,sym)\
{\
	ix2 = 2*i;\
	/* ACS for 0 branch */\
	m0 = cPM[ i] + BM[ sym];   /* 2*i */\
	m1 = cPM[ i + StateN] + BM[ 3^sym];  /* 2*i + state_num */\
	if( m0 < m1)\
	{\
		nPM[ ix2] = m0;\
		/*_ShiftLeft( ix2);*/\
		nTBM[ ix2][ 0] |= 0;\
	}\
	else\
	{\
		nPM[ ix2] = m1;\
		_ShiftLeft( ix2);\
		nTBM[ ix2][ 0] |= 1;\
	}\
	/* ACS for 1 branch */\
	m0 = cPM[ i] + BM[ 3^sym];	 /* 2*i */\
	m1 = cPM[ i + StateN] + BM[ sym];  /* 2*i + state_num */\
	if( m0 < m1)\
	{\
		nPM[ ix2+1] = m0;\
		_ShiftLeft( ix2+1);\
		nTBM[ ix2+1][ 0] |= 0;\
	}\
	else\
	{\
		nPM[ ix2+1] = m1;\
		_ShiftLeft( ix2+1);\
		nTBM[ ix2+1][ 0] |= 1;\
	}\
}

...


main()
{
	unsigned long TBM0[ 64][ 4], TBM1[ 64][ 4];
	unsigned long (*cTBM)[ 4], (*nTBM)[ 4];
	long PM0[ 64], *cPM;
	long PM1[ 64], *nPM;
	int distance[ 2][ 256];

	... 



		BUTTERFLY(0,0); 	BUTTERFLY(1,1);
BUTTERFLY(2,3);
		BUTTERFLY(3,2); 	BUTTERFLY(4,3);
BUTTERFLY(5,2);
		BUTTERFLY(6,0); 	BUTTERFLY(7,1);
BUTTERFLY(8,0);
		BUTTERFLY(9,1); 	BUTTERFLY(10,3);
BUTTERFLY(11,2);
		BUTTERFLY(12,3);	BUTTERFLY(13,2);
BUTTERFLY(14,0);
		BUTTERFLY(15,1);	BUTTERFLY(16,2);
BUTTERFLY(17,3);
		BUTTERFLY(18,1);	BUTTERFLY(19,0);
BUTTERFLY(20,1);
		BUTTERFLY(21,0);	BUTTERFLY(22,2);
BUTTERFLY(23,3);
		BUTTERFLY(24,2);	BUTTERFLY(25,3);
BUTTERFLY(26,1);
		BUTTERFLY(27,0);	BUTTERFLY(28,1);
BUTTERFLY(29,0);
		BUTTERFLY(30,2);	BUTTERFLY(31,3);


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019