function stackDriver = hostStackDriver()
% Return a stack driver for host-based targets

%   Copyright 2021 The MathWorks, Inc.

    driverDir = fullfile(matlabroot, 'toolbox', 'coder', 'profile', 'src');
    stackDriver = coder.profile.StackDriver();
    stackDriver.PtrDataType = 'uint64';
    stackDriver.HeaderFile = 'host_stack_x86.h';
    stackDriver.IncludePaths = {driverDir};
    stackDriver.SourceFile = fullfile(driverDir, 'host_stack_x86.c');
    stackDriver.DriverFunction = 'strckptr_x86';
end
