TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mads Orbesen Troest
from: Vitus Jensen
date: 1999-10-09 22:40:15
subject: VAC 3.0 Subsystem Library

Moin Mads,

05.10.99 15:46, Mads Orbesen Troest wrote a message to Vitus Jensen:

 VJ>> Could someone explain the use of the subsystem library (compile
 VJ>> switch /Rn) and whether it's use would be better in my case.

 MOT> As far as I am informed, the Subsystem switch means that /no/
 MOT> startup/termination code is inserted in the generated code. If
 MOT> you use any library functions whatsoever, this is probably not a
 MOT> very good switch to check.

There *is* startup/termination code inserted.  Check your documentation:
_rmem_init/_rmem_term is called.
There is a limited range of library functions available, including malloc and
free.

/*BUT*/ that runtime library has no support for multithreading!  So when I
recoded my DLLs to make a test with the subsystem CRT I had to protect the CRT 
via a mutex.  On the other hand there seems to be no need for a exception
handler.  And the result is smaller.

I still don't know which way is best...

C-x C-s
    Vitus

--- Sqed/rexx 97:
* Origin: That'll be $67.50 CCCHHHHHIIIIINNNNGGGG!!!! (2:2474/424.1)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.