Changes between Initial Version and Version 1 of kOptions


Ignore:
Timestamp:
May 16, 2007, 5:59:01 AM (17 years ago)
Author:
guest
Comment:

Initial list of all -Z options that I could find

Legend:

Unmodified
Added
Removed
Modified
  • kOptions

    v1 v1  
     1GCC on OS/2 supports several extra options. They all start with -Z. With the exception of -Zomf (others?) they are affecting the linking.
     2
     3  * -Zcrtdll: link the C library dynamically
     4  * -Zdll: create a dynamic link library
     5  * -Zexe: touch output file, add .exe extension
     6  * -Zhigh-mem: link so that the C library calls in the program make use of "high memory". This is similiar to specifying OBJ_ANY to OS/2 API memory calls. If you use this option you should include os2safe.h as the first include file in every C file that uses OS/2 APIs.
     7  * -Zlinker: pass option through to linker (like {{{-Zlinker /EXEPACK:2 -Zlinker /PACKCODE}}})
     8  * -Zmap: tell linker or emxbind to create a .map file that contains the addresses   of all symbols
     9  * -Zno-autoconv: switch off automatic conversion between a.out and OMF format when linking.
     10  * -Zomf: compile and link using OMF format instead of a.out.
     11
     12These are mentioned in '''ReleaseNotes.os2''' but not sure what they do exactly:
     13  * -Zargs-wild: something with wildcards?
     14  * -Zargs-resp: ??
     15  * -Zdll-search: ??
     16  * -Zhigh-low: ??
     17  * -Zno-fork: turn off the fork() function?
     18  * -Zno-unix: non-unix like mode, affects slash handling and fork()?
     19
     20These were supported options with EMX/gcc 2.8.x, not sure if they are still supported now:
     21  * -Zbin-files: open files in binary mode by default
     22  * -Zbsd-signals: select the `BSD' signal processing model
     23  * -Zmt: multithread code
     24  * -Zmtd: multithread code, link C library dynamically
     25  * -Zmts: multithread code, link C library statically
     26  * -Zno-rte: create DLL without runtime environment
     27  * -Zsmall-conv: use small, fast, and inaccurate routines for converting decimal numbers to binary and vice versa
     28  * -Zstack: set the stack size
     29  * -Zso: create stand-alone DLL
     30  * -Zsys: create stand-alone OS/2 program (no emx.dll)
     31  * -Zsysv-signals: select the `System V' signal processing model