hello! please i want to know how keil generate the map file
You can check this to see how a linker works
en.wikipedia.org/.../Linker_(computing)
If you want to know how to USE the linker, then that is a totally different question and the obvious place to start for KEIL ARM products would be
http://www.keil.com/support/man/docs/armlink/