www.delorie.com/djgpp/doc/utils/utils_15.html   search  
DJGPP Utilities Reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

15. stubedit

Usage: stubedit [-h] [-v] file.exe [field=value . . .]

stubedit is a utility that allows you to modify the DOS exectuable stub loader parameters. These parameters allow you to set the default stack size, real mode memory transfer buffer size, the argv0 value, and DPMI provider.

If -v is not specified and no fields are provided after the file name, stubedit will enter an interactive mode which displays each field and allow you to change the values individually.

Options:

-h

Help mode. When given this switch, stubedit prints internal help.

-v

View mode. When given this switch, stubedit will display the current contents of the stub parameters instead of prompting to modify them.

minstack=

Specify the minimum amount of stack space. The value may be specified in bytes, KBytes (with a K suffix), or MBytes (with a M suffix).

bufsize=

Specify the size of the convential memory transfer buffer size. The value may be specified in bytes or KBytes (with a K suffix). The value must be between 2 KByte and 63 KByte.

runfile=

Specify the base name of the file to actually run. This is a string value of 8 maximum characters, and it is only used when this is a stub pointing to a different image (created by stubify -g).

argv0=

Specify the string to pass as file component of argv[0] (maximum of 16 characters).

dpmi=

Specify the name of the program to load to provide DPMI services if DPMI is not currently available (maximum of 16 characters). The stub will search for this file first in the directory of the image, then each directory in your PATH, and finally the current default directory.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Nov 2004