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 — Create Native Machine Code: New in Wolfram Language 12

‹›
Code CompilationAll Latest Features

Create Native Machine Code

The Wolfram Compiler can generate output in a variety of native machine code formats, in particular, different kinds of assemblers. A standalone file can be created using FunctionCompileExport, or the string representation can be created using FunctionCompileExportString.

The following is a trivial function to add one to an integer.

Obtain the assembler code for the current platform, on this machine "MacOSX-x86-64".

Using FunctionCompileExport with a file that has extension ".s" will automatically export an assembly file.

Printing the contents of the file shows that it is identical to the output returned previously.

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.