Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bcm!dimacs.rutgers.edu!mips!atha!aunro!alberta!herald.usask.ca!lowey From: lowey@herald.usask.ca (Kevin Lowey,159 Physics,(306) 966-4826,(306) 249-3232) Newsgroups: comp.lang.pascal Subject: Re: Turbo Pascal for UNIX platforms? Message-ID: <1991Jun21.205524.26049@herald.usask.ca> Date: 21 Jun 91 20:55:24 GMT References: Sender: lowey@herald.usask.ca (Kevin Lowey) Reply-To: lowey@herald.usask.ca Organization: University of Saskatchewan Lines: 20 From pshuang@athena.mit.edu (Ping-Shun Huang): > I agree that code written in Turbo Pascal on Intel platforms would not > easily port to UNIX systems for various reasons, but I don't think this > would be one of the worst problems. TP's solution for 64Kb code > segments is to implement units; on UNIX systems, a TP-compatible > compiler would simply compile *ALL* calls as being to 32-bit addresses, > whereas the current DOS versions are supposed to be generating 16-bit > calls internally to units and 32-bit calls between units. Heck, the DOS > compiler could move to 32-bit calls also (thus implementing what C > usually calls the large model without any problems) in my opinion, Turbo Pascal currently has a compiler option that forces far calls for everything. Thus, right now, you can have 32 bit calls in MS-DOS. However, you are still limited to 64K data segments, and at most 64K an any one code segment (each unit is in a different segment). This is accurate to TP 5.5. I haven't tried 6.0 yet. - Kevin Lowey