ld for VMS?
Mon May 3 15:04:00 GMT 2010
On 3/05/2010 9:43 PM, Tristan Gingold wrote:
> On May 3, 2010, at 3:41 PM, Tim Sneddon wrote:
>> On 3/05/2010 8:27 PM, Tristan Gingold wrote:
>>> On May 3, 2010, at 1:16 PM, Jay K wrote:
>>>> The memcpy problem was #define __size_t. Moving along.. :)
>>>> Presumably related to decc$main? I'll check the docs.
>>> Yes, but I am not sure this is documented. Calling decc$main should make it.
>> DECC$CRTL_INIT is supported and documented here:
>> The example provided shows the routine being called from Pascal.
> Right. But what is not documented is decc$main, which calls decc$crtl_init.
Good point, I misunderstood. I also cleverly sent the mail to you
only, and not the list.
The prototype for DECC$MAIN looks something like this:
void decc$main(void *arg1,
IFD *image_file_desc, /* Ptr to image file descriptor block */
/* returned by image activator. */
int *argc, /* Ptr to returned argument count */
void **argv, /* Ptr to returned argument vector */
void **envp); /* Ptr to returned environment vector */
You can see the layout for IFD in <ifddef.h>, found in the text
The image file descriptor is argument 4 of the 6 arguments passed
to the user image by the $IMGSTA service.
More information about the Binutils