image thumbnail

Estimating memory footprint of generated code

by

 

11 Jun 2009 (Updated )

This tool outputs the code size and data footprint for code generated with Embedded Coder(TM).

get_size(in_str, field)
function out_size = get_size(in_str, field)
        
[a b c] = regexp(in_str, ['\s([0-9a-fA-F]+)\s' field]);
if ~isempty(c)
   a = c{1};
   out_size = in_str(a(1):a(2));
else
   out_size = '0';
end

Contact us