public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
From: u-vpoa@aetey.se
To: Jody Bruchon <jody@jodybruchon.com>
Cc: ELKS <linux-8086@vger.kernel.org>
Subject: Re: the memory model being used in elks?
Date: Sat, 9 May 2015 20:38:36 +0200	[thread overview]
Message-ID: <20150509183836.GL8197@example.net> (raw)
In-Reply-To: <554E48F4.5010406@jodybruchon.com>

On Sat, May 09, 2015 at 01:50:44PM -0400, Jody Bruchon wrote:
> On 5/9/2015 1:47 PM, u-vpoa@aetey.se wrote:
> >IOW, as much as I can see, the binary is built correctly and it is
> >the memory allocation by the kernel which looks surprizing.

> It is my understanding that bcc assumes DS=ES=SS and both stack and heap
> data use the same code segment.

Yes, this is fine.

> How did you determine the memory usage of
> the program to be 60K? Does that include all usage or only heap usage?

I counted the approximate size of the static and allocated data
objects and also tested. This includes all the data ("data+bss"+heap+stack).

This worked fine with separate i/d on Venix/86 on IBM PC XT, where DS=SS
and heap and stack grew from the opposite ends of the segment, heap from
the bottom up and the stack from the top down (the hole in the middle if
big enough was used for other processes' data, not wasted iirc).

Venix also had kernel support for ES as extra data of a process so
f.i. access to the graphic memory was done via ES. The compiler was not
involved in these tricks, it just did not use ES.

Rl


  reply	other threads:[~2015-05-09 18:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-08 20:14 the memory model being used in elks? u-vpoa
2015-05-09 17:03 ` One Thousand Gnomes
2015-05-09 17:47   ` u-vpoa
2015-05-09 17:50     ` Jody Bruchon
2015-05-09 18:38       ` u-vpoa [this message]
2015-05-10 15:31         ` Juan Perez-Sanchez
2015-05-10 18:40           ` u-vpoa
2015-05-10 20:27             ` Alan Cox
2015-05-10 21:19               ` u-vpoa
2015-05-10 21:51                 ` Alan Cox
2015-05-11  6:10                   ` u-vpoa
2015-05-11  9:27                     ` Alan Cox
2015-05-11 11:25                       ` u-vpoa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150509183836.GL8197@example.net \
    --to=u-vpoa@aetey.se \
    --cc=jody@jodybruchon.com \
    --cc=linux-8086@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox