Code metrics for individual .c files

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code metrics for individual .c files

Jump to solution
1,520 Views
harsha_jakkamkr
Contributor II

Hi,

I was seeking if it is possible to extract code metrics for individual files for the MPC5777C C code. I have come across the utility "NXP\S32DS_Power_v2017.R1\Cross_Tools\powerpc-eabivle-4_9\bin\ powerpc-eabivle-size.exe" which provides the details as below:

text  

 data  

  bss

    dec 

   hex

filename

6036  

   40 

  1120 

  7196 

  1c1c

my_exe.elf

Is there a utility that can provide code metrics for individual source files?

Regards,

Harsha

1 Solution
3 Replies
1,339 Views
harsha_jakkamkr
Contributor II

Thanks BlackNight, I would go through the link more thoroughly. Just wanted to know if the information available in the link also works for the S32 design studio IDE for PowerPC architecture.

Thanks,

Harsha

0 Kudos
1,339 Views
BlackNight
NXP Employee
NXP Employee

Yes, this is for the GNU tools, so applicable to anything using GNU tools, including the S32 DS.