delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/19/09:45:23

From: oohoseoo AT aol DOT com (OoHOSEoO)
Newsgroups: comp.os.msdos.djgpp
Subject: system() bloat! what's going on?
Lines: 15
Message-ID: <1998081521243700.RAA18260@ladder03.news.aol.com>
NNTP-Posting-Host: ladder03.news.aol.com
Date: 15 Aug 1998 21:24:37 GMT
Organization: AOL http://www.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I just checked a program I recently compiled and found it's size to be
abnormally high.  After looking through the source I found that it was due to
the system() functions.. after commenting the system() function out the code
what a nice 38k, with the system() function in the code it was damn near double
that! 72k.  A friend told me that it may be related to the overhead necessary
to switch back into real mode.  So what's the story.. and is there a way to
reduce this?  After all, I could probably just write the function that performs
the same as the program I am calling through system().

Thanks,


James (OoHOSEoO AT aol DOT com)
*please enable "Email Author" or "CC Author" before you post to the group. 
Thanks :)

- Raw text -


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