IF I have a program I've written in picbasic pro, it comiled ok and end up with a hex code.

How do I know how much code space in the pic it will take?

I want to see if I can use a physically smaller pic, rather than a 40 pin one, but if I right click on the hex file and do properties it says 8k

BUT

I'm not sure that's how you measure the code space.

Could someone elighten me please?