delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/30/04:06:07

Date: Thu, 30 Nov 1995 08:47:39 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Quantum Porcupine <jshagam AT nmsu DOT edu>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Declaring arrays inside generic function

On Tue, 28 Nov 1995, Quantum Porcupine wrote:

> > I have a generic function which has as one of its input parameters an int 
> > which identifies an array size. Within the function, I attempt to declare 
> > an array of int's:
> > 
> > int item_count [array_size];
> > 
> > where array_size is the input parameter. When I look at the array in the 
> > debugger (gdb) however, what i see is an array of int pointers (I think) 
> > - something like int (*) [60000] (the 60000 is approximate). If I 
>
> That's probably due to the old 64k segment limit imposed by DOS... it's 
> probably just splitting it across many segments like any coder who's 
> worked in realmode (yeah, I know, this is pmode, weird huh?) has done 
> many times...

DJGPP doesn't impose that limit at all.  When you call a DOS function 
(like write()) from DJGPP it breaks your data into chunks that DOS can 
grok and feeds them in sequence.  Anyway, even this has nothing to do 
with this thread main issue which doesn't involve any DOS calls 
whatsoever.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019