Where are functions stored in a C ++ program?
for instance
int abc() { //where am I stored? }
I know that we can take the address of the function, that is, the functions are stored somewhere in memory. But I already read in many places that memory allocation for functions does not occur.
I'm confused. My question may seem vague to many of you, but I cannot help.
Before starting, your program is loaded into memory and includes loading code that implements functions.
As soon as the program starts working, memory allocation for functions does not occur; this is done before the program is launched by the loader of the system program.
"" , , ROM, .
.
. , , , - . ..
, () , *.map, .
:
( ) , , . , . COFF, PE ELF, , .text. .data .bss.
.text
.data
.bss
. , ( ld-linux.so Linux) , . , MMU, , x86. , . .
ld-linux.so
, . . " ".
. . , - Flash .
, . " ", .
Source: https://habr.com/ru/post/1741290/More articles:How to pass a static variable between source files in C ++? - c ++Is there an API for displaying touch input on other monitors? - c ++Language Parsers - parsingC # column data type Date Type (NOT DateTime) - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1741289/how-can-i-get-sql-server-transactions-to-use-record-level-locks&usg=ALkJrhhlF9joA0y2SvUN7SVk6Utg-SXMUAColor change in Windows Form - c #asp.net impersonates a user to access network resources - asp.netC # console application extension in a WPF application - c #How to call other constructors from a constructor in C #? - c #Любой способ переопределить, как элемент привязан xsd.exe - xsdAll Articles