Guillaume Paris
Guillaume Paris

Reputation: 10539

assembly visual studio 2010

; 5    :    int c=0;

    mov DWORD PTR _c$[ebp], 0

I don't understand the syntax, why c is referenced without bracket and why add [ebp] ?

Upvotes: 1

Views: 216

Answers (1)

ninjalj
ninjalj

Reputation: 43728

EBP is the frame pointer. Since c is a local variable or argument, c is an offset relative to the frame pointer.

Upvotes: 3

Related Questions