c - What do we have in the bytes beginning at the "Address of a function"?How to know how many bytes to consider? -


my brain gets numb imagining this.so bear me if question little wordy.so i've sliced question parts.

1) have @ at bits/bytes starting @ address of function?i mean,at integer variable's address, visualize 4 bytes(for 32 bit systems) of 1's , 0's represent number in binary form.for character variable visualize single byte ascii value of character.for double visualize 8 bytes accordingly.but on earth should visualize @ bytes starting address of function?i know call stack created when function invoked,but function itself?at address have function's expressions,ifs,loops, etc in binary form?are bits/bytes representing function complicated visualize human unlike integers?

2) can use sizeof function?why or why can't we?if have no idea how determine size allocated function, how functions have addresses?as if have addresses,they must have size , since have pointers functions, how determined pointers how many bytes interpret starting pointer address?after can use pointers invoke functions.

please generous details.books , google hasn't been helpful @ in regard.

  1. it can @ all. not required specific.

  2. no. function's address entry point. there's no requirement it, example, occupy consecutive memory locations.

usually, function address actual machine code function begins. there's no reliable way tell function ends. platforms might lay out functions appear in source code, 1 after other. other platforms, particularly ones ipo, won't simple.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -