delphi DCC64.exe delphi64位命令行编译器揭秘  
官方Delphi 学习QQ群: 682628230(三千人)
频道

delphi DCC64.exe delphi64位命令行编译器揭秘


 DCC32.exe肯定众多D迷都用过,Dcc64.exe功能也类似,是用来编译支持64位windows平台的应用程序的编译器,Dcc64可以在微软视窗32位平台上运行,所以Dcc64是应用程序实现跨平台的利器,当然64位的windows开发环境它也是可以支持的。

稍后会介绍C++下跨OSX平台和Delphi下跨OSX平台的编译器揭秘
DCC64 功能揭秘
编译的原始整数类型都是64位的。(Native integer types are 64-bit)
指针也是64位。(Pointers are 64-bit.)
动态数组拥有64位的索引(Dynamic arrays have 64-bit indexes)
浮点运算有在single 和double 精度下运行,Extended 精度的浮点运算将不能支持。
SHL/SHR behavior:32位整形将转移到使用32位空间,64位整形将转变到使用64位的空间
 混合的Pascal/汇编 代码将不会被支持。 

命令行帮助 
C:>dcc64 -h
 Embarcadero Delphi for Win64 compiler version 23.0
 Copyright (c) 1983,2011 Embarcadero Technologies, Inc.

 Syntax: dcc64 [options] filename [options]

   -A= = Set unit alias
   -B = Build all units
   -CC = Console target
   -CG = GUI target
   -D = Define conditionals
   -E = EXE/DLL output directory
   -F = Find error
   -GD = Detailed map file
   -GP = Map file with publics
   -GS = Map file with segments
   -H = Output hint messages
   -I = Include directories
   -K = Set image base addr
   -LE = package .bpl output directory
   -LN = package .dcp output directory
   -LU = Use package
   -M = Make modified units
   -N0 = unit .dcu output directory
   -NH = unit .hpp output directory
   -NO = unit .obj output directory
   -NB = unit .bpi output directory
   -NS = Namespace search path
   -O = Object directories
   -P = look for 8.3 file names also
   -Q = Quiet compile
   -R = Resource directories
   -U = Unit directories
   -V = Debug information in EXE
   -VR = Generate remote debug (RSM)
   -VT = Debug information in TDS
   -W[+|-|^][warn_id] = Output warning messages
   -Z = Output 'never build' DCPs
   -$ = Compiler directive
   --help = Show this help screen
   --version = Show name and version
   --codepage: = specify source file encoding
   --default-namespace: = set namespace
   --depends = output unit dependency information
   --doc = output XML documentation
   --drc = output resource string .drc file
   --no-config = do not load default dcc64.cfg file
   --description: = set executable description
   --inline:{on|off|auto} = function inlining control
   --peflags: = set extra PE Header flags field
   --peoptflags: = set extra PE Header optional flags field
   --peosversion:. = set OS Version fields in PE Header (default: 5.0)
   --pesubsysversion:. = set Subsystem Version fields in PE Header (default: 4.0)
   --peuserversion:. = set User Version fields in PE Header (default: 0.0)
 Compiler switches: -$ (defaults are shown below)
   A8  Aligned record fields
   B-  Full boolean Evaluation
   C+  Evaluate assertions at runtime
   D+  Debug information
   G+  Use imported data references
   H+  Use long strings by default
   I+  I/O checking
   J-  Writeable structured consts
   L+  Local debug symbols
   M-  Runtime type info
   O+  Optimization
   P+  Open string params
   Q-  Integer overflow checking
   R-  Range checking
   T-  Typed @ operator
   V+  Strict var-strings
   W-  Generate stack frames
   X+  Extended syntax
   Y+  Symbol reference info
   Z1  Minimum size of enum types
 Stack size: -$M (default 16384,1048576)

64-bit 内链汇编
DCC64.EXE 支持64位的汇编代码,但是有一些限制,书写必须要完整,在delphi或者汇编中,绝对不允许混用。

Pseudo-ops虚运算只能管理堆,下面的表中友一些详细的说明

Pseudo-op

.PARAMS#

Use this pseudo-instruction when calling external functions. This pseudo-instruction maps the function parameters in accordance with the x64 calling convention. When used, a pseudo-variable, @params, is available for passing stack parameters to called functions. Use @params as a byte array where the first stack parameter is @params[32], locations 0-31 represent the 4 register parameters.
.PUSHNV

REG Generates code to save and restore the non-volatile general purpose register in prologue and epilogue.
.SAVENV

XMM# Has the same functionality as .PUSHNV REG, except that .SAVENV XMM# is for non-volatile XMM registers.
.NOFRAME

Forcibly disables the generation of a stack frame as long as there are no local variables declared and the parameter count is less than 4. Use only for "leaf" functions.
推荐分享
图文皆来源于网络,内容仅做公益性分享,版权归原作者所有,如有侵权请告知删除!
 

Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号

执行时间: 0.1239709854126 seconds