- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Calling ADA Functions with a C Program
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2004 03:43 PM
тАО07-28-2004 03:43 PM
We have some old ADA functions which we would like to call in some new C code we are writing.
Can anybody give me any pointers on how to do code this, and ideally how to compile & link the two together.
Thanks in advance,
Jeff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2004 06:48 PM
тАО07-28-2004 06:48 PM
Re: Calling ADA Functions with a C Program
Look at
http://h71000.www7.hp.com/commercial/ada/documentation.html
In the Run-Time Reference look at Appendix B and in the Developing Ada Products on OpenVMS look at 6.2 Linking Mixed-Language Programs.
http://h71000.www7.hp.com/commercial/c/docs/5492P.html
will help you for C users guide.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2004 07:35 PM
тАО07-28-2004 07:35 PM
SolutionExplains it in short
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2004 07:51 PM
тАО07-28-2004 07:51 PM
Re: Calling ADA Functions with a C Program
differently from other platform, in VMS all passing parameter has managed by OS. This means it isn't important what language you are using but the corresponding of language type and VMS type.
For example I call C routine from COBOL program simply declaring the parameters.
Read carefully the Wim's link because it can help you very much.
I guess you could call ADA function by reference where in parameters point to a copy of value and out parameters point directlu to value.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2004 04:27 AM
тАО07-29-2004 04:27 AM
Re: Calling ADA Functions with a C Program
That should do the trick I hope.
Cheers,
J