Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!udel!mmdf From: lalonde@torolab2.vnet.ibm.com (Glen Lalonde) Newsgroups: comp.os.minix Subject: GCC and MacMinix. Message-ID: <48766@nigel.ee.udel.edu> Date: 25 Mar 91 15:02:42 GMT Sender: mmdf@ee.udel.edu Lines: 35 A few questions have come up about GCC and MacMinix, so here is what I know. I just pulled the binaries off plains and installed them and have had no problem with the setup, but I did need a chmem to 1.2MB or more for gcc-cc1 to compile a large program at high-opt. Now for the good stuff: I tried to compile the MacMinix OS with gcc and found that when I tried mm it compiled ok, after a patch to head.s, but when I ran the OS it gave a MM Panic "kernel did not respond to get_mem" when it booted. I checked and the sendrec in getmem was getting -10 back, which means something like no children??? Next I tried to compile up FS, this went well. I tried to boot it with a ack build mm and kernel. The result was a crash at just before INIT in memory, so I just used macbugs to start at the init start location and all went well. Now I did this many times and what allways happens is it crashed at about 9exyy where yy !=0 but INIT always started at x+1 yy==0. Thus it was easy to restart, and the initial boot screen always did have the correct address of init. After a while a hacking I found that the default for gcc was ansi mode ie __STDC__ =1, but if I compile fs/main.c with -traditional (ie no prototypes) the gcc built FS worked!! :-) This was a low-opt compile, I have not tried high-opt yet. As far as I can tell the FS runs ok and it never crashed on me yet(after using -traditional on main). I have yet to try the kernel, and don't indent to do so until the patches for the kernel are posted since I have found out that most problems in the kernel, including the slowww screen scroll have been fixed in the update to be posted soon(I hope) by Joe Pickert. Lastly I noticed that when sys_abort is called(in panic) it crashed my mac, does this libc routine have some MAC specific stuff in it? Since I am using the libc.a(st-version) that comes with gcc I guess sys_abort will not work. If anyone has a GCC MacMinix MM working let me know how you did it.