Przemek:

config\os2\watcom.mk contain:
   ifeq ($(filter $(LIBNAME),gtos2 gtstd),)
      CFLAGS += -s
   endif

Have you made clean Harbour build?

Yes, of course
I expected not to fail in gtos2 and gtstd, but as gtstd failed, I
checked files and made confirmations to be sure, and at last I added
"config\os2\watcom.mk" content in message for clarity

More info below

Thank you very much.
It means that the code used to check stack overflow have to be executed
exactly by the function which calls APIENTRY16.
It also means that recompiling whole Harbour code without -s flag does
not resolve the problem of GTSTD because it uses kbhit() from
OpenWatcom C RTL compiled without stack debug code. Am I rirght?

Why you ask to me, are you trying to confuse me ?  :-)
Here you are the expert, and I refuse to answer your question, and lack
of answer do not imply any confirmation or negation in any way

Yes but only if you can confirm that after removing
  CFLAGS += -s
from config\os2\watcom.mk and rebuilding whole Harbour code
also does not help and GTSTD still GPF.
This is the last thing I would like to know.
If it's true then I can create self contain example which always GPFs
regardless of used compilation flags.

Again thank you very much for your time and tests.

As I see you are closing the circle

I repeated tests with fresh SVN: Harbour 13162
and some changes

As summary:
- gtstd fail (GPF) with and without
  CFLAGS += -s
- gtos2 run
  with CFLAGS += -s  :  fast ?
  without CFLAGS += -s  : slow

Sequence are below, and segments of make_ow.log confirm switchs used in
Harbour build

David Macias

*** Fresh SVN build:

[E:\harbour912\harbour\bin\os2\watcom]hbmk2 speedtst -l -kmo -mt -gc3 -gtstd
Harbour 2.0.0beta3 (Rev. 13162)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'speedtst.prg'...
Lines 1204, Functions/Procedures 79
Generating C source output to 'speedtst.c'... Done.

[E:\harbour912\harbour\bin\os2\watcom]speedtst.exe --thread

2009.12.07 22:37:12 OS/2 4.50
Harbour 2.0.0beta3 (Rev. 13162) (MT)+ Open Watcom C++ 12.80.8 (32-bit) x86
THREADS: all->56
N_LOOPS: 1000000
[ T000: empty loop overhead ]...................................0.03
====================================================================SYS1808:
The process has stopped.  The software diagnostic
code (exception code) is  0001.


*** Clean, build using in config\os2\watcom.mk:
  #      CFLAGS += -s

[E:\harbour912\harbour\bin\os2\watcom]hbmk2 speedtst -l -kmo -mt -gc3 -gtstd
Harbour 2.0.0beta3 (Rev. 13162)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'speedtst.prg'...
Lines 1204, Functions/Procedures 79
Generating C source output to 'speedtst.c'... Done.

[E:\harbour912\harbour\bin\os2\watcom]speedtst.exe --thread

2009.12.07 22:59:37 OS/2 4.50
Harbour 2.0.0beta3 (Rev. 13162) (MT)+ Open Watcom C++ 12.80.8 (32-bit) x86
THREADS: all->56
N_LOOPS: 1000000
[ T000: empty loop overhead ]...................................0.10
====================================================================SYS1808:
The process has stopped.  The software diagnostic
code (exception code) is  0001.

[E:\harbour912\harbour\bin\os2\watcom]hbmk2 speedtst -l -kmo -mt -gc3 -gtos2

[ total application time: ].....................................0.26
[ total real time: ]...........................................68.84


*** Clean, build using in config\os2\watcom.mk:
      CFLAGS += -s
[...]
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -s -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtcgi.obj  ../../../gtcgi.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -s -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtcgi_dyn.obj -DHB_DYNLIB
../../../gtcgi.c
wlib  -q -p=72 -c -n  ../../../../../../lib/os2/watcom/gtcgi.lib -+gtcgi.obj
! 'gtcrs' library skipped (component not found)
! 'gtdos' library skipped (platform not supported)
! 'gtgui' library skipped (platform not supported)
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtos2.obj  ../../../gtos2.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtos2_dyn.obj -DHB_DYNLIB
../../../gtos2.c
wlib  -q -p=72 -c -n  ../../../../../../lib/os2/watcom/gtos2.lib -+gtos2.obj
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -s -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtpca.obj  ../../../gtpca.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -s -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtpca_dyn.obj -DHB_DYNLIB
../../../gtpca.c
wlib  -q -p=72 -c -n  ../../../../../../lib/os2/watcom/gtpca.lib -+gtpca.obj
! 'gtsln' library skipped (component not found)
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtstd.obj  ../../../gtstd.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtstd_dyn.obj -DHB_DYNLIB
../../../gtstd.c
wlib  -q -p=72 -c -n  ../../../../../../lib/os2/watcom/gtstd.lib -+gtstd.obj
! 'gttrm' library skipped (platform or compiler not supported)
! 'gtwin' library skipped (platform not supported)
! 'gtwvt' library skipped (platform not supported)
! 'gtxwc' library skipped (component not found)
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -s -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../include   -fo=hvm.obj  ../../../hvm.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -s -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../include   -fo=hvm_dyn.obj -DHB_DYNLIB  ../../../hvm.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -s -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../include   -fo=arrays.obj  ../../../arrays.c
[...]

[E:\harbour912\harbour\bin\os2\watcom]hbmk2 speedtst -l -kmo -mt -gc3 -gtstd
Harbour 2.0.0beta3 (Rev. 13162)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'speedtst.prg'...
Lines 1204, Functions/Procedures 79
Generating C source output to 'speedtst.c'... Done.

[E:\harbour912\harbour\bin\os2\watcom]speedtst.exe --thread

2009.12.08 00:19:26 OS/2 4.50
Harbour 2.0.0beta3 (Rev. 13162) (MT)+ Open Watcom C++ 12.80.8 (32-bit) x86
THREADS: all->56
N_LOOPS: 1000000
[ T000: empty loop overhead ]...................................0.03
====================================================================SYS1808:
The process has stopped.  The software diagnostic
code (exception code) is  0001.

[E:\harbour912\harbour\bin\os2\watcom]hbmk2 speedtst -l -kmo -mt -gc3 -gtos2
Harbour 2.0.0beta3 (Rev. 13162)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'speedtst.prg'...
Lines 1204, Functions/Procedures 79
Generating C source output to 'speedtst.c'... Done.

[E:\harbour912\harbour\bin\os2\watcom]speedtst.exe --thread

[...]
[ total application time: ].....................................0.10
[ total real time: ]...........................................23.46


*** Clean, build using in config\os2\watcom.mk:
#   ifeq ($(filter $(LIBNAME),gtos2 gtstd),)
#      CFLAGS += -s
#   endif
[...]
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtcgi.obj  ../../../gtcgi.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtcgi_dyn.obj -DHB_DYNLIB
../../../gtcgi.c
wlib  -q -p=72 -c -n  ../../../../../../lib/os2/watcom/gtcgi.lib -+gtcgi.obj
! 'gtcrs' library skipped (component not found)
! 'gtdos' library skipped (platform not supported)
! 'gtgui' library skipped (platform not supported)
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtos2.obj  ../../../gtos2.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtos2_dyn.obj -DHB_DYNLIB
../../../gtos2.c
wlib  -q -p=72 -c -n  ../../../../../../lib/os2/watcom/gtos2.lib -+gtos2.obj
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtpca.obj  ../../../gtpca.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtpca_dyn.obj -DHB_DYNLIB
../../../gtpca.c
wlib  -q -p=72 -c -n  ../../../../../../lib/os2/watcom/gtpca.lib -+gtpca.obj
! 'gtsln' library skipped (component not found)
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtstd.obj  ../../../gtstd.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../../include   -fo=gtstd_dyn.obj -DHB_DYNLIB
../../../gtstd.c
wlib  -q -p=72 -c -n  ../../../../../../lib/os2/watcom/gtstd.lib -+gtstd.obj
! 'gttrm' library skipped (platform or compiler not supported)
! 'gtwin' library skipped (platform not supported)
! 'gtwvt' library skipped (platform not supported)
! 'gtxwc' library skipped (component not found)
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../include   -fo=hvm.obj  ../../../hvm.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../include   -fo=hvm_dyn.obj -DHB_DYNLIB  ../../../hvm.c
wpp386   -zq -bt=os2 -bm -w3 -5r -fp5 -onaehtr -ei -zp4 -zt0 -oi+ -i.
-i../../../../../include   -fo=arrays.obj  ../../../arrays.c
[...]

[E:\harbour912\harbour\bin\os2\watcom]hbmk2 speedtst -l -kmo -mt -gc3 -gtstd
Harbour 2.0.0beta3 (Rev. 13162)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'speedtst.prg'...
Lines 1204, Functions/Procedures 79
Generating C source output to 'speedtst.c'... Done.

[E:\harbour912\harbour\bin\os2\watcom]speedtst.exe --thread

2009.12.08 00:37:53 OS/2 4.50
Harbour 2.0.0beta3 (Rev. 13162) (MT)+ Open Watcom C++ 12.80.8 (32-bit) x86
THREADS: all->56
N_LOOPS: 1000000
[ T000: empty loop overhead ]...................................0.10
====================================================================SYS1808:
The process has stopped.  The software diagnostic
code (exception code) is  0001.

[E:\harbour912\harbour\bin\os2\watcom]hbmk2 speedtst -l -kmo -mt -gc3 -gtos2
Harbour 2.0.0beta3 (Rev. 13162)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'speedtst.prg'...
Lines 1204, Functions/Procedures 79
Generating C source output to 'speedtst.c'... Done.

[E:\harbour912\harbour\bin\os2\watcom]speedtst.exe --thread

[...]
[ total application time: ].....................................0.13
[ total real time: ]...........................................69.48



_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to