Turbo-C
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
터보-C 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
Lua 게시판
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C/C++ Q/A
[3329] Re:makefile에 관한 질문...
Starlet [starlet5] 1541 읽음    2004-04-29 21:36
Borland C++ 3.1 도움말 파일에서 발췌했습니다. 참고하시기 바랍니다.

BCC Option   |What Command-line Option Does, Affects
================================================================================
@filename    |Response file name
+filename    |Configuration file, alternate file name
-1           |80186 instructions
-1-          |8088/8086 instructions
-2           |80286 protected-mode compatible instructions
-3           |80386 protected-mode compatible instructions
-A           |Keywords, ANSI only
-A-, -AT     |Keywords, Borland C++ (default)
-AK          |?Keywords, Kernighan and Ritchie only
-AU          |Keywords, UNIX only
-a           |Align word
-a-          |Align byte (default)
-B           |Inline assembly code; Compile, call assembler to process
-b           |Enums word-sized (default)
-b-          |Enums signed or unsigned
-C           |Comments nested
-C-          |Comments not nested (default)
-c           |Compile to .OBJ but do not link
-Dname       |Define name to null string
-Dname=string|Define name to string
-d           |Merge duplicate strings on
-d-          |Merge duplicate strings off (default)
-Efilename   |Assembler to use = filename
-efilename   |Link to produce filename.EXE
-Fc          |COMDEF generation
-Ff          |Far variables, create automatically
-Ff=size     |Far variables, create automatically; set threshold
-Fm          |Far options, enable -Fc, -Ff, and -Fs
-Fs          |Far: assume DS = SS in all memory models
-f           |Floating point, emulate (default)
-f-          |Floating point, don't do
-ff          |Floating point, fast (default)
-ff-         |Floating point, strict ANSI
-f87         |8087 hardware instructions
-f287        |80287 hardware instructions
-G           |Optimize, speed
-G-          |Optimize, size (default)
-gn          |Warnings: stop after n messages
-H           |Precompiled headers, generate and use
-H-          |Precompiled headers, turns off generation and use
-Hu          |Precompiled headers, use but do not generate
-H=filename  |Precompiled headers, sets name of file
-h           |Fast huge pointer arithmetic
-Ipath       |Include files, directories
-in          |Identifiers, significant length = n
-Jg          |Definitions for all template instances, and
              |merge duplicates (default).
-Jgd         |Public definitions for all template instances
-Jgx         |External references for all template instances
-jn          |Errors: stop after n messages
-K           |Default character type unsigned
-K-          |Default character type signed (default)
-k           |Standard stack frame on (default)
-Lpath       |Libraries, directories
-lx          |Linker, pass option x
-l-x         |Linker, suppress option x
-M           |Linker, create a map file
-mc          |Memory model =  compact
-mh          |Memory model =  huge
-ml          |Memory model =  large
-mm          |Memory model =  medium
-mm!         |Memory model =  medium; Assume DS != SS
-ms          |Memory model =  small (default)
-ms!         |Memory model =  small;  Assume DS != SS
-mt          |Memory model =  tiny
-mt!         |Memory model =  tiny;   Assume DS != SS
-N           |Stack overflow, check for
-npath       |Output, directory
-O           |Optimize jumps
-O1          |Optimize, smallest code
-O2          |Optimize, fastest code
-Oa          |Optimize, no pointer aliasing
-Ob          |Optimize, dead store elimination
-Oc          |Optimize, local common subexpression elimination
-Od          |Optimize, disable all optimizations
-Oe          |Optimize, global register allocation, variable live range
-Og          |Optimize, global common subexpression elimination
-Oi          |Optimize, intrinsic functions, automatic inlining
-Ol          |Optimize, loop optimization
-Om          |Optimize, loop invariants, code motion on
-Op          |Optimize, copy propagation
-Os          |Optimize, size of code
-Ot          |Optimize, speed of .EXE
-Ov          |Optimize, loop induction variable, strength reduction
-Ox          |Optimize, speed: compatible with Microsoft compilers
-ofilename   |Compile source file to filename.OBJ
-P           |Compile as C++ regardless of source file extension
-Pext        |Compile as C++ and set default extension to ext
-P-          |Compile as C++ or C depending on extension (default)
-P-ext       |Compile as C++ or C depending on extension;
              |        set default extension to ext
-p           |Calling convention Pascal
-po          |Calling convention _objectData (for C++ ONLY)
-pr          |Calling convention fastcall for passing
              |        parameters in registers
-p-          |Calling convention C (default)
-Qe          |Memory: Use all available EMS memory (default)
-Qe-         |Memory: Do not use any EMS memory
-Qe=yyyy     |Memory: Use yyyy 16K pages of EMS for the compiler
-Qx          |Memory: Use all available extended memory
-Qx-         |Memory: Do not use any extended memory
-Qx=nnnn     |Memory: Reserve nnnn K extended memory for other programs;
              |        compiler uses the rest
-Qx=nnnn,yyyy|Memory: Reserve nnnn K extended memory for other programs;
              |        compiler uses yyyy
-Qx=,yyyy    |Memory: Reserve yyyy K extended memory for compiler
-r           |Register variables, use (default)
-r-          |Register variables, suppress
-rd          |Register variables, only allow declared register variables
              |        to be kept in registers
-R           |Generate ObjectBrowser information
-S           |Assembler: Produce .ASM output file
-Tstring     |Assembler: Pass string as option to TASM or assembler
              |        specified with -E
-T-          |Assembler: Remove all previous assembler options
-tDe         |Target: DOS .EXE file
-tDc         |Target: DOS .COM file
-tW          |Target: Windows module using same options as -W
-Uname       |Define: Undefine any previous definitions of name
-u           |Underscores, generate (default)
-u-          |Underscores, disable
-V           |C++ virtual tables, Smart
-Va          |Pass class args by reference to temp variable
-Vb          |Backwards compatibility, virtual base class pointer
-Vc          |Backwards compatibility, no hidden members and code
-Vf          |C++ virtual tables, Far
-Vmv         |Member pointers have no restrictions
-Vmm         |Member pointers support multiple inheritance
-Vms         |Member pointers support single inheritance
-Vmd         |Use smallest representation for member pointers
-Vmp         |Honor declared precision for all member pointer types
-Vo          |Backwards compatibility, master switch turns on all
-Vp          |Backwards compatibility, pass "this" to "pascal"
              |        member functions
-Vs          |C++ virtual tables, Local
-Vt          |Place virtual table pointer after non-static data members
-Vv          |Backwards compatibility, don't change layout of classes
-V0, -V1     |C++ virtual tables, External and Public
-v, -v-      |Source debugging on, off
-vi, -vi-    |Inline functions, expansion of
-W           |Windows .OBJ, all functions exportable
-WD          |Windows .OBJ, linked as .DLL, all functions exportable
-WDE         |Windows .OBJ, linked as .DLL, explicit export functions
-WE          |Windows .OBJ, with explicit export functions
-WS          |Windows .OBJ, uses smart callbacks
-w           |Warnings, Display on
-wxxx        |Warnings, Enable xxx
-w-xxx       |Warnings, Disable xxx
-X           |Compiler autodependency output, disable
-Y           |Overlay code generation, enable
-Yo          |Overlay compiled files
-y           |Line numbers on
-Z           |Registers: Enable register usage optimization
-zAname      |Naming, Code class
-zBname      |Naming, BSS class
-zCname      |Naming, Code segment
-zDname      |Naming, BSS segment
-zEname      |Naming, Far segment
-zFname      |Naming, Far class
-zGname      |Naming, BSS group
-zHname      |Naming, Far group
-zPname      |Naming, Code group
-zRname      |Naming, Data segment
-zSname      |Naming, Data group
-zTname      |Naming, Data class
-zX*         |Naming, Use default name for X (default)

makepark 님이 쓰신 글 :
:
:
:
:
:
:
: #               *Compiler Configuration File*
: format.cfg: makefile
:   del format.exe
:   del *.obj
:   copy &&|
: -mh
: -f287
: -w+
: -g255
: -v-
: -d
: -vi
: -I$(INCLUDEPATH)
: -L$(LIBPATH)
: -P-.C
: | format.cfg
:
:
: 위의 내용은 제가 만든 메이크파일안의 내용중 일부입니다,,,
: 각 옵션의 기능을 알고 싶습니다..
: 몇몇 옵션은 관련 서적에서 찾을수가 있었는데...없는것이 더 많군요...
: 특히 -mh ,-f287같은것은 컴파일 에러가 나네요.....

+ -

관련 글 리스트
3328 makefile에 관한 질문... makepark 1269 2004/04/27
3329     Re:makefile에 관한 질문... Starlet 1541 2004/04/29
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.