What is a symbol table?

前端 未结 6 1857
心在旅途
心在旅途 2020-11-28 02:20

Can someone describe what a symbol table is within the context of C and C++?

6条回答
  •  抹茶落季
    2020-11-28 03:05

    Briefly, it is the mapping of the name you assign a variable to its address in memory, including metadata like type, scope, and size. It is used by the compiler.

    That's in general, not just C[++]*. Technically, it doesn't always include direct memory address. It depends on what language, platform, etc. the compiler is targeting.

提交回复
热议问题