add generation of global names in the beginning of source file

Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>