11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7 <strong>Advanced</strong> ConnectivityIn This Chapter• Code Generation• Using Compiled Code in Maple• System IntegrityCode GenerationThe CodeGeneration package provides utilities for translating Maple codeinto other programming languages such as C, Fortran, and Java. Theresulting code can be compiled and used independent of Maple.Using Compiled Code in MapleCompiled code can be seamlessly integrated into Maple. Maple can executefunctions written in C, Fortran, or Java, passing parameters andreturning values as if the external function were a native Maple procedure.System IntegrityThe final section emphasizes that using compiled code truly extends theMaple kernel. The kernel extension must be reliable because it can affectthe entire Maple program.7.1 Code GenerationThe CodeGeneration PackageConversion of Maple code to other programming languages can be performedusing the CodeGeneration package. Currently, translators toANSI C, Fortran 77, and Java are available. You can use the Maple289

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!