From mboxrd@z Thu Jan 1 00:00:00 1970 From: peterjeremy@optushome.com.au (Peter Jeremy) Date: Mon, 24 Apr 2006 10:00:46 +1000 Subject: [TUHS] gcc-3.4.6 and old unix In-Reply-To: <000701c6672d$8d6f2ae0$2f01a8c0@myhome.westell.com> References: <000701c6672d$8d6f2ae0$2f01a8c0@myhome.westell.com> Message-ID: <20060424000046.GE720@turion.vk2pj.dyndns.org> On Sun, 2006-Apr-23 19:27:55 -0400, Bill Cunningham wrote: > Has anyone thought of or tried to port the gcc to the old unixes? What do you mean by "old unixes"? 32V or 4BSD would be trivial. 2BSD or V7 (or earlier) would be virtually impossible. gcc was born in a 32-bit world and there's no way you will get it to work natively on a 16-bit host (though it does have a PDP-11 backend): Both the code and data structures assume a large memory space and are not amenable to using overlays. If you really wanted to run gcc on a PDP-11, the easiest (though very slow) solution would be to build a simple 32-bit virtual machine that runs on the PDP-11 and run gcc within it. > A C compiler that would work with modern c89 or c99. As far as I can tell, C99 was deliberately designed to make it impossible to build a simple C compiler. -- Peter Jeremy