高级检索

    VAX/RGL的C语言接口设计

    DESIGN OF A C INTERFACE FOR VAX/RGL

    • 摘要: 异种语言编写的程序相互调用,是程序设计者为利用已有软件资源而经常涉及的实用技巧。本文基于C应用程序调用VAX/RGL图形库绘图的实践,探讨VAX/VMS环境中C语言与FORTRAN语言的接口方法,其关键在于弥补两者采用的VAX过程调用参数传递机构上的差异。然后介绍笔者利用该方法为RGL实现的一个C程序接口软件。

       

      Abstract: Routine calling between codes written in different languages is a useful skill, which allows programmer make better use of existing software resources.This paper investigates an interfacing method between C and Fortran in VAX/VMS environment. The disscussion is based on the author’s experience on calling VAX/RGL from the C applications. The key is to flat the gap between the VAX routine parameter passing mechanism in these two languages. Also introduced is a C interface software for RGL, which is implemented by the author according to this method.

       

    /

    返回文章
    返回