![]() |
![]() |
klem4 |
![]()
Сообщение
#1
|
![]() Perl. Just code it! ![]() ![]() ![]() ![]() ![]() ![]() Группа: Модераторы Сообщений: 4 100 Пол: Мужской Реальное имя: Андрей Репутация: ![]() ![]() ![]() |
Что-то я не понимаю, почему для Byte и LongInt выделяется одно и тоже кол-во памяти ?
var -------------------- perl -e 'print for (map{chr(hex)}("4861707079204E6577205965617221"=~/(.{2})/g)), "\n";'
|
![]() ![]() |
volvo |
![]()
Сообщение
#2
|
Гость ![]() |
Внимательно читаем файл prog.pdf (из документации на FPC):
Цитата 8.4.1 Heap allocation strategy The heap is a memory structure which is organized as a stack. The heap bottom is stored in the variable HeapOrg. Initially the heap pointer (HeapPtr) points to the bottom of the heap. When a variable is allocated on the heap, HeapPtr is incremented by the size of the allocated memory block. This has the effect of stacking dynamic variables on top of each other. Each time a block is allocated, its size is normalized to have a granularity of 16 bytes. |
![]() ![]() |
![]() |
Текстовая версия | 15.07.2025 10:02 |