Delphi Console applications in Crimson Editor |
|
qoo1234
版主 ![]() ![]() ![]() ![]() ![]() ![]() 發表:256 回覆:1167 積分:659 註冊:2003-02-24 發送簡訊給我 |
Delphi Console applications in Crimson Editor 1.下載:Crimson Editor: http://www.crimsoneditor.com/
2.設定:Crimson Editor->Tools Menu->Conf. User Tools
![]() ![]() |
qoo1234
版主 ![]() ![]() ![]() ![]() ![]() ![]() 發表:256 回覆:1167 積分:659 註冊:2003-02-24 發送簡訊給我 |
使用文字編輯器編譯CS程式
------------------------------------------------------------------
一、使用Crimson Editor
(1)Console應用程式,編譯設定:
命令:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe
參數: /out:$(FileTitle).exe /target:exe $(FileName)
預設目錄:$(FileDir)
(2)Windows應用程式,編譯設定:
命令:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe
參數: /out:$(FileTitle).exe /target:winexe $(FileName)
預設目錄:$(FileDir)
(3)Class library(DLL)編譯設定:
命令:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe
參數: /target:library $(FileName)
預設目錄:$(FileDir)
二、使用EditPlus 2
(1)Console應用程式,編譯設定:
命令:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe
參數: /out:$(FileNameNoExt).exe /target:exe $(FileName)
預設目錄:$(FileDir)
(2)Windows應用程式,編譯設定:
命令:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe
參數: /out:$(FileNameNoExt).exe /target:winexe $(FileName)
預設目錄:$(FileDir)
(3)Class library(DLL)編譯設定:
命令:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe
參數: /target:library $(FileName)
預設目錄:$(FileDir)
![]() |
qoo1234
版主 ![]() ![]() ![]() ![]() ![]() ![]() 發表:256 回覆:1167 積分:659 註冊:2003-02-24 發送簡訊給我 |
補充:文字編輯器直接 編譯 VC# 專案 一、使用Crimson Editor Windows應用程式,編譯設定:
命令:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe
參數: /optimize /out:$(FileTitle).exe /target:winexe *.cs
預設目錄:$(FileDir) 二、使用EditPlus 2 Windows應用程式,編譯設定: (多檔專案編輯把$(FileName)改成*.cs即可)
命令:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe
參數: /optimize /out:$(FileNameNoExt).exe /target:winexe *.cs
預設目錄:$(FileDir)
![]() |
qoo1234
版主 ![]() ![]() ![]() ![]() ![]() ![]() 發表:256 回覆:1167 積分:659 註冊:2003-02-24 發送簡訊給我 |
使用文字編輯器編譯GCC程式
-----------------------------------------------------------
一、使用 Crimson Editor
(1) gcc編譯 .c (Console)程式
命令:C:\MinGW\bin\gcc.exe
參數:$(FileName) -O3 -o $(FileTitle)
預設目錄:$(FileDir)
(2) g 編譯 .cpp(Console)程式
命令:C:\MinGW\bin\g .exe
參數:$(FileName) -O3 -o $(FileTitle)
預設目錄:$(FileDir)
(3) g 編譯 .cpp(Windows)程式
命令:C:\MinGW\bin\g .exe
參數:$(FileName) -O3 -mwindows -o $(FileTitle)
預設目錄:$(FileDir)
(4) g 編譯 多檔.cpp(Windows)程式
命令:C:\MinGW\bin\g .exe
參數:*.cpp -O3 -mwindows -o $(FileTitle)
預設目錄:$(FileDir)
二、使用 EditPlus 2
(1) gcc編譯 .c (Console)程式
命令:C:\MinGW\bin\gcc.exe
參數:$(FileName) -O3 -o $(FileNameNoExt)
預設目錄:$(FileDir)
(2) g 編譯 .cpp(Console)程式
命令:C:\MinGW\bin\g .exe
參數:$(FileName) -O3 -o $(FileNameNoExt)
預設目錄:$(FileDir)
(3) g 編譯 .cpp(Windows)程式
命令:C:\MinGW\bin\g .exe
參數:$(FileName) -O3 -mwindows -o $(FileNameNoExt)
預設目錄:$(FileDir)
(4) g 編譯 多檔.cpp(Windows)程式
命令:C:\MinGW\bin\g .exe
參數:*.cpp -O3 -mwindows -o $(FileNameNoExt)
預設目錄:$(FileDir)
![]() |
qoo1234
版主 ![]() ![]() ![]() ![]() ![]() ![]() 發表:256 回覆:1167 積分:659 註冊:2003-02-24 發送簡訊給我 |
使用文字編輯器與(Mono 1.0.1)MSC.exe編譯程式 =>編譯 C#
--------------------------------------------------------------------
一、使用Crimson Editor (1)Console應用程式,編譯設定:
命令:C:\Program Files\Mono-1.0.1\lib\mcs.exe
參數: /optimize $(FileName) /out:$(FileTitle).exe
預設目錄:$(FileDir) (2)Windows應用程式,編譯設定: (Mono不支援Windows Forms,仍然可以這樣編譯)
命令:C:\Program Files\Mono-1.0.1\lib\mcs.exe
參數:$(FileName) /r:System.Windows.Forms.dll /r:System.Drawing.dll
預設目錄:$(FileDir) (3)Class library(DLL)編譯設定:
命令:C:\Program Files\Mono-1.0.1\lib\mcs.exe
參數: --target library /out:$(FileTitle).dll $(FileName)
預設目錄:$(FileDir)
二、使用EditPlus 2 (1)Console應用程式,編譯設定:
命令:C:\Program Files\Mono-1.0.1\lib\mcs.exe
參數: /optimize $(FileName) /out:$(FileNameNoExt).exe
預設目錄:$(FileDir) (2)Windows應用程式,編譯設定: (Mono不支援Windows Forms,仍然可以這樣編譯)
命令:C:\Program Files\Mono-1.0.1\lib\mcs.exe
參數: $(FileName) /r:System.Windows.Forms.dll /r:System.Drawing.dll
預設目錄:$(FileDir) (3)Class library(DLL)編譯設定:
命令:C:\Program Files\Mono-1.0.1\lib\mcs.exe
參數: --target library /out:$(FileNameNoExt).dll $(FileName)
預設目錄:$(FileDir)
![]() |
qoo1234
版主 ![]() ![]() ![]() ![]() ![]() ![]() 發表:256 回覆:1167 積分:659 註冊:2003-02-24 發送簡訊給我 |
Borland C 5.5 Compiler- Free Command Line Tools
===============================================================
一、系統環境變數設定與BCC32組態檔設定: (1)C:\autoexec.bat 加入: set path=%path%;c:\Borland\Bcc55 (2)C:\Borland\bcc55\Bin加入bcc32.cfg 和ilink32.cfg 組態檔: bcc32.cfg 內容如下: -I"c:\Borland\Bcc55\include" -L"c:\Borland\Bcc55\lib" ilink32.cfg 內容如下: -L"c:\Borland\Bcc55\lib" 二、BCC32編譯設定: (1)Compile Win32 Windows Program (編譯視窗程式):(RELEASE mode) Command: C:\Borland\bcc55\Bin\bcc32.exe Parameters: -w-par -tW -tWM -q $File Initial Folder: $FileDir Capture output: checked sound alert when completed checked Regular Expression: ^\(Error\|Warning\) [^ ] \(. \) \([0-9] \): *Note*: There is a Trailing Space on the above line. File: 2 Line: 3 Meaning of parameters: tWM = The compiler creates a multi-threaded .EXE tW = Target is a Windows application q = Suppress compiler identification banner w-par = Supress parameter 'parameter' is never used warning message. (2)Compile Win32 DLL : Command: C:\Borland\bcc55\Bin\bcc32.exe Parameters: -WD -O2 -Vx -Ve -X- -a8 -b- -k- -vi -tWD -tWM- -q -lD"" -laa -lTpd -lx -lGn -lGi $File Initial Folder: $FileDir Capture output: checked sound alert when completed. Checked Regular Expression: ^\(Error\|Warning\) [^ ] \(. \) \([0-9] \): *Note*: There is a Trailing Space on the above line. File: File 2 Line: Line 3 Meaning of parameters: tWM = The compiler creates a multi-threaded .EXE tWD = Generate a .DLL q = Suppress compiler identification banner WD = Generate a .DLL executable (same as -tWD) O2 = Generate fastest possible code Vx = Zero-length empty class member functions Ve = Zero-length empty base classes X- = use compiler autodependency output a8 = Quad word alignment aligns non-character data at 64-bit word (8-byte) boundaries. Data with type sizes of less than eight bytes are aligned on their type size. b- = Makes enums byte-sized when possible k- = Turn off standard stack frame vi = Control expansion of inline functions -lD"" = -laa = Builds a 32-bit Windows application -lTpd = Targets a Windows .DLL file -lx = Suppresses creation of map file -lGn = Do not generate state files -lGi = (3)Compile Win32 Windows Program (編譯視窗程式):(DEBUG mode) Command: C:\Borland\bcc55\Bin\bcc32.exe Parameters: -w-par -tW -tWM -v -q -lv $File Initial Folder: $FileDir Capture output: checked sound alert when completed Checked Regular Expression: ^\(Error\|Warning\) [^ ] \(. \) \([0-9] \): *Note*: There is a Trailing Space on the above line. File: File 2 Line: Line 3 Meaning of parameters: tWM = The compiler creates a multi-threaded .EXE tW = Target is a Windows application q = Suppress compiler identification banner w-par = Supress parameter 'parameter' is never used warning message v = Turn on source debugging for compiler lv = Turn on source debugging for Linker (4)Borland C Turbo-Debugger - RUN Win32 Windows Program compiled in DEBUG : Command: C:\Borland\BCC55\Bin\TD32.EXE Parameters: $BaseName Initial Folder: $FileDir Close DOS Window on Exit (5)Borland's Impdef: Command: C:\Borland\BCC55\Bin\impdef.exe Parameters: output.def $BaseName Initial Folder: $FileDir capture output: checked sound alert when completed: checked Everything else empty. (5)Compile Console Application Program (編譯DOS視窗程式): Command: C:\Borland\bcc55\Bin\bcc32.exe Parameters: $File Initial Folder: $FileDir Capture output: checked ![]() |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |