Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!att!dptg!lzaz!bds From: bds@lzaz.ATT.COM (Bruce Szablak) Newsgroups: comp.lang.scheme Subject: Re: on the portability of SIOD Message-ID: <1059@lzaz.ATT.COM> Date: 17 Aug 90 14:11:06 GMT References: <9008170327.AA21454@mailhost.samsung.com> Organization: AT&T BL Middletown/Lincroft NJ USA Lines: 17 In article <9008170327.AA21454@mailhost.samsung.com> gjc@mitech.com writes: >I agree that I get sloppy with respect to sizeof(int) != sizeof(long). > >But a port of SIOD to a machine where sizeof(int) = 2 and sizeof(long) = 4 >was done: The Macintosh under lightspeed C version 4.0 > >(This version is also available on BU.EDU in users/gjc/siod-v2*-hqx or *mac*) > Interesting. Linting the original code I see that it uses the difference between two pointers to calculate the size of the heap. Many C compilers return an int when pointers are subtracted from each other. This limits the size of the heap to what can be fit into an int. If sizeof(int) = 2 you are pretty limited. Another portability problem is that many names are not unique to seven characters. the the difference of t