[so] [SO][Tema3][Windows] File size si mem size

Octavian Guzu octavian.guzu at gmail.com
Tue Apr 24 22:48:44 EEST 2018


Salut,

Conform enuntului (si a ce am observat pe Linux) mem_size va fi mereu mai
mare sau egal ca file_size pentru orice segment.

Pe Windows in schimb, pentru printf-ul urmator pe executabilul de test
(Hello World!):

printf("0x%08x 0x%08x 0x%08x\n", vaddr, file_size, mem_size);

obtin urmatorul rezultat:

0x10000000 0x00000400 0x00000400
0x10030000 0x00000200 0x000001d5
0x10010000 0x00001200 0x0000104e
0x10020000 0x00000200 0x00000116

Adica, file_size este mereu mai mare sau egal decat mem_size si nu invers.

Este normal acest comportament?

Mersi,
Octav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20180424/5c8df4b7/attachment.html>


More information about the so mailing list