Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Compile_file

Function: compile_file (<filename>)

Function: compile_file (<filename>, <compiled_filename>)

Function: compile_file (<filename>, <compiled_filename>, <lisp_filename>) Translates the Maxima file <filename> into Lisp, executes the Lisp compiler, and, if the translation and compilation succeed, loads the compiled code into Maxima.

compile_file returns a list of the names of four files: the original Maxima file, the Lisp translation, notes on translation, and the compiled code. If the compilation fails, the fourth item is false.

Some declarations and definitions take effect as soon as the Lisp code is compiled (without loading the compiled code). These include functions defined with the := operator, macros define with the ::= operator, alias, declare, define_variable, mode_declare, and infix, matchfix, nofix, postfix, prefix, and compfile.

Assignments and function calls are not evaluated until the compiled code is loaded. In particular, within the Maxima file, assignments to the translation flags (tr_numer, etc.) have no effect on the translation.

<filename> may not contain :lisp statements.

compile_file evaluates its arguments.

(%o1)                                true
(%i2) 

Related Examples

compile_file

? compile_file;

Calculate

compile_file

? compile_file;

Calculate