Treelite
elf_formatter.h
Go to the documentation of this file.
1 
7 #ifndef TREELITE_COMPILER_ELF_ELF_FORMATTER_H_
8 #define TREELITE_COMPILER_ELF_ELF_FORMATTER_H_
9 
10 #include <vector>
11 
12 namespace treelite {
13 namespace compiler {
14 
19 void AllocateELFHeader(std::vector<char>* elf);
30 void FormatArrayAsELF(std::vector<char>* elf);
31 
32 } // namespace compiler
33 } // namespace treelite
34 
35 #endif // TREELITE_COMPILER_ELF_ELF_FORMATTER_H_
void AllocateELFHeader(std::vector< char > *elf_buffer)
Pre-allocate space in a buffer to fit an ELF header.
void FormatArrayAsELF(std::vector< char > *elf_buffer)
Format a relocatable ELF object file containing a constant, read-only array.