[Info-vax] C99 updates to CRTL

John Reagan xyzzy1959 at gmail.com
Wed Jul 31 14:39:53 EDT 2019


On Wednesday, July 31, 2019 at 8:29:33 AM UTC-4, John E. Malmberg wrote:
> On 7/31/2019 6:30 AM, John Reagan wrote:
> > Of course that system-wide DECC$SHR logical makes all images
> > magically use the byte/word DECC$SHR.  The system-wide RTLMAP isnt
> > needed as the compiler falls back to DECC$SHR.
> > 
> > Will we have chip specific variants of images in x86?  Probably for
> > low level system images for Intel vs AMD.  I don't see it for others
> > but I'd be open to it.  LLVM does provide for some flavors of
> > multiple versions of the same routine with runtime selection of the
> > right one.
> 
> Can some documentation be provided on how a user could create a custom 
> variant?
> 
Custom variant of what?

> Is there anyway to override how a C program opens stdin/stdout/stderr 
> before the user's main is executed?  It would really help if that in the 
> case where those devices are not file structured, I could skip using 
> RMS, and just use VMS channels.
> 

No.  The DECC$$INIT_STDIN, DECC$$INIT_STDOUT, and DECC$$INIT_STDERR calls are done when those files are used RTL routines as needed.  They shouldn't be called by any LIB$INITIALIZE routine.  Those routines are very RMS heavy and call SYS$OPEN, SYS$CREATE, etc. as needed.

> Right now, to implement getpassword(), ncurses, select(), and poll(), I 
> have to assign a channel to terminals and pipes, and wrap all the CRTL 
> calls that reference those devices.
> 
> Regards,
> -John
> wb8tyw at qsl.net_work




More information about the Info-vax mailing list