www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/10/06:30:47

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Basic Help with DJGPP MEMORY
Date: Sat, 08 Feb 1997 14:14:17 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 32
Message-ID: <32FCFAB9.3C02@cs.com>
References: <32FB72EE DOT 41C6 AT iastate DOT edu>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp104.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

James B. Bryant wrote:
> 
> Does DJGPP use _all_ of the same basic libraries that TC v3.X uses?
> What I am specifically interested in is how to allocate mulitdimensional
> arrays, and if they are faster than declaring two 1-D arrays.

Array handling isn't a part of library code; it's basic compiler
functionality.  Multi-dim arrays are part of the ANSI C spec, and are
handled in basically the same way by every C compiler I've ever heard
of.  You're asking a question that would be better suited to a class or
textbook than a technical support newsgroup.

As far as speed, gcc with optimizations produces better code than any
other DOS compiler.  If you use multi-dimensional arrays, gcc will
probably optimize them into something that works a lot faster than two
or more single-dimensional arrays.

> Are there any simple tutorials out there starting from basics moving to
> advanced programming?

Again, this is a matter much better suited to books.  Opinions will vary
wildly on what the best is, but you may want to try out Kernighan and
Ritchie (don't remember the name of the book offhand) and/or The Waite
Group's _New C Primer Plus_.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |        fighteer AT cs DOT com         |
| "Starting flamewars since 1993"  |   http://www.cs.com/fighteer   |
|  *** NOTICE ***  This .signature is generated randomly.           |
|                  If you don't like it, sue my computer.           |
---------------------------------------------------------------------

- Raw text -


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