Hacker News new | ask | show | jobs
by pmalynin 4018 days ago
*With -O0
1 comments

No, C does not expose a 1:1 mapping to assembly in any architecture, at -O0 or otherwise. To give one simple example, the C pointer types correspond to nothing meaningful in any commonly used ISA.
asm("xorl %eax, %eax");

And I'm not sure about your example, a C pointer type would be stored as a number that will be used with "lea" or "mov [pointer], foo". Elaborate.