I used static member in class and reference to assembly, in sperate files I got error, Is there anyway to solve it?

It `s very unusual. As a rule, if the use of assembler gives an advantage, it is by percentage, and not by several times.
Could you give a comparative example of C code and assembly code?