用UltraEdit、EditPlus配置IDE

UltraEdit:

UltraEdit+TC2.0

高级-->工具栏配置

-----------------------------------------------------------------------------------------------

命令行:TCC.EXE -IINCLUDE -LLIB  -n%p -w %f

工作目录:D:/TC2

菜单项名称:TC 2.0(Build)

 -n%p  :输出文件到与源文件相同的目录

-----------------------------------------------------------------------------------------------

命令行:%n

工作目录:空

菜单项名称:TC 2.0(Run)

=======================================================

UltraEdit:

 下列命令可以传递完整文件名中的一部分:

        %P   仅路径 (“C:/project/test/”)
 
        %N   仅文件名 (“test”)

        %E   仅扩展名 (“.c”)

      %P%N%E 等于 %F,就是上述示例中的 (“C:/project/test/test.c”)。

  注意 - 如果 %f、%p、%n、%e 是小写字母,文件名以长文件名传递,应该加上引号,例如“%f”或“%p%n”等。如果 %F、%P、%N、%E 是大写字母,传递的文件名和路径将被转

换为“8.3”短文件名格式,以获取与 DOS 程序最大程度的兼容。


   另外还有下列命令可用:

           %R       可以用于方案的完整路径/名字 (%r 表示长文件名,%R 表示短文件名)

           %RP        可以用于完整的方案路径 (%rp 表示长文件名,%RP 表示短文件名)

           %RN        只用于方案名字 (%rn 表示长文件名,%RN 表示短文件名)

           %modify%    在某些场合下,可能每次在工具运行时需要修改命令行参数。要进行修改,在命令行中添加 %modify%,那么运行工具时将显示一个对话框,用户可以修
                        改命令行或不修改取消运行。

           %sel%        这是用来让 UltraEdit 添加来自活动文档的加亮/选定的文本到命令行中,替换 %sel% 参数。

           %Env:        允许用户在命令中使用环境变量。环境变量直接跟随在 %Env: 后面,UltraEdit 会用匹配的环境变量内容替换。

           %line%       这是用来让 UltraEdit 添加光标所处的行号到命令行中,替换 %line% - 1 表示第一行。
 
           %col%        这是用来让 UltraEdit 添加光标所处的列号到命令行中,替换 %col% - 1 表示第一列。
 ==================================================================================

tc 2.0------------tcc的开关:  
  Turbo   C     Version   2.0     Copyright   (c)   1987,   1988   Borland   International  
  Syntax   is:   TCC   [   options   ]   file[s]               *   =   default;   -x-   =   turn   switch   x   off  
      -1             80186/286   Instructions                     -A             Disable   non-ANSI   extensions  
      -B             Compile   via   assembly                         -C             Allow   nested   comments  
      -Dxxx       Define   macro                                         -Exxx       Alternate   assembler   name  
      -G             Generate   for   speed                             -Ixxx       Include   files   directory  
      -K             Default   char   is   unsigned                 -Lxxx       Libraries   directory  
      -M             Generate   link   map                               -N             Check   stack   overflow  
      -O             Optimize   jumps                                     -S             Produce   assembly   output  
      -Uxxx       Undefine   macro                                     -Z             Optimize   register   usage  
      -a             Generate   word   alignment                   -c             Compile   only  
      -d             Merge   duplicate   strings                   -exxx       Executable   file   name  
      -f         *   Floating   point   emulator                   -f87         8087   floating   point  
      -gN           Stop   after   N   warnings                       -iN           Maximum   identifier   length   N  
      -jN           Stop   after   N   errors                           -k             Standard   stack   frame  
      -lx           Pass   option   x   to   linker                   -mc           Compact   Model  
      -mh           Huge   Model                                             -ml           Large   Model  
      -mm           Medium   Model                                         -ms       *   Small   Model  
      -mt           Tiny   Model                                             -nxxx       Output   file   directory  
      -oxxx       Object   file   name                                 -p             Pascal   calls  
      -r         *   Register   variables                             -u         *   Underscores   on   externs  
      -v             Source   level   debugging                     -w             Enable   all   warnings  
      -wxxx       Enable   warning   xxx                             -w-xxx     Disable   warning   xxx  
      -y             Produce   line   number   info                 -zxxx       Set   segment   names  

tc++3.0------------ tcc的用法

 Turbo C++ Version 3.00 Copyright (c) 1992 Borland International
Syntax is: TCC [ options ] file[s]     * = default; -x- = turn switch x off
  -1      80186/286 Instructions    -2      80286 Protected Mode Inst.
  -Ax     Disable extensions        -B      Compile via assembly
  -C      Allow nested comments     -Dxxx   Define macro
  -Exxx   Alternate Assembler name  -G      Generate for speed
  -Ixxx   Include files directory   -K      Default char is unsigned
  -Lxxx   Libraries directory       -M      Generate link map
  -N      Check stack overflow      -O      Optimize jumps
  -P      Force C++ compile         -Qxxx   Memory usage control
  -S      Produce assembly output   -Txxx   Set assembler option
  -Uxxx   Undefine macro            -Vx     Virtual table control
  -X      Suppress autodep. output  -Yx     Overlay control
  -Z      Suppress register reloads -a      Generate word alignment
  -b    * Treat enums as integers   -c      Compile only
  -d      Merge duplicate strings   -exxx   Executable file name
  -fxx    Floating point options    -gN     Stop after N warnings
  -iN     Max. identifier length    -jN     Stop after N errors
  -k      Standard stack frame      -lx     Set linker option
  -mx     Set Memory Model          -nxxx   Output file directory
  -oxxx   Object file name          -p      Pascal calls
  -r    * Register variables        -u    * Underscores on externs
  -v      Source level debugging    -wxxx   Warning control
  -y      Produce line number info  -zxxx   Set segment names

******************************************************************************************************

EditPlus+Tc2.0  (EditPlus2.31以上版本)

首先EditPlus配置的TC2.0 IDE,编译时不能找到tlink.exe文件的解决办法:

设置环境变量path

我的电脑--属性--高级--环境变量-系统变量(或用户变量)--path中添加一自己的目录,例如 D:/MyCmd

将tlink.exe文件放在该文件夹中即可,例如:

C:/Program Files/Microsoft Visual Studio/Common/Tools/WinNT;C:/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin;C:/Program Files/Microsoft Visual Studio/Common/Tools;C:/Program Files/Microsoft Visual Studio/VC98/bin;D:/MyCmd

 

工具-->配置用户工具

组名称:TC 2.0

添加应用程序:

菜单文本:TC 2.0(Build)

命令:D:/TC2/tcc.exe -ID:/TC2/INCLUDE -LD:/TC2/LIB

参数:$(FileName)

初始目录:$(FileDir)

捕获输出

------------------------------------------------------------------------------------------------

菜单文本:TC 2.0(Run)

命令:$(FileNameNoExt)

参数:空

初始目录:空

捕获输出

------------------------------------------------------------------------------------------------

 菜单文本:TC 2.0(Make Asm)

命令:D:/TC2/tcc.exe -ID:/TC2/INCLUDE -S

参数:$(FileName)

初始目录:$(FileDir)

捕获输出

------------------------------------------------------------------------------------------------

EditPlus:

参数 描述
$(FilePath) 文件路径(文件全名,含目录和文件名)
$(FileDir) 文件目录(不带文件名)
$(FileName) 文件名(不带目录)
$(FileNameNoExt) 不带扩展名的文件名(不带目录)
$(FileExt) 扩展名(当前文件)
$(ProjectName) 工程名称(当前工程名)
$(CurLine) 当前行号(光标位置处的行号)
$(CurCol) 当前列号(光标位置处的列号)
$(CurSel) 当前文本(插入当前选定文本)
$(CurWord) 当前单词(插入当前单词)
$(WindowList) 显示当前窗口列表并选择特定文件

 

----------------------------------------------------------------------------------------

依此可推出其他,如VC++6.0

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值