From: jwoodfor AT unlgrad1 DOT unl DOT edu (Jeffrey N Woodford) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP and NT Alpha Date: 31 Dec 1997 19:28:05 GMT Organization: University of Nebraska--Lincoln Lines: 101 Message-ID: <68e6c5$53g@crcnis3.unl.edu> References: NNTP-Posting-Host: unlgrad1.unl.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 31 Dec 1997 09:51:37 +0200 (IST) Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote: : On 31 Dec 1997, Jeffrey N Woodford wrote: : > Is DJGPP designed to work on a DEC Alpha 21164 running Windows NT : > Workstation 4.0 (Service Pack 3)? : I don't know anything about Alpha/NT. Can it run binaries which were : compiled for the x86 CPUs? Does it have some x86-emulator built into : it? : DJGPP binaries are compiled for x86 CPUs. Unless Alpha/NT can run : such binaries, DJGPP won't work for you. FX!32 is installed on this machine. I guess that does the trick...? I don't really know how FX!32 works. In general I didn't think Alpha NT could run Intel binaries. : > I have downloaded it and installed it (as correctly as I can tell) : > but when I try to compile a simple program, I receive the "abnormal : > program termination" error. : Which of the DJGPP programs run during compilation causes this? : Please add -v to the compilation command line and post here everything : that is printed. : Also, please try invoking other DJGPP programs, e.g. go32-v2, and see : if they also fail in this way. Well it turned out that I needed to turn the forward slashes around to backslashes and change the drive letter references in my DJGPP.ENV file and that seemed to fix some things. It no longer gives the "abnormal program termination" error, and GCC will compile simple "hello world" programs. But other, more complex programs will compile but not run, because it says the program is too big to fit in memory when it clearly is not. (The machine has 256 MB of RAM and the program in question is only 433 lines.) go32-v2 gives this output: go32/v2 version 2.0 built Aug 12 1996 22:27:23 Usage: go32 coff-image [args] Rename this to go32.exe only if you need a go32 that can run v2 binaries as well as v1 binaries (old makefiles). Put ahead of the old go32 in your PATH but do not delete your old go32 - leave it in the PATH after this one. Set GO32_V2_DEBUG=y in the environment to get verbose output. DPMI memory available: 13943 Kb DPMI swap space available: 0 Kb Is my lack of swap space the reason why it won't run these "large" programs? I tried this simple program and the pointer d returned NULL. Is my program unreasonable? Is there an example program or something that I could try to see if the compiler is working correctly? #include #include int main (void) { double *d; d = (double *) malloc (4000000 * sizeof (double)); if (d == NULL) printf ("d is null!\n"); else free(d); return (0); } This is what gcc -v prints when it compiles the above program (called foo.c): Reading specs from file: E:\DJGPP\lib\specs gcc version 2.7.2.1 E:\DJGPP\bin\cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ =D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=1 foo.c E:\DJGP\tmp\ccwaaaaa GNU CPP version 2.7.2.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: . E:\DJGPP\include E:\DJGPP\contrib\grx20\include /usr/local/include /usr/local/lib/gcc-lib/go32/2.7.2.1/include /usr/include End of search list. E:\DJGPP\bin\cc1.exe E:\DJGPP\tmp\ccwaaaaa -quiet -dumpbase foo.c -version -o E:\DJGPP\tmp\ccxaaaaa GNU C version 2.7.2.1 (80386, BSD syntax) compiled by GNU C version 2.7.2.1. E:\DJGPP\bin\as.exe -o E:\DJGPP\tmp\ccyaaaaa E:\DJGPP \tmp\ccxaaaaa E:\DJGPP\bin\ld.exe E:\DJGPP\lib\crt0.o -L. -LE:\DJGPP\lib -L/usr/local/lib -L/lib E:\DJGPP\tmp\ccyaaaaa -Tdjgpp.djl -lgcc -lc -lgcc E:\DJGPP\bin\stubify.exe -v a.out stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie stubify a.out -> a.exe Thanks again for your help. -Jeff -- Jeffrey N. Woodford jwoodfor AT unlgrad1 DOT unl DOT edu photon.unl.edu/jeff/home.html "...the public expression of ideas may not be prohibited merely because the ideas are themselves offensive to some of their hearers." - Street v. New York