gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] gcl using mingw


From: dan . stanger
Subject: [Gcl-devel] gcl using mingw
Date: Fri, 18 Jan 2002 14:01:19 -0700 (MST)

I got gcl built using mingw.  Heres what it took:
copy files from gmp/generic to gmp, as configure didnt do this.
get a old copy of minglacks from a previous release.
fix NULL_OR_ON_C_STACK macro.
I will get the maxima cvs on my box and try to build.  Otherwise,
I followed the directions in readme.mingw.  My environment is
w2k, service pack 1.  The results of my test program which shows
memory locations is:

$ ./a.exe
address of i was 22ff5c e was 403000
macro of i was 1 e was
0
address of i was 22ff3c
address of malloc was 3f2488

#define NULL_OR_ON_C_STACK(y) (((void *)(y)) < ((void *)0x400000))

int e;
main()
{
   int i;
   printf("address of i was %x e was %x\n",&i,&e);
   printf("macro of i was %x e was
%x\n",NULL_OR_ON_C_STACK(&i),NULL_OR_ON_C_STACK(&e));
   x();
}
x()
{
   int i;
   printf("address of i was %x\n",&i);
   printf("address of malloc was %x\n",malloc(100));
}

Notice that the address of malloc is below the address of the static area.
Dan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]