Compile and link generated code
loads data from the buildResults
= codebuild(buildFolder
)buildInfo.mat
file in
buildFolder
, generates a makefile in
buildFolder
, and uses the specified toolchain or template makefile to
compile source code that is registered in the RTW.BuildInfo
object. If
the object is at the top of a hierarchy, the function performs the process for each object
in the hierarchy.
The function saves compilation artifacts, including object code files, in
buildFolder
.
The function returns an object that contains the display output. To view the output, run
disp(
.buildResults
)
codebuild(buildFolder,
specifies
additional options using one or more name-value pairs.Name,Value
)
For an example that shows how to relocate and compile generated code in another development environment, see Compile Code in Another Development Environment.