List natives used by a given app

Hello,

I would like to quickly run an app on my VEEPort. For that, I need to know which natives are required by my app. For example I don’t want (yet) to implement all the natives from the pack fs if they are not used by my app.
Is there a way to do that?

Hi Medhi,

Yes, you can use the tool nm(1) on the microejapp.o of your application to do that.

nm -u microejapp.o | grep Java_

nm(1) can list undefined symbols (-u), you can then filter to keep only the SNI methods prefixed by Java_ to list the natives.

Best,

1 Like