loki.build.max_compiler

Functions

clean_max(build_dir[, package])

Cleans output from a previous build.

compile_all(maxj_src, c_src, build_dir, ...)

Compiles given MaxJ kernel and manager, generates the max object file from it and compiles the corresponding SLiC interface.

compile_c(src, build_dir[, include_dirs])

Compile .c to .o files.

compile_max(max_filename, obj_filename, ...)

Generate .o object file from given max file.

compile_maxj(src, build_dir)

Compiles maxj-files to java binaries.

generate_max(manager, maxj_src, ...[, package])

Generate max-file (and matching header) using java binaries.

get_classpath()

Extract the CLASSPATH for Maxeler tools from the environment.

get_max_includes()

Build the includes for Maxeler tools from the environment.

get_max_libdirs()

Build the library include dirs for Maxeler tools from the environment.

get_max_libs()

Build the libraries to be linked for Maxeler tools from the environment.

get_max_output_dir(build_dir, max_filename)

Generates the (absolute) directory name in which output from maxJavaRun is stored.

link_obj(objs, target, build_dir)

Links object files to build an executable or shared library.

clean_max(build_dir, package=None)

Cleans output from a previous build.

compile_all(maxj_src, c_src, build_dir, target, manager, package=None)

Compiles given MaxJ kernel and manager, generates the max object file from it and compiles the corresponding SLiC interface.

compile_c(src, build_dir, include_dirs=None)

Compile .c to .o files.

Parameters:
  • src (str or pathlib.Path) – Filename of C file or directory (will compile src/*.c).

  • build_dir (str or pathlib.Path) – Build dir where .o files are stored.

  • include_dirs (list, optional) – Optional list of header include paths.

compile_maxj(src, build_dir)

Compiles maxj-files to java binaries.

Parameters:
  • src – Path to maxj source files.

  • target – Root build directory for class files.

generate_max(manager, maxj_src, max_filename, build_dir, package=None)

Generate max-file (and matching header) using java binaries.

Parameters:
  • manager – Name of manager to be run.

  • max_filename – Target filename.

  • build_dir – Root build directory for max file.

get_max_includes()

Build the includes for Maxeler tools from the environment.

get_max_libdirs()

Build the library include dirs for Maxeler tools from the environment.

get_max_libs()

Build the libraries to be linked for Maxeler tools from the environment.

Links object files to build an executable or shared library.

Parameters:
  • objs – List of object files.

  • target – Output filename of executable or shared library.