[Info-vax] C99 updates to CRTL

John Reagan xyzzy1959 at gmail.com
Tue Jul 30 14:11:06 EDT 2019


On Tuesday, July 30, 2019 at 12:45:45 PM UTC-4, hb wrote:
> On 7/30/19 3:58 PM, Stephen Hoffman wrote:
> > On 2019-07-29 17:50:54 +0000, John Reagan said:
> > 
> >> On Monday, July 29, 2019 at 12:21:28 PM UTC-4, Stephen Hoffman wrote:
> >>> There's already at least one logical name around that effects the
> >>> compile-time behavior.
> >>>
> >>> One existing logical name effects the compile-time resolution of the
> >>> external references within the compiler.
> >>
> >> Do you have a reference?
> > 
> > The DEC/Compaq/HP/HPE/VSI C compiler opens up the C RTL and searches it
> > for a list of entry points, and that processing can be redirected by
> > logical name.  I don't recall off-hand if it was the DECC$SHR logical
> > name, or if some other was used.
> 
> Sounds like DECC$CRTLMAP, which by default points to SYS$SHARE:DECC$SHR.

Oh that, yes, the compiler peeks into the current RTL to see what names it needs to prefix.  (ie, printf turns into DECC$TFPRINTF or such)  The /PREFIX qualifier can control that as well.  I didn't think of this as logical that controls the generated code but I guess it does. 



More information about the Info-vax mailing list