Re: The different groups and segments of object files

gah4@u.washington.edu
Sun, 21 Jun 2020 01:50:55 -0700 (PDT)

          From comp.compilers

Related articles
The different groups and segments of object files johann@myrkraverk.com (Johann 'Myrkraverk' Oskarsson) (2020-06-19)
Re: The different groups and segments of object files gah4@u.washington.edu (2020-06-19)
Re: The different groups and segments of object files DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2020-06-20)
Re: The different groups and segments of object files gah4@u.washington.edu (2020-06-21)
Re: The different groups and segments of object files johann@myrkraverk.invalid (Johann 'Myrkraverk' Oskarsson) (2020-06-25)
Re: The different groups and segments of object files johann@myrkraverk.invalid (Johann 'Myrkraverk' Oskarsson) (2020-06-25)
Re: The different groups and segments of object files DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2020-06-25)
Re: The different groups and segments of object files DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2020-06-25)
Re: The different groups and segments of object files DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2020-06-26)
Re: The different groups and segments of object files gah4@u.washington.edu (2020-07-02)
| List of all articles for this month |

From: gah4@u.washington.edu
Newsgroups: comp.compilers
Date: Sun, 21 Jun 2020 01:50:55 -0700 (PDT)
Organization: Compilers Central
References: 20-06-004 20-06-005
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="40049"; mail-complaints-to="abuse@iecc.com"
Keywords: code, history
Posted-Date: 21 Jun 2020 10:41:03 EDT
In-Reply-To: 20-06-005

(I wrote)


> The Watcom (at least before OpenWatcom) compilers were the only ones
> I knew to generate large model (more than one segment) 32 bit code.


> It might be that OS/2 even knows how to load and run it.
> (I am pretty sure that Windows and Unix don't.)


(and our great moderator replied)


> [On the 386, all of the segments in a process were mapped into a
> single 32 bit paged linear address space, so the total size of all
> segments in a program was limited to 4G unless you did pseudo-swapping
> of segments in and out of the address space, which I don't think
> anyone did.


> So not only were they slow, they didn't help. -John]


I believe OS/2 could, but I never tried it to find out.


And yes putting a 32 bit paging unit in between doesn't help.


A program could use multiple segments totaling less than 4GB,
or with, I hadn't thought of the name but pseudo-swapping sounds
about right, use more than 4GB. With a little locality, it should
be able to get enough done before pseudo-swapping.


But as far as I know, there is still the overhead for loading
segment descriptors. Well, the extra two (FS and GS) could help.
But a little segment descriptor cache would have helped more.


Since OS/2 could run both 16 bit and 32 bit code, it might not have
been hard to add.


In any case, the compilers can generate the code, whether or not
any OS can run it.


There was also PAE:


https://en.wikipedia.org/wiki/Physical_Address_Extension


which I thought would help, but never tried to figure out what
it could do, or how to actually do it.
[PAE let you attach more physical memory to an x86 but didn't increase the 4G
process address space. For that you need x86-64 or Itanium. -John]



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.