Вниз
Скачать: CL | DM;

getting size of compiled delphi code blocks ?   Найти похожие ветки 

 
Dodfr   (2007-12-16 22:31) [0]

Hi,

Kol is far the best tool to produce small code but in order to be sure my own code is also as small as I can, somebody could tell me how to implement some way to get size of binary code between to markers ?

I think this should be done in asm and I can"t do Intel asm.

Example :

procedure xxx;
begin
 a1:=get_addr_from_this_position;
 ...
 ...
 ...
 ...
 a2:=get_addr_from_this_position;
 my_binary_compiled_block_size:=a2-a1;
end;


 
GMax   (2007-12-17 00:27) [1]

MapCountCodeSize (search here) and measured code as "procedure"


 
Dodfr   (2007-12-17 00:55) [2]

Thanx, this little tool do more than expected as it produce a resume of all procedures and functions code size so no need to add use the "markers" feature I was thinking about.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.01 c
2-1233054476
Merry
2009-01-27 14:07
2009.03.15
операции с датами


6-1200242916
Gbp
2008-01-13 19:48
2009.03.15
Странное поведени Post в TIdHTTP


2-1232552943
webpauk
2009-01-21 18:49
2009.03.15
Преобразование типов


15-1231164334
Altairr
2009-01-05 17:05
2009.03.15
Принадлежность треугольнику


15-1232171080
KilkennyCat
2009-01-17 08:44
2009.03.15
Специально для Б




   Наверх