GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • WOLFRAM
  • Products
  • Wolfram|One
  • Mathematica
  • System Modeler
  • Wolfram|Alpha
  • AI Access
  • Compute Services
  • Consulting & Solutions
  • Wolfram Consulting
  • Solutions for Education
  • Learning & Support
  • Wolfram U Courses
  • Wolfram Language Resources

This view

  • Original page
  • New address

GeezerVison is showing www.wolfram.com — Call Compiled Code from Compiled Code: New in Wolfram Language 12

‹›
Code CompilationAll Latest Features

Call Compiled Code from Compiled Code

The Wolfram Compiler works well with compiled Wolfram Language code. A compiled function can accept other compiled functions as arguments. The abstractive power that this provides allows a tremendous amount of innovative solutions to be written.

The function bisectionRoot[f, lim0, lim1] finds a root of f by bisecting the interval from lim0 to lim1. The rule of the form {in1, in2, …}->out in the second argument of Typed indicates that the variable f is a function, in this case one that takes and returns a "Real64".

Compile the function whose root will be found.

Find several roots of f. Of course, a different function could have been studied without changing bisectionRoot.

Related Examples

Accelerate Mandelbrot Set Computation
Compute the Date of Easter
Implement Quicksort
Visualize the Game of Life
Compile a Recursive Function
Call Compiled Code from Compiled Code
Use File Operations in Compiled Code
Use Plotting Operations in Compiled Code
Create Native Machine Code
Create LLVM Code
Create a Shared Library
Create Machine Code for Exotic Architectures
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.