Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #35798

Re: size of

From glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups comp.lang.c
Subject Re: size of
Date 2013-08-26 01:46 +0000
Organization Aioe.org NNTP Server
Message-ID <kvec17$fvc$2@speranza.aioe.org> (permalink)
References (9 earlier) <kv6isq$604$1@dont-email.me> <kv6oac$qua$1@dont-email.me> <kv9vc2$o0j$1@dont-email.me> <632St.41707$Rr1.15091@en-nntp-08.dc1.easynews.com> <kvaofv$9dg$1@dont-email.me>

Show all headers | View raw


Stephen Sprunk <stephen@sprunk.org> wrote:
> On 24-Aug-13 07:55, Richard Damon wrote:

(snip, someone wrote)
>>> To that point, MS's calloc() apparently will not allow objects
>>> larger than 64kB to be created, while the similar _halloc()
>>> function _will_ create objects larger than 64kB given identical
>>> arguments, probably on the assumption that a programmer who calls
>>> _halloc() rather than calloc() will know that's a possibility.
 
>> The issue was that _halloc didn't return a void* but a huge void*,
 
> Ah, that detail wasn't mentioned before.  Did huge pointers work in code
> compiled for other (i.e. non-huge) memory models?  Shouldn't calloc()
> have the same behavior under the huge memory model?

I believe so. That way you could override the default, so that
it was only used when necessary.  You would have to be careful
with such pointers, so that they never got dereferenced in
the wrong model.

The near and far keywords allowed you to override the defaults for
the other memory models, too.

-- glen

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-14 08:22 -0700
  Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-14 10:38 -0700
  Re: size of Kelsey Bjarnason <kbjarnason@gmail.com> - 2013-08-14 20:20 +0000
    Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-14 14:57 -0700
    Re: size of Ken Brody <kenbrody@spamcop.net> - 2013-08-15 10:14 -0400
      Re: size of Azazel <azazel@remove.azazel.net> - 2013-08-15 10:11 -0500
        Re: size of Ken Brody <kenbrody@spamcop.net> - 2013-08-16 13:13 -0400
    Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-15 08:54 -0700
      Re: size of Kelsey Bjarnason <kbjarnason@gmail.com> - 2013-08-16 16:03 +0000
        Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-16 14:36 -0700
          Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-16 17:42 -0400
          Re: size of Kelsey Bjarnason <kbjarnason@gmail.com> - 2013-08-17 04:50 +0000
            Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-17 03:21 -0700
              Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-17 09:33 -0500
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-17 07:58 -0700
                Re: size of Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-08-17 20:17 +0100
                Re: size of Rosario1903 <Rosario@invalid.invalid> - 2013-08-18 09:22 +0200
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-19 20:42 -0500
                Re: size of Rosario1903 <Rosario@invalid.invalid> - 2013-08-20 09:03 +0200
                Re: size of Rosario1903 <Rosario@invalid.invalid> - 2013-08-20 09:06 +0200
                Re: size of Ian Collins <ian-news@hotmail.com> - 2013-08-20 20:49 +1200
                Re: size of Rosario1903 <Rosario@invalid.invalid> - 2013-08-20 10:57 +0200
                Re: size of Rosario1903 <Rosario@invalid.invalid> - 2013-08-20 12:40 +0200
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-20 07:58 -0500
                Re: size of Rosario1903 <Rosario@invalid.invalid> - 2013-08-20 18:27 +0200
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-20 12:27 -0500
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-20 12:20 -0700
                Re: size of Ike Naar <ike@iceland.freeshell.org> - 2013-08-20 21:02 +0000
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-20 16:10 -0700
                Re: size of Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2013-08-23 10:50 +0300
                Re: size of Rosario1903 <Rosario@invalid.invalid> - 2013-08-21 07:39 +0200
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-22 13:15 -0500
                Re: size of Barry Schwarz <schwarzb@dqel.com> - 2013-08-20 15:17 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-20 16:18 -0700
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-20 20:47 -0500
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-20 23:31 -0400
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-20 23:38 -0500
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-21 07:01 -0400
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-22 21:54 -0500
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-23 00:26 -0400
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-24 04:45 -0500
                Re: size of Richard Damon <Richard@Damon-Family.org> - 2013-08-24 08:55 -0400
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-24 11:54 -0500
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-24 13:27 -0400
                Re: size of Robert Wessel <robertwessel2@yahoo.com> - 2013-08-24 14:12 -0500
                Re: size of Richard Damon <Richard@Damon-Family.org> - 2013-08-24 18:01 -0400
                Re: size of glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-08-26 01:46 +0000
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-24 13:23 -0400
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-24 14:33 -0500
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-24 22:47 -0400
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-25 04:34 -0500
                Re: size of glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-08-26 01:49 +0000
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-21 09:04 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-20 23:07 -0700
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-21 07:06 -0400
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-21 09:06 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-20 23:03 -0700
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-22 13:34 -0500
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-22 15:06 -0400
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-22 14:42 -0500
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-22 12:40 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-22 14:57 -0700
                Re: size of Robert Wessel <robertwessel2@yahoo.com> - 2013-08-22 20:30 -0500
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-22 22:24 -0400
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-22 21:42 -0500
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-23 00:10 -0400
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-22 21:36 -0500
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-24 14:53 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-22 23:30 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-24 10:48 -0700
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-24 14:23 -0500
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-24 15:42 -0700
                Re: size of Richard Damon <Richard@Damon-Family.org> - 2013-08-24 20:09 -0400
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-24 17:52 -0700
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-24 22:53 -0400
                Re: size of Richard Damon <Richard@Damon-Family.org> - 2013-08-25 08:44 -0400
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-26 14:27 -0700
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-26 15:35 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-26 16:08 -0700
                Re: size of Robert Wessel <robertwessel2@yahoo.com> - 2013-08-27 12:29 -0500
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-27 10:45 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-27 14:46 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-29 02:10 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-29 11:38 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-09-01 09:43 -0700
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-09-01 16:14 -0700
                Re: size of Ian Collins <ian-news@hotmail.com> - 2013-09-02 11:42 +1200
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-09-01 20:32 -0400
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-09-03 08:13 -0700
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-09-03 08:31 -0700
                Re: size of Richard Damon <Richard@Damon-Family.org> - 2013-08-26 23:48 -0400
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-26 21:50 -0700
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-27 06:46 -0400
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-27 08:39 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-28 14:10 -0700
                Re: size of glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-08-28 21:46 +0000
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-29 10:15 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-28 17:09 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-29 10:43 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-25 10:49 -0700
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-25 11:15 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-24 14:39 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-25 18:32 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-25 19:48 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-27 01:19 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-27 12:34 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-21 00:19 -0700
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-20 18:28 -0500
                Re: size of Barry Schwarz <schwarzb@dqel.com> - 2013-08-20 22:02 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-20 23:13 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-24 08:48 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-24 14:12 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-24 20:35 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-24 09:16 -0700
                Re: size of Barry Schwarz <schwarzb@dqel.com> - 2013-08-24 15:14 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-24 15:51 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-24 19:39 -0700
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-24 11:48 -0500
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-24 13:36 -0400
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-24 14:24 -0500
                Re: size of Barry Schwarz <schwarzb@dqel.com> - 2013-08-24 15:14 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-24 15:46 -0700
                Re: size of Barry Schwarz <schwarzb@dqel.com> - 2013-08-24 21:42 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-25 01:41 -0700
                Re: size of Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2013-08-25 13:46 -0600
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-25 13:33 -0700
                Re: size of Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2013-08-25 18:18 -0600
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-26 18:27 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-26 21:21 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-27 00:55 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-27 08:27 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-26 18:43 -0700
                Re: size of Richard Damon <Richard@Damon-Family.org> - 2013-08-25 16:52 -0400
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-25 18:34 -0400
                Re: size of Barry Schwarz <schwarzb@dqel.com> - 2013-08-25 16:20 -0700
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-25 21:01 -0400
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-25 19:33 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-26 23:36 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-27 09:15 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-29 00:36 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-29 11:27 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-31 21:42 -0700
                Re: size of James Kuyper <jameskuyper@verizon.net> - 2013-08-24 23:08 -0400
                Re: size of Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2013-08-25 13:44 -0600
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-25 13:31 -0700
                Re: size of Barry Schwarz <schwarzb@dqel.com> - 2013-08-25 16:20 -0700
                Re: size of Richard Damon <Richard@Damon-Family.org> - 2013-08-25 21:48 -0400
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-25 19:30 -0700
                Re: size of Ian Collins <ian-news@hotmail.com> - 2013-08-26 14:45 +1200
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-25 20:08 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-26 18:53 -0700
                Re: size of Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2013-08-26 22:08 -0600
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-26 23:13 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-27 08:47 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-28 23:54 -0700
                Re: size of Rosario1903 <Rosario@invalid.invalid> - 2013-08-27 09:18 +0200
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-29 09:46 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-24 15:08 -0700
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-24 16:39 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-24 17:48 -0700
                Re: size of Tim Rentsch <txr@alumni.caltech.edu> - 2013-08-24 17:55 -0700
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-20 01:02 -0700
                Re: size of Ian Collins <ian-news@hotmail.com> - 2013-08-20 20:54 +1200
                Re: size of Kelsey Bjarnason <kbjarnason@gmail.com> - 2013-08-20 02:39 -0700
                Re: size of Stephen Sprunk <stephen@sprunk.org> - 2013-08-20 08:15 -0500
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-20 08:17 -0700
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-20 13:58 -0700
                Re: size of Ike Naar <ike@iceland.freeshell.org> - 2013-08-20 21:11 +0000
                Re: size of gazelle@shell.xmission.com (Kenny McCormack) - 2013-08-20 21:21 +0000
                Re: size of Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2013-08-20 16:21 -0600
                Re: size of gazelle@shell.xmission.com (Kenny McCormack) - 2013-08-21 12:01 +0000
                Re: size of Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2013-08-21 12:11 -0600
                Re: size of gazelle@shell.xmission.com (Kenny McCormack) - 2013-08-22 09:19 +0000
                Re: size of Ian Collins <ian-news@hotmail.com> - 2013-08-21 10:07 +1200
                Re: size of glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-08-20 23:58 +0000
                Re: size of Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2013-08-23 11:24 +0300
                Re: size of glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-08-23 10:52 +0000
                Re: size of "James Harris" <james.harris.1@gmail.com> - 2013-08-23 12:09 +0100
                Re: size of Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2013-08-23 17:52 +0300
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-20 16:21 -0700
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-21 02:23 -0700
                Re: size of glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-08-21 10:05 +0000
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-21 03:23 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-21 08:22 -0700
                Re: size of Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-08-21 18:54 +0100
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-21 13:51 -0700
                Re: size of Robert Wessel <robertwessel2@yahoo.com> - 2013-08-21 13:41 -0500
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-21 08:42 -0700
                Re: size of Kelsey Bjarnason <kbjarnason@gmail.com> - 2013-08-20 20:44 -0700
                Re: size of Malcolm McLean <malcolm.mclean5@btinternet.com> - 2013-08-21 02:30 -0700
                Re: size of Keith Thompson <kst-u@mib.org> - 2013-08-21 08:30 -0700
                Re: size of Kelsey Bjarnason <kbjarnason@gmail.com> - 2013-08-18 22:15 -0700
              Re: size of Kelsey Bjarnason <kbjarnason@gmail.com> - 2013-08-18 22:08 -0700

csiph-web