Sender: ghosts (U-2◆Hell Express), Board: DOS
Title: Re: How long can the command line be?
Posted from: BBS Shuimu Tsinghua Station (Mon Jul 28 23:54:50 1997)
【 In lihm (Miming)'s post it was mentioned: 】
: Programs need to be compiled from the command line, with lots of switches, options, parameters, etc.
: So a compile or link command often exceeds the command-line length limit, resulting in
: the error arg list too lang.
: How can this be solved?
Under DOS the command line generally can't exceed 127 characters.
It seems MS C or MS Fortran had software that could raise this limit to 4096?
But I've never used this kind of thing.
Another method is to set environment variables, like tmp=, include=, and so on.
There are also ones that set pseudo-instructions (MASM does this), putting the parameter settings directly into the source program.
But neither pseudo-instructions nor environment variables have any unified standard,
you have to analyze each specific software case by case
--
Space shuttle: Hey man, can you go a little faster?
Boeing 747: The bus is only 64K, it's already overloaded. Switch to fiber optic.
_|_
__^|^__
---0==0__O__0==0---
※ Edited by ·ghosts on Jul 28 23:55:51·
※ Edited by ·ghosts on Jul 28 23:57:04·
※ Source: ·BBS Shuimu Tsinghua Station bbs.net.tsinghua.edu.cn·
(This post was copied using the S-Term article copy script)
==================================================
Title: Re: How long can the command line be?
Posted from: BBS Shuimu Tsinghua Station (Mon Jul 28 23:54:50 1997)
【 In lihm (Miming)'s post it was mentioned: 】
: Programs need to be compiled from the command line, with lots of switches, options, parameters, etc.
: So a compile or link command often exceeds the command-line length limit, resulting in
: the error arg list too lang.
: How can this be solved?
Under DOS the command line generally can't exceed 127 characters.
It seems MS C or MS Fortran had software that could raise this limit to 4096?
But I've never used this kind of thing.
Another method is to set environment variables, like tmp=, include=, and so on.
There are also ones that set pseudo-instructions (MASM does this), putting the parameter settings directly into the source program.
But neither pseudo-instructions nor environment variables have any unified standard,
you have to analyze each specific software case by case

--
Space shuttle: Hey man, can you go a little faster?
Boeing 747: The bus is only 64K, it's already overloaded. Switch to fiber optic.
_|_
__^|^__
---0==0__O__0==0---
※ Edited by ·ghosts on Jul 28 23:55:51·
※ Edited by ·ghosts on Jul 28 23:57:04·
※ Source: ·BBS Shuimu Tsinghua Station bbs.net.tsinghua.edu.cn·
(This post was copied using the S-Term article copy script)
==================================================
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
