Przemyslaw, David, I think the problem is not in the code but in the flags used to build harbour, I've changed owatcom.cf this way
#CPPFLAGS = -j -w3 -d2 -5s -5r -fp5 -oxehtz -zq -zt0 -mf -bt=NT #DAVID: CPPFLAGS = -w2 -d1 -zq -bt=OS2 CPPFLAGS = -w2 -d1 -zq -bt=OS2 -bm #architecture flags #CPPFLAGS += -5 -fp5 # optimization flags # don't enable -ol optimization in OpenWatcom 1.1 - gives buggy code #CPPFLAGS += -onaehtzr -oi+ -ei -zp8 -s -zt0 I've removed nearly all compilation flags, I don't know what they mean, but anyway, I've always thought that if you need too many compiler flags to build, something is wrong :) And I've also changed ld flags this way: LD = wlink #DAVID: LDFLAGS = debug all OP osn=OS2 OP stack=65536 OP CASEEXACT #LDFLAGS = debug all OP stack=65536 OP CASEEXACT #LDFLAGS = debug all I mean I've removed them all, BTW, having a stack of only 64K is a good way to have troubles. I'm nearly sure GCC expands the stack on demand and starts with a 1Mb of stack space. With these changes all mttest?? programs build and run but mttest10.prg which I think tries to open more than one console, which I don't think is feasible on OS/2. speedtst runs with --thread=2 as well and here is its output. Best regards. Maurilio. Przemyslaw Czerpak wrote: > On Tue, 11 Nov 2008, Maurilio Longo wrote: > > Hi Maurilio, > >> what do you use to build harbour with watcom? >> On my pc, simply trying to build a single .c file from the ide gives a trap >> inside OS2KRNL, so I fear it is not SMP ready. > > I do not know if the IDE is SMP ready but it's not a problem for > us if rest is correct. Try to build Harbour using owatcom.cf which > David sent you and make some tests using GTCGI. > Probably all tests/mttest*.prg will work correctly. > > best regards, > Przemek > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > -- __________ | | | |__| Maurilio Longo |_|_|_|____| farmaconsult s.r.l.
speedtst.log
Description: application/log
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour