Compile Time Memory Allocation

In the symbol table, we store the address of the physical memory or virtual memory?

Computer always sees physical memory, physical memory is stored there.

then what is the role of virtual memory??

To reference out of range memory while writing code
We think of secondary storage as virtual memory while writing code