Visible to Intel only — GUID: ewa1452612078562
Ixiasoft
Visible to Intel only — GUID: ewa1452612078562
Ixiasoft
11.1.1.2. Packaging Object Files into a Library File
Gather the object files into a library file so that others can incorporate the library into their projects and call the functions that are contained in the objects in the library. To package object files into a library, use the fpga_libtool command.
All objects that you want to package into a library must have the same version number (for example, Intel® FPGA SDK for OpenCL™ Pro Edition version 19.3). The fpga_libtool command creates libraries encapsulated in operating system-specific archive files (.a on Linux and .lib on Windows). You cannot use libraries created on one operating system with an Intel® high-level design product running on a different operating system.
Create the OpenCL library file using the following command:
fpga_libtool --target target_HLD_tool --create library_name object_file_1 [object_file_2 ... object_file_n]
Parameter | Description |
---|---|
target_HLD_tool |
The target Intel® high-level design tool for this library. This parameter can have one of the following values:
|
library_name | The name of the library file.
Specify the file extension of the library files as follows, depending on the target high-level design tool:
|
You can specify one or more object files to include in the library.
fpga_libtool --create libdemo.a prim1.o prim2.o prim3.o --target aoc