4

What does this expression mean:

.-main

in context of:

.size   main, .-main

?

scdmb
  • 15,091
  • 21
  • 85
  • 128

1 Answers1

4

Here, the dot . means "current location".

Then .-main would be the distance to the start of main. If placed at the end of main, it would also be the size of main.

Bo Persson
  • 90,663
  • 31
  • 146
  • 203
  • so "-" means minus and this expression means "size of main" = "." (current address) minus "address of main"? – scdmb Jun 16 '12 at 15:28
  • Yes, it is "here" minus address of "main". That would also be the size of main, if it is placed immediately after the end of main. – Bo Persson Jun 16 '12 at 18:17