what is meant by code optimization?how is it carried out?
Go to your library and look in the section on compiler design!
If you want to know something specific about some specific Keil optimisation, then ask a specific question!